# Tom Raftery's .htaccess file - use with caution - for more info on writing .htaccess files # see http://www.tomandpilar.net/tom/index.php?m=200501 # Last updated 9th Mar 05 Redirect /wordpress/atom.xml http://www.tomandpilar.net/wordpress/wp-atom.php Redirect /wordpress/rss.xml http://www.tomandpilar.net/wordpress/wp-rss2.php Redirect /wordpress/index.rdf http://www.tomandpilar.net/wordpress/wp-rss.php Redirect /wordpress/index.php http://www.tomandpilar.net/tom/index.php Redirect /tom/atom.xml http://www.tomandpilar.net/wordpress/wp-atom.php Options +FollowSymlinks RewriteEngine On RewriteCond %{HTTP_REFERER} \.uaeecommerce\.com [NC,OR] RewriteCond %{HTTP_REFERER} \.psxtreme\.com [NC,OR] RewriteCond %{HTTP_REFERER} \.freakycheats\.com [NC,OR] RewriteCond %{HTTP_REFERER} \.terashells\.com [NC,OR] RewriteCond %{HTTP_REFERER} \.nutzu\.com [NC,OR] RewriteCond %{HTTP_REFERER} \.isacommie\.com [NC,OR] RewriteCond %{HTTP_REFERER} \.musicbox1\.com [NC,OR] RewriteCond %{HTTP_REFERER} \.smsportali\.net [NC,OR] RewriteCond %{HTTP_REFERER} \.future-2000\.net [NC,OR] RewriteCond %{HTTP_REFERER} credit-report [NC,OR] RewriteCond %{HTTP_REFERER} poker [NC,OR] RewriteCond %{HTTP_REFERER} mortgage [NC,OR] RewriteCond %{HTTP_REFERER} cialis [NC,OR] RewriteCond %{HTTP_REFERER} phendimetrazine [NC,OR] RewriteCond %{HTTP_REFERER} easymoney [NC,OR] RewriteCond %{HTTP_REFERER} casino [NC,OR] RewriteCond %{HTTP_REFERER} 4free [NC,OR] RewriteCond %{HTTP_REFERER} blackjack [NC,OR] RewriteCond %{HTTP_REFERER} diet-pills [NC,OR] RewriteCond %{HTTP_REFERER} viagra [NC,OR] RewriteCond %{HTTP_REFERER} tramadol [NC,OR] RewriteCond %{HTTP_REFERER} carisoprodol [NC,OR] RewriteCond %{HTTP_REFERER} insurancedeals-4u [NC,OR] RewriteCond %{HTTP_REFERER} www.instant-quick-money [NC,OR] RewriteCond %{HTTP_REFERER} valeofglamorganconservatives [NC,OR] RewriteCond %{HTTP_REFERER} debt-consolidation [NC,OR] RewriteCond %{HTTP_REFERER} phentermine [NC,OR] RewriteCond %{HTTP_REFERER} gambling [NC,OR] RewriteCond %{HTTP_REFERER} holdem [NC] RewriteRule .* - [F] # There was a lot of comment spam with the User Agents Crazy Browser 1.x.x and Mozilla/3.0 (compatible; Indy Library) # so I am using the following code to block it. Note that I removed the starting "^", so that it will ban # any user-agent with "Indy Library" anywhere in its user-agent string, and that it will accept any character - including a space - after "Indy". RewriteCond %{HTTP_USER_AGENT} Indy.Library [NC,OR] RewriteCond %{HTTP_USER_AGENT} TrackBack [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^Crazy\ Browser [NC] RewriteRule .* - [F] # There was a lot of referrer spam coming from 12.163.72.13 (no uri) # so I decided to block it with the following code RewriteCond %{REMOTE_ADDR} ^12\.163\.72\.13$ RewriteRule .* - [F,L] # A new tactic - using SetEnvIfNoCase instead of RewriteCond - seems to be quite effective (esp for referrers). # Original version found at http://blog.koehntopp.de/archives/671-Mehr-ueber-den-Trackback-Spammer.html # I'm going to start migrating the RewriteCond's to this shortly (8th Mar 05) SetEnvIfNoCase X-AAAAAAAAAAAA 1 spammer=yes SetEnvIfNoCase Via pinappleproxy spammer=yes SetEnvIfNoCase Referer yelucie.com spammer=yes SetEnvIfNoCase Referer crescentarian.net spammer=yes SetEnvIfNoCase Referer andrewsaluk.com spammer=yes SetEnvIfNoCase Referer tigerspice spammer=yes SetEnvIfNoCase Referer doobu.com spammer=yes SetEnvIfNoCase Referer camfun24 spammer=yes SetEnvIfNoCase Referer latinonakedgirl spammer=yes SetEnvIfNoCase Referer ronnieazza.com spammer=yes SetEnvIfNoCase Referer highprofitclub spammer=yes SetEnvIfNoCase Referer dvdsqueeze.com spammer=yes SetEnvIfNoCase Referer sexsearchcom.com spammer=yes SetEnvIfNoCase Referer 6q.org spammer=yes SetEnvIfNoCase Referer adultactioncam spammer=yes deny from env=spammer