Referral Spam

Block / Referral Spam in Google Analytics

How irritating is this problem? (7 votes, average: 5.00)

Site owners who are trying to build up their sites and draw more and more traffic to them are normally heavily reliant on the information that Google Analytics provides them with.

There, they can acquire all kinds of info about the traffic of their site – where the most traffic comes from, how long the visitors’ sessions are, information about the overall demographic of the visitors and much more. This is exactly why it could be a serious issue if you are a site owner and have gotten targeted by a referral spam campaign such as the one conducted by What referral spam does is it generates fake views to your site – they have no session time and their bounce rate is usually 100%. This is because those visits are normally done by bots or in’s case which is a recently reported form of ghost spam, there are no actual visits and only the GA stats of your site have gotten modified. The purpose of this isn’t to harm you – it is to benefit the spammer. You see, it’s likely that once you notice the increased number of empty visits that are all from the same web address, you’d visit the spammer’s site to in order to gain a better understanding of what’s really going on. However, by doing so, you’d be effectively increasing their own site’s traffic and boosting their GA ranking. This is actually the whole purpose of the referral/ghost spam schemes. Now, while this doesn’t necessarily harm you directly, the inaccurate GA statistics you’d get in result can hurt your site’s performance since you wouldn’t be able to accurately determine what your site’s traffic really is. Luckily, below we have the solution for you in the form of a removal guide for

Block / 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!

Do not use Google’s Exclusion list for

As we said above, is no ordinary type of referral spam and instead is a form of ghost spam meaning that it doesn’t resort to bots or crawlers to generate fake views and instead simply alters the GA stats in order to make you think you have been getting visited from the spammer’s web address. Adding to Google’s Exclusions list will result in Google taking a look at the site and


Leave a Comment