Previous Thread
Next Thread
Print Thread
Rate Thread
#38282 09/29/2000 1:52 PM
Joined: May 2000
Posts: 33
Member
Member
Offline
Joined: May 2000
Posts: 33
This is not a hack, more like a recommendation and a tutorial. Many people have asked me how to password protect their files like I have on my board:
http://forums.upnetwork.com/cgi-bin/cpanel.cgi
[all my cpanel files are passworded]
http://forums.upnetwork.com/admin/cp.html

I am going to tell you how! ^_^
You must have Telnet access and know the full path to your site.

For experimental reasons, the full path of this site will be:
/usr/home/pepi/htdocs
http://www.pepi.com

For experimental reasons, the full path to the UBB with be:
/usr/home/pepi/subdomains/bbs/htdocs
http://bbs.pepi.com

You should first create a directory off the web on your server for storing of passwords.
/usr/home/pepi/passwords

log into telnet:
go to run: type in "telnet ftp.pepi.com"

type:
Code
code:
[htpasswd (create) (name of file) (username)]
You will then be asked to create password, choose to your liking.

You are now done with telnet!

Now create a file called ".htaccess" in notepad.
Within the file should be the following lines:
Code
code:

With the code above, any files starting with the letters "CPANEL" will require authentication.

If you wish, you can add more lines to it:
Code
code:

Upload this file to the directory that contains the files you wish to protect, in this case:
/usr/home/pepi/subdomains/bbs/htdocs/cgi-bin
http://bbs.pepi.com/cgi-bin

You are done! Goodluck! If you don't have telnet access, there are sites around that web that tell you how to manually encrypt htaccess password files using UUECODE. And hope that your host permits htaccess!

OTHER TIPS
you can password protect full directories by putting in:

Code
code:

but it is more efficient to use this code instead:

Code
code:

------------------
http://www.upnetwork.com/
http://bbs.upnetwork.com/


I haven't owned a UBB in over 3 years!
Sponsored Links
Entire Thread
Subject Posted By Posted
Securing your UBB with Apache Jaxel 09/29/2000 8:52 PM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 410
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 12
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)