Referer spam, those mysterious links to your website

Referrer spam websites appear in your statistics. It’s there, now what? If no one other than you can see your awstats, analog stats etc., you don’t need to worry about it. Here’s a clear description of referrer spam.

Referer spam is not against the law!
Referer spam also known as log spam or referer bombing. The technique involves making repeated web site requests using a fake referer URL that points to the advertised site. Sites that publicize their access logs, including referer statistics, will then inadvertently link back to the advertised site. These links will be indexed by search engines as they crawl the access logs.

You can redirect visits from spamming domains with this htaccess code:


# REDIRECT DOMAIN
RewriteCond %{REMOTE_HOST} 75.101.143.12 [OR]
RewriteCond %{REMOTE_REFERER} sinkingship.org [NC]
RewriteRule ^.* - [G]

# HOTLINK
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !postbelief.org/ [NC]
RewriteRule .(pdf|epub|mp3|flv|swf)$ /hello.shtml [L]

# REDIRECT TLD's
RewriteCond %{HTTP_REFERER} ^https(s)?://(.*)?.(gov|mil|pol|exe|ru|pl|cn|de|ua|nl)(/.*)?$
RewriteRule ^.* /hello.shtml [L]

Read more about referer spam at Wikipedia.