Friday, July 13, 2012

How to blacklist an IP Address in Apache

http://blog.bodhizazen.net/linux/how-to-blacklist-an-ip-address-in-apache/
http://www.howtoforge.com/how-to-block-spammers-with-apache2-mod_spamhaus-debian-etch


order allow,deny
allow from all
deny from 111.222.33.444
deny from 111.222.33

111.222.33 == 111.222.33.** (the entire 111.222.33 subnet, helpful from spammers who change IP, mean otherwise ;) )


<Directory "/home/th/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Allow from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
deny from 93.182
     </Directory>

แต่เค้าแนะนำให้กำหนดที่ iptable น่าจะโอเคกว่า

No comments:

Post a Comment

Popular Posts