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!!!!