...

testing .htaccess deny/allow script

bcrossb@san.rr.
03-17-2009, 04:37 AM
hi,
i got this script from the tutorials page to add to my .htaccess file:
order allow,deny
deny from 123.45.6.7
deny from 012.34.5.
allow from all

i added my webserver ip address, but i was still allowed onto the site. if i changed "allow from none", then no access was allowed. i have a list of ip's that i want to block. why was my address still allowed to enter the site, is it because my ip and the servers is the same? i would like to test the above script with someone is interested.
tnx, bob

Fou-Lu
03-17-2009, 04:58 AM
If you're on localhost, you're IP according to you're Apache is 127.0.0.1 (loopback), not whatever you're adapter address is.
What you have is correct, just add the deny from x.[x.[x.[x]]] values.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum