Vacation Notice: We will be on Eid (Eid al-Adha 2024) vacation from June 14 to 22. Hence, all of our support will be unavailable until June 22. We apologize for the temporary inconvenience. Please keep patience.


Steps to block the Google Analytics referral spam from

block referral spam from Google Analytics

Some unusual Google Analytics traffic spam has been sent from to our customers in the last few days. So you might be searching for the process to block the spam from This article will help you in all possible ways if you are trying to figure out how to block the Google Analytics traffic spamming.

How to stop from spamming?

By following these steps you can block the spam from

  1. At first, open the “Admin” section in Google Analytics and go to “View”. It is located on the right column. Then select “Filters” from there.
  2. Then click on the “+ADD FILTER” button to add a filter.
  3. Enter a filter name that you want to block. For Example, to block enter “block 101-reasons-for-SEO”.
  4. From the “Filter Type” select the “Custom” option.
  5. After that, select the “Exclude” radio option. Then a popup screen will appear which is the “Filter Field” and you can select “Campaign Source” from there. Enter the domain in the “Filter Pattern”. In this case, the domain is “”.
  6. Just put a “|” between the domains if you want to filter multiple domains at the same time. For example “||” and that will do the job.
  7. Just scroll down and click on the “Save” button to save this filter.

So the filter will be applied to Google Analytics and the data that has been captured. You can also verify if your filter is working or not by clicking the “Verify this filter” link whenever you edit or create the filter.

How to Create Filter by Using Only Valid Hostnames?

To allow only valid hostnames to your Google Analytics data, you can create a filter. To check the validity of the domain, the filter uses a Regex.

  • Comments are closed