Categorized | News

Use Apache to Ban an IP/Domain

Posted on 07 September 2002 by Demian Turner

Every once in a while you’ll find yourself the victim of unwanted company, beit nuisance users of your forums or an outright spam attack. Last week someone in Russia had the bright idea to fire off a bot on PHPkitchen that sent our bandwidth limit through the roof and ended up costing a pretty penny. Read more to find out how to update your httpd.conf to ban an IP/domain name.

Update your apache config as follows

<Directory "/"> 
order allow,deny 
allow from all

deny from 12.148.209.196  #bad IP
</Directory>
Bookmark and Share

Leave a Reply

Categories

Books

Demian Turner's currently-reading book recommendations, reviews, favorite quotes, book clubs, book trivia, book lists

Facebook