Howto: HTACCESS Authentication restriction, but allow some IPs to get thru
Easy part, just create like below .htaccess file on your web folder :
AuthName “My Protected Site”
AuthUserFile /home/apache/.htpasswd
AuthType basic
Require valid-user
Order Deny,Allow
Deny from all
Allow from 192.168.1. 192.168.2.
Satisfy Any
Good luck!
Posted on June 22nd, 2009 by Denie
Filed under: Apache, Tutorials




















































Leave a Reply