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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 12-22-2005, 03:16 AM   #1
xxweekxx
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
xxweekxx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2005, 03:20 AM   #2
darksoul
Confirmed User
 
darksoul's Avatar
 
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>
__________________
1337 5y54|)m1n: 157717888
BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
Cambooth
darksoul is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2005, 03:29 AM   #3
xxweekxx
Confirmed User
 
Join Date: Oct 2002
Posts: 6,780
SO just put that in my .htaccess file?
__________________
_________________
I am the best
xxweekxx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2005, 03:41 AM   #4
xxweekxx
Confirmed User
 
Join Date: Oct 2002
Posts: 6,780
nm got it
__________________
_________________
I am the best
xxweekxx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.