Block Referral Spam

This page aims to help you block the referral spam page. If you were asking yourself what is then we will shed some light on the subject as well. is another possible way you may encounter this page in your Google Analytics statistics. referral spam is another addition to the Ghost Referral scheme that is affecting Google analytics. If your site is subjected to it for a prolonged amount of time it could completely compromise the accuracy of your analytics. For this reason it is highly recommended that you block access to your machine for it as soon as possible and we’ll explain how to do that below.

Traffic generated by referral spam is not real, in fact it is only there to attract your attention and any potential inaccuracy to your statistics is just collateral damage. If you try to visit the domain – – you will find out that it contains nothing. Instead you will be sent to This domain is not related to AliExpress, and in turn AliExpress is not reponsible for the spam. In truth the group behind works as an affiliate and  makes money whenever someone redirected to by their domain makes a purchase from that site. If you have not heard of it before – AliExpress is an E-commerce site much like and is perfectly legitimate. There are, however, many affiliate sites like that link to it. Unfortunately you cannot uninstall this spamer from your computer and it is also in no way connected to your browser, despite what some people may claim. Firefox, Chrome or IE have nothing to do with it.

Bot Crawlers and Ghost Referrals are an occurring and ever growing problem, which usually intensifies around big promotion periods of goods – around Christmas, New Year, Black Friday etc. As mentioned the creators of these annoying pests prefer to abuse these periods of the year, because people are more likely to spend money on the promotions that occur during this time.

What is

Google Analytics spam is becoming more popular every day and of course there are many developed tools in order to help people deal with it. Not all of them are effective though and some could even cause an even greater problem if mishandled.

  • Don’t use the exclusion list. It does not work, at least not completely. It will block the referrals from reaching you, but the spam will keep arriving and now it will be redirected to direct traffic. If that happens you will have absolutely no way to tell between real and fake traffic.
  • Server-side methods are not the solution either. Web-config, Wordpage plug-ins and htaccess will not help you block the spam, as it never really accesses your site at all. Unfortunately all those extra code will slow down your own site without doing anything useful.

The solution to your problem is called an exclusion filter and you’ll find the detailed instructions how to set up one in our guide below.

Remove referral spam

STEP 1: In your Analytics account go to Admin, then 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 Filter Field, find and select Campaign Source in the list. 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, you need to do the following:

Login to your cPanel account, then click on the File Manager icon, then search around and click the check-box called “Document Root for” and click on your website. A side note: click on “Show hidden Files” and then Go. Then simply find the .htacess file in the list, right click on it and choose Code Edit (and again click edit if you are asked). From then on input the code I already gave you and Save Changes. Check if everything works properly and when you are sure, click close.

Remember to leave us a comment if you run into any trouble!

Did we help you? Please, consider helping us by spreading the word!

  • HowToRemove.Guide Team

    RewriteCond %{HTTP_REFERER} copyrightclaims(dot)org ( I just added the (dot), because I don’t want to have a link leading to the website)
    RewriteRule .* – [F]
    This is the second one. It has “RewriteRule .* – [F]” behind it. That’s the difference. Everything will be correct.

  • Do you need to use both the GA and htcaccess methods?

    • HowToRemove.Guide Team

      No, either one is fine.

  • HowToRemove.Guide Team

    It might not look 100% exactly the same. You need to enter in the Filter Box.

  • HowToRemove.Guide Team

    Yes, it needs to be on Campaign Source.

  • HowToRemove.Guide Team