Apache deny IP

Somebody stealing your content? Scraping your site and palming off your hard work as theirs?

Use Apache to ban their IP address using your .htaccess file…

order allow,deny
allow from all
deny from 555.555.555.555

Obviously you need to replace 555.555.555.555 with the full IP address ;)

You *can* deny access by domain but you’ll be making Apache work harder by having to perform a DNS lookup before knowing which IP address/IP block to deny, so go for the full IP address every time.

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Blogplay
  • FriendFeed
  • LinkedIn
  • Reddit
  • RSS
  • StumbleUpon
  • Technorati
  • Twitter

Leave a Reply

*