Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.htaccess

Status
Not open for further replies.

axman505

Technical User
Jun 20, 2001
489
US
How would i tell my .htaccess file to say allow from ip address 192.168.0.1, but still ask for passwords from interennt addresses?
 
Hi,











You would use 'satisfy' ... For example :











Order Deny,Allow





Deny from All





Allow from 192.168.0.1





AuthName "MyIPAuth"



<--- whatever u like

AuthType Basic





AuthUserFile /usr/local/web/apache/.htpasswd





Require valid-user





Satisfy Any











That should allow 192.168.0.1 but require a user/password otherwise.











Hope this helps





 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top