Over the past few months we have had many clients asking us how to stop the spammer's URL from showing up in their referrer stats and does this damage their Google ranking?
Many of the URLs that are listed as referrers in your stats are not there as true referral links, but from spammers. Their primary purpose is to get you to click their link as you would to check out who has linked to you.
By removing the links, it makes it easier to read the referrer stats. This will give you a true guage of your backlinks.
Example Code:
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^(.*.ru) [OR] // stop all websites from russia
RewriteCond %{HTTP_REFERER} ^(a-domain-name.com) [OR] // stop a single domain name
RewriteCond %{HTTP_REFERER} (weight.*) // stop any referrer string (domain even with extra wording) with "weight" in it.
RewriteRule .* - [F] // forhidden page
If you would like help in blocking the spammers, feel free to contact us.
©2025 All rights reserved