Banning IP addresses via .htacces

I have an .htaccess file that I am using to try and ban certain IP addresses:

<Limit GET>
order deny,allow
deny from 12.34.567.89 etc...
</Limit>


Now, two of the addresses still have access to the site according to a CGI $ENV{'REMOTE_HOST'} tag in one of my scripts.

Have I set this up incorrectly? Is there another way to ban IP addresses? I'm confused and any help would be greatly appreciated.

 

 

 

 

Top