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:
[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:
With the code above, any files starting with the letters "CPANEL" will require authentication.
If you wish, you can add more lines to it:
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 TIPSyou can password protect full directories by putting in:
but it is more efficient to use this code instead:
------------------
http://www.upnetwork.com/ http://bbs.upnetwork.com/