Fix: seo-services-with-results.com Analytics Spam

your-seo-promotion.com is spamming Google Analytics data

You’re here because the new referral traffic from seo-services-with-results.com, your-seo-promotion.com or it’s variants are spamming your Google Analytics data. Here’s how to block that single referral domain and related multiple referrers.

  • Updated on 10/13/2018: Added the solution to fix seo-services-with-results.com Analytics spam
  • Updated on 10/10/2018: Added the solution to fix better-seo-promotion.com spam.
  • Updated on 09/27/2018 11:57 PM: Blimey! It seems like they’re targeting me now for writing this blog post.
  • Updated on 09/27/2018 11:16 PM: Added the Cloudflare method to block servers that spam your website.
  • Updated on 09/25/2018: This guide has the solution to fix your-seo-promotion-service.com, my-seo-promotion-service.com, and other domains that spam Google Analytics. Just change the domain name/URL accordingly. I’ve added a new .htaccess method also (future-proof).

Exclude a single referrer

How to Block your-seo-promotion.com Analytics Spam (September 2018)

  1. Sign in to Google Analytics.
  2. Click Admin, and navigate to the view in which you want to create the filter.
  3. In the VIEW column, click Filters.
  4. Click + New Filter. (If you can’t see this button, you do not have the necessary permission.)
  5. Select Create new Filter.
  6. Enter a name for the filter. Let’s name it seo-services-with-results.com.
  7. Set the Filter Type to Custom.
  8. Click the Select filter type drop-down menu and select Exclude.
  9. Now Set the Filter field to Campaign Source.
  10. Enter the Filter Pattern. In this case, add seo-services-with-results.com (the-spam-domain-name.tld) and click Save

To Exclude multiple referrers

You can use the regular expression in the Filter Pattern field to exclude several referring sources.

i.e., If you want to add multiple URLs, make a filter pattern separated by a | (pipeline).

Example:

otherspammysite\.com|.*new-seo-services-with-results.com\.com

Visit this link to learn more about setting filters on different levels. You may also set the Language Settings Filter and Campaign Referral Path Filter as well.

Disable Spam Using .htaccess

Applying filters is more like a band-aid solution. The spam sites are still sending traffic to your website, and GA doesn’t show it. Want to block the referral sites before they get to your site? There are two methods to block referral spam using .htaccess.

1. The Easy Method

Note: You have to be careful when editing .htaccess files, as a small mistake can make your website stop working or throw a server error loop. So have a backup! Copy and paste the old content of .htaccess file somewhere safe before proceeding.

Usually, the .htaccess file goes to the root of your website (/public_html for example, the same location of wp-config.php). If there is none, you can create a new file. But watch out not to create something like “.htaccess.txt” if you do it with notepad (which usually appends .txt to all files).

The location may vary according to where you installed WordPress inside the host. Edit the .htaccess file and add the following line:

# BLOCK ANALYTICS SPAM
RewriteCond %{HTTP_REFERER} seo-services-with-results.com\.com [NC, OR]
RewriteCond %{HTTP_REFERER} my-seo-promotion\.com [NC, OR]
RewriteCond %{HTTP_REFERER} example-spam-website\.com [NC]
RewriteRule .* - [F]

2. Find your-seo-promotion.com’s Server IP Address & Block it

There are chances the spammer may spin up more domain names for this unholy practice. Solution? Deny their server to access your website. Proceed at your own risk.

Use a DNS lookup tool like mxtoolbox.com to check spam domain’s IP address:

Find your-seo-promotion.com's Server IP Address
your-seo-promotion-service.com is pointed to the same the IP as well. Go ahead and test it.

As you can see, 217.23.10.44 turns out to the unique IP of the domain.

However, you’ve to make sure the spammer is not using any CDN to hide their IP address. Look at Facebook.com for example:

Facebook CDN

Facebook, Inc. CDN uses specific IP ranges for delivering Facebook.com. Here’s a list of IP Ranges that Cloudflare use. Make sure that you identify the unique IP of spammer and not IP ranges of a CDN service.

Upon identifying the spam sever, edit the .htaccess file and add the following line:

# block spam referrer
Deny from 217.23.10.44

Make sure that you enter the correct IP address. Doing so will block all the spammy domains pointed to this server IP address.

Block IPs in Cloudflare CDN

Cloudflare user? The Firewall tab on Cloudflare provides you with an interface that you can use to block or whitelist IP addresses or entire networks. Based on the results from mxtoolbox.com, you can block spammer’s IP using Cloudflare. Here’s how to do it:

  1. Log in to Cloudflare.
  2. Go to the Firewall app.
  3. Add an entry to the Access Rules and select the action.
As seen on support.cloudflare.com.

Good luck!

Need a hand?

Need help optimizing your website analytics, speed and search performance? Connect with me now (50USD per hour).