Skip to content

Obviate.io

To anticipate and prevent

  • Home
  • About Us
  • History
  • Privacy Policy
  • Toggle search form

More Ban Hammer

Posted on 2007-01-29 By Jon No Comments on More Ban Hammer

As of this writing I’ve just ban hammered a large portion of the internet from accessing my site. I also have turned off API based comments (that includes trackbacks). Because I’m being hammered. I ignored the problem for a few days, but I now have over eight thousand new emails for spam comments/trackbacks requests. Sigh… Rather annoying.

Oh, I also found something cool. If you have the GeoIP module installed in Apache, you can setup “deny from”s for specific countries. All you need to do is go into your sites/folders .htaccess file and add lines like the following:

_SetEnvIf GEOIP_COUNTRY_CODE CN BlockCountry

SetEnvIf GEOIP_COUNTRY_CODE RU BlockCountry

SetEnvIf GEOIP_COUNTRY_CODE ID BlockCountry

Deny from env=BlockCountry

Its really really awesome, I’ll give you a hint though, I have the above and about a dozen more countries banned from accessing my site now ^_^. No more Chinese spammers for me!!!!

Tech

Post navigation

Previous Post: Dial-Peers on Cisco 3600
Next Post: The internet is for….

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

January 2007
S M T W T F S
 123456
78910111213
14151617181920
21222324252627
28293031  
« Dec   Feb »

Copyright © 2022 Obviate.io

Powered by PressBook Premium theme