How to Block Secret.Google.Com Referral Spam in Google Analytics

By | December 3, 2016

Google analytics tools are a reliable method to track your any statistics concerning your website. Their usefulness and power make them one of the best statistics tracking options to date. This article, in particular, is aimed at, which is just another instance of referral spam.

How to Block Secret.Google.Com Referral Spam in Google Analytics

What is What does referral spam do?

Referral spam – which is an instance of – is a particular type of spam content that is only visible to website administrators through the web analytics dashboard. It usually takes the form of a fake traffic referral, a direct visit or a search term. The gist of it is fairly cunning and ingenious. A referrer if you happen not to know is a name or link that is shared via the HTTP header when a browser navigates through the pages of a website. This helps you track the type of audience you have and where they come from, usually accessed through the analytics dashboard. Any name or link can replace the referrer itself. Some spammers use this feature to link back to their websites their main goal of promotion and issue multiple requests your site. Because your analytics platform also tracks this information, it shows up in your reports. This exact, repeated hijack of your reports is what we name referral spam.

Does it harm my site?

We must also mention that referral spam does not harm your site in any way – other than polluting statistics. While the goal of the spammers is fairly malicious in nature, their actions do not affect your ranking. However, this does not mean that this issue should be ignored or neglected – or procrastinated upon – because the faster you act, the quicker you will stop the spammers dead in their tracks. The reason for this is fairly simple. A web administrator regularly checks his logs and reports to see how his website is doing. If a referral spam is taking place, he will be curious to know what that link is doing in his logs / reports. Sure enough, he could click to investigate and before he knows is, he has already done what the spammers are hoping for interaction and curiosity. The most cunning of them all will direct you to an online store or filter you through an affiliate link that installs cookies and gets them revenue when you purchase something.

How to Block Secret.Google.Com Referral Spam in Google Analytics

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


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 web page.

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 not know how to access it, do the following:

Login to your cPanel account —> File Manager —> click the checkbox “Document Root for—> your website. A side note clicks 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.

Leave a Reply

Your email address will not be published.