LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   IP Blocking Help (https://www.linuxquestions.org/questions/linux-security-4/ip-blocking-help-174425/)

mortsahl 04-25-2004 12:47 PM

IP Blocking Help
 
I'm trying to block specific IP address and IP address ranges from accessing my web site. The following is that I have in my /usr/local/apache/htdocs/.htaccess file ... all it seems to do it deny all ... what I am doing wrong?

<Directory "/usr/local/apache/htdocs">
AllowOverride Options
</Directory>

<Limit GET>
order deny,allow
deny from 64.81.87.
deny from 64.81.95.
deny from 64.81.102.
deny from 64.81.240.
deny from 64.162.177.122
deny from 64.173.177.207
deny from 64.175.106.20
deny from 64.230.86.30
deny from 67.126.114.77
deny from 208.59.199.232
allow from all
</Limit>

Technoslave 04-25-2004 08:22 PM

*shrug* instead of denying via apache, why not just deny them via iptables?

dominant 04-26-2004 08:29 AM

remove the order deny,allow and
put the <Limit GET> into <Directory> container
and try again


All times are GMT -5. The time now is 12:28 AM.