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:

RewriteCond %{REMOTE_HOST} [OR]
RewriteCond %{REMOTE_REFERER} [NC]
RewriteRule ^.* - [G]

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

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.

find me >> @minds | Telegram | Contact