|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (7 bit)
Join Date: Aug 2003
Location: Hinckley in Leicestershire
Posts: 110
|
Webpage password
Hey im just creating a website at the moment and am wondering if theres a way to password protect a section so only people who have the passoword can get into it???
If so could someone tell me how! Cheers guys! Ben. |
|
|
|
|
|
#2 |
|
Premium Member
Join Date: Jun 1999
Posts: 9,231
|
.htaccess files are the easiest way to go: http://www.javascriptkit.com/howto/htaccess.shtml (is a short tutorial)
Probably the easiest way to go about protecting directories is check with your webhost's control panel - they probably have a snazzy filemanager/directory protection service that will automatically help you protect directories using .htaccess If you do not have access to such files, then you will have to use a lot more insecure methods of protecting directories using some scripting language. |
|
|
|
|
|
#3 |
|
Member (11 bit)
Join Date: Aug 2003
Location: NJ
Posts: 1,099
|
I use .htaccess on all of the sites I build (where I need to protect a section of it). Here's a snapshot of a .htaccess file:
AuthUserFile /usr/home/testsite/webpages/.htpasswd AuthGroupFile /dev/null AuthName "Authentication Needed" AuthType Basic Limit GET PUT POST require user admin5634 /Limit the 1st line tells the system where to look to check the password. .htpasswd holds the user/pw code. There's plenty of tutorials for this topic.
__________________
P4 2.6C @ 3.12 || ASUS P4C800-E Dlx || Antec SOHO File Server w/ 5 case fans || Antec TruePower 430w PSU || 2 x 512MB Crucial PC3200 DDR || 280GB of total storage 7200rpm ATA100 8mb cache || LiteOn CDRW 52x32x52 || LiteOn DVD+/-RW SOHW-812S || WinXP Pro || Solarism 15" TFT LCD || 500VA TrippLite UPS || Logitech MX-700 Duo || ATI 9800 AIW || Sennheiser HD-555 Last edited by james8547; 09-12-2003 at 04:33 PM. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|