Referral Spam

Block Referral Spam in Google Analytics

Is referral spamming your website? Does it appear as a repeated source of web site requests in your Google Analytics results? If this is the case, then this article is made for you! We are going to explain what referral spam in Google Analytics is, why you should avoid it and discuss its negative effects. We’ve also compiled a set of procedures you can follow to block the source of the spam and save your google analytics statistics from being tampered with.

While in general spam such as this is usually harmless to the victim, you need to keep in mind that any Google Analytics reading you might use are going to be compromised. How? By incorrectly showing fake requests from the source of this referral spam, in our case The whole purpose for this referral spamming is the manipulation of search engine rankings to improve the popularity of the spammer’s site. Blocking the site from spamming you is encouraged, because it is considered a Black Hat practice to deliberately manipulate search engines.

What is spamdexing?

In the computer world, spamdexing is the purposeful tampering of search engine indexes. The whole technique involves a number of methods to perform the manipulation. One of them is the repetition of unrelated phrases, which modifies the relevance of resources indexed in a way that defeats the original purpose of the indexing system. While it could be regarded as a search engine optimization, there are other, much better ways to improve the appearance and quality of a web site’s content.

Search engines such as Google use different algorithms to determine how relevant a web site is when a given search word is applied. When calibrated correctly, this allows search queries to yield more relevant results, allowing much faster findings of web resources and information. Some of these algorithms determine whether the text in a given web page resembles or is the search term applied. If applied correctly, it would display that web site higher when someone uses the same search word at a later date. Many search engines actually check for spamdexing and remove suspected websites from the indexes. In fact, some people working at SEO companies can swiftly block entire result listings from websites that “spamdex”, possibly notified by other users who received improper matches. The Black Hat part of this is the involvement of practices that otherwise break the promotion rules set by the popular search engines. These guidelines are being completely ignored by the spammers and they continue doing what they can to unfairly boost their website’s popularity. There are two types of spamdexing: content spam and link spam. is classified as a link spam, so we shall cover that.

What does do to my website and what should I be aware of? is one of the more recent examples of Google Analytics referral spam that we’ve recently noticed as a threat. This domain is used by spammers who target the same statistic tools with the goal of attracting your attention to them. If you are seeing traffic from that domain name, then there’s no doubt that you are being targeted.

The most important thing to remember is to never visit this link. The whole goal of the spammers is precisely that – to trick you into visiting their site and purchase a product or service. There’s a possibility for viruses to be stationed at the same page, so you need to make sure you never visit the spammers’ link. Some of the traffic is potentially from bots visiting and executing scripts for Google Analytics. While the other possibility is ghost traffic that is completely ignoring your server and targets your web page’s statistics directly. can’t actually harm your site in a direct manner. The reports coming from it pose no direct danger. You’ll experience increased amounts of traffic on your server coming from the bots though. This has no effect on your site’s ranking on Google, so you don’t need to worry about that as well.

How can I stop the referral spam?

If you happen to manage multiple sites you can try to block the spam on the server level. Unfortunately, this will not halt the ghost referral spam from crawling inside your Google Analytics reports. You need to use a more direct approach the stop the spamming in its entirety. Follow our proven steps below and they will more than likely help you stop traffic from


Remove referral spam

STEP 1: In your Analytics account go to Admin —> All Filters.

pic 1(1)

STEP 2: Next, click New Filter and add in the Filter Name value.

STEP 3. Select the Custom Filter Type. In the Filter Field —> Campaign Source. In the Filter Pattern text box, add and click the Save button at the bottom of the webpage.

Pic 2(1)

Blocking referrer spam through .htaccess

If you know how to access your .htaccess file, you just need to input the following code in there:

RewriteCond %{HTTP_REFERER} [NC,OR]
RewriteCond %{HTTP_REFERER}
RewriteRule .* - [F]

If you don’t know how to access it, do the following:

Login to your cPanel account —> File Manager —> click the check-box “Document Root for—> your website. A side note: click on “Show hidden Files” and then Go. Find the .htacess file, right click it and choose Code Edit. Input the code I gave you and Save Changes.

Did we help you? A thank you in the comments goes a long way to warm our hearts!

Leave a Comment