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

Happy Internet Fools Day Tech
VMWare ESXi “Out of resources” Tech
Quick Link – Linux Viri! Entertainment
HoustonWeHaveAWinner.com Tech
Android Pay shows Apple how it’s done Android
Quick Review: Jot Script (Evernote) Stylus Paperless Life

Leave a Reply Cancel reply

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

Copyright © 2026 Obviate.io.

Powered by PressBook Masonry Dark