Skip to content

Obviate.io

To anticipate and prevent

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….

Related Posts

Retrospect + Exchange 2007? Eventually? Maybe? Tech
Using Geckoboard with HelpSpot Code
Why I hate Apple: Lack of keyboard shortcuts Tech
Bye Bye Mozilla Tech
Connecting a HID Prox Pro II RFID reader to Arduino Electronics
Re-installs are fun Tech

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.

Copyright © 2026 Obviate.io.

Powered by PressBook Masonry Dark