apache - Blocking of IP in .htaccess not working -


i try configure simple block of ip address in .htaccess. followed examples found here in forum, seemed work fine other users, not work me , don't why.

my .htaccess file simple:

order allow,deny allow deny aaa.bbb.ccc.ddd 

i expect configured ip address (aaa.bbb.ccc.ddd) blocked. unfortunately not blocked.

if set 'deny all' in third line of .htaccess, access blocked expected.

so seems directive read apache if set else 'from all' i. e. host name or ip or ip wildcard etc. no blocking happens.

i appreciate help, pointing me in right direction.

thanks nestor

probably red herring, presume have tags around .htaccess block? eg

<limit post>   order allow,deny   allow   deny 100.101.102.103 </limit> 

this how use on 1 of sites.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -