pepebe
10/13/2012 - 4:15 PM

.htaccess - Block spambots

.htaccess - Block spambots

Recommendation by BobRay
http://forums.modx.com/thread/47271/solved-using-the-ipbanning-module-to-check-email-addresses
-------------------------
RewriteCond %{HTTP_USER_AGENT} libwww-perl.*
RewriteRule .* - [F,L]
 
RewriteCond %{QUERY_STRING} snippet\.reflect\.php [NC,OR]
RewriteCond %{QUERY_STRING} reflect_base [NC,OR]
RewriteCond %{QUERY_STRING} (.*)(http|https|ftp):\/\/(.*) [NC]
RewriteCond %{HTTP_USER_AGENT} ^libwww-perl [NC]
RewriteRule .* - [F,L]

Have to look that one up.

Further reading...
-----------------------------------------------
http://perishablepress.com/block-spam-by-denying-access-to-no-referrer-requests/
http://en.linuxreviews.org/HOWTO_stop_automated_spam-bots_using_.htaccess