GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   restricting access to file?? .htacces?? (https://gfy.com/showthread.php?t=555328)

xxweekxx 12-22-2005 03:16 AM

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 :)

darksoul 12-22-2005 03:20 AM

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>


xxweekxx 12-22-2005 03:29 AM

SO just put that in my .htaccess file?

xxweekxx 12-22-2005 03:41 AM

nm got it


All times are GMT -7. The time now is 10:31 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123