|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Join Date: Oct 2002
Posts: 6,780
|
restricting access to file?? .htacces??
hey guys, lets say i have a site www.site.com
Is there a way to restrict access to a particular file (so that u need a password for that file or only a particular ip can access it) so for example if someone went to www.site.com/a.php It would ask them for a password to access it, however if they went to www.site.com nothing would happen
__________________
_________________ I am the best
|
|
|
|
|
|
#2 |
|
Confirmed User
Join Date: Apr 2002
Location: /root/
Posts: 4,997
|
Code:
<Files "a.php"> AuthUserFile /home/user/site.com/.htpasswd AuthType Basic AuthName private require valid-user allow from xxx.xxx.xxx.xxx deny from all Satisfy Any </Files> |
|
|
|
|
|
#3 |
|
Confirmed User
Join Date: Oct 2002
Posts: 6,780
|
SO just put that in my .htaccess file?
__________________
_________________ I am the best
|
|
|
|
|
|
#4 |
|
Confirmed User
Join Date: Oct 2002
Posts: 6,780
|
nm got it
__________________
_________________ I am the best
|
|
|
|