How To Use Your .htaccess File To Keep Spammers Out
Spammers have a knack for developing overrides to even the most secured aspect of the system including those that are not readily recognized as potential targets. The .htaccess file can be used to keep e-mail harvesters away. This is considered very effective since all of these harvesters get to identify themselves in some way using the user agent files which gives .htaccess the capability to block them.
Spams Countered by .htaccess
Bad bots are the spiders that are considered to do a lot more harm than good to a site such as an e-mail harvester. Site rippers are offline browsing programs that a surfer may unleash on a site to crawl and download every one of its pages for offline viewing. Both cases would result to a jacking up a sites bandwidth and resource usage even up to the point of crashing the sites server. Since bad bots would typically ignore the wishes of ones robots.txtfile they can be banned using the .htaccess essentially by identifying the bad bots.
There is a useful code block that can be inserted into the .htaccess file for blocking a lot of the known bad bots and site rippers...