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  #bad IP
Bookmark and Share

Leave a Reply



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



PHPkitchen recommends you also check out the following sites :

Accounting for Small Businesses

FreeAgent sign-up