hi wondering if anyone could help me. I need to block all ips except certain ip ranges for my admin area. So how do i allow the following ip ranges and block all others. Also i would like to do this before the Authtype (just as an added security).
Allow Ips from home (62.123.434.X) Where X is any number work (55.14.434.X) Where X is any number
My .htaccess file AuthName "Admin Area" AuthType Basic AuthUserFile /usr/local/apache/.htpasswd Require user admin
ChadSEO
9:43 pm on Aug 23, 2005 (gmt 0)
BlackRaven,
If you add the following lines to the top of your .htaccess file, it should do what you are requesting:
Order Deny,Allow Allow from 62.123.434.0/255.255.255.0 Allow from 55.14.4340/24 Deny from All
Note that the "/255.255.255.0" and "/24" are interchangeable.