php forum
php mysql forum
php mysql smarty
 
Topic Options
#38282 - 09/29/00 01:52 PM Securing your UBB with Apache
Jaxel Offline
Member

Registered: 05/30/00
Posts: 64
Loc: New Jersery
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!

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks