Web Strategy & Beyond.

Fix: 9-reasons-for-seo.com Analytics Spam

You’re here because of the new referral traffic from 9-reasons-for-seo.com, 16-reasons-for-seo.com, local-seo-for-multiple-locations.com, seo-b2b.com, affordable-link-building.com, free-seo-consultation.com, get-seo-help.com, your-seo-promotion.com or its variants are spamming your Google Analytics data. Here’s how to block that single referral domain and related multiple referrers.

  1. Skip to method 1: block referral spam using Google Analytics.
  2. Skip to method 2: disable spam using .htaccess.
  3. Skip to method 3: disable spam using Cloudflare.

  • 12/06/2018: Added 16-reasons-for-seo.com fix.
  • 12/05/2018: Added 15-reasons-for-seo.com fix.
  • 12/04/2018: Added  99-reasons-for-seo.com fix.
  • 12/03/2018: Added  100-reasons-for-seo.com fix.
  • 11/29/2018: Added local-seo-for-multiple-locations.com fix.
  • 11/14/2018: Added seo-b2b.com fix.
  • 11/07/2018: Added affordable-link-building.com fix.
  • 11/01/2018: Added free-seo-consultation.com fix.
  • 10/27/2018: Added get-seo-help.com fix.
  • 10/13/2018: Added the solution to fix seo-services-with-results.com Analytics spam
  • 10/10/2018: Added the solution to fix better-seo-promotion.com spam.
  • 09/27/2018 11:57 PM: Blimey! It seems like they’re targeting me for writing this blog post.
  • 09/27/2018 11:16 PM: Added the Cloudflare method to block servers that spam your website.
  • 09/25/2018: This guide has the solution to fix your-seo-promotion-service.com-spam, 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 9-reasons-for-seo.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 9-reasons-for-seo.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|*9-reasons-for-seo\.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
RewriteEngine on
RewriteCond %{HTTP_REFERER} 9-reasons-for-seo\.com [NC, OR]
RewriteCond %{HTTP_REFERER} my-seo-promotion\.com [NC, OR]
RewriteCond %{HTTP_REFERER} example-spam-website\.com [NC]
RewriteRule .* - [F]

(Copy and paste the code in the bottom of your .htaccess.)

Note: Check whether a RewriteEngine On line is already inside your .htaccess file. Then you don’t need to copy that particular line from the code I shared. RewriteEngine only needs to occur once in the file, preferably at the top.

2. Find Spam Site’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 (use 9-reasons-for-seo.com) IP address:

Find your-seo-promotion.com's Server IP Address

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!

Help someone else by sharing this article. Thank you.

Need a hand?

Need help optimizing your website analytics, speed and search performance? Connect with me now.

33 Comments

Add Yours →

nice one thanks – you published an article today for exact thing I was searching for – remove the your-seo-promotion.com from showing up and effecting my analytics. Just started this morning.

You’re welcome, Phil. Came across this error last night and fixed it right away.

I thought a lot of people would be looking for a solution online- so updated here.

Hola: muy buen artículo, corto y preciso, me ha sido de gran utilidad.
Era la primera vez que tenía tráfico de referencia de your-seo-promotion.com, no sabía que hacer y estaba preocupado. Gracias por la solución.

It’s the Ukrainian SEO company Semalt that is behind it and when you contact them, they want to sell you their service. and send you in the dark about your-seo-promotion.com and some other referral url they have.

Did you know this was going to happen? Thanks a million for this great article. It came just in time.

I will check my analytics tomorrow to see if it disappears.

Will GA stop counting these visits immediately or you need to wait e.g. 24 hours before it takes effect? I’m asking because I did today what I read here and I noticed that GA is still counting these spam visits. So maybe it will start blocking them in a few hours not immediately?

Hi Luke,

GA Filters are usually reflected in the real-time reports, but not always, especially if you added the filter within the past hour or two.

And it takes time (as much as 24 hours) before filter effects become visible in your data.

I’ve updated the post and added the .htaccess method to block spammer’s IP directly. Doing so will make sure your website doesn’t welcome any “hits” from their server.

I am having this same issue, but my analytics are blocking me from being admin…I know it isn’t the same issue, but I want to block these guys and now can’t do it. Any thoughts on how to get myself back into GA as admin?? UGH!

Hi Heather,

I’d go with the .htaccess method because it’s the real deal. 😉

By the way, do you remember who has access to the master account? Did you hire anyone in the past to set up GA? The best method is to get in touch with the admin and sort it out.

Or you can speak with Google and fix this issue. You will need two things before you talk to Google. You will need your AdWords Customer ID and your UA number from the Google Analytics.

Please refer to this article for detailed info on this.

Do you have the access to edit .htaccess file? If so, add these lines:

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

Hi, thanks for that good tip ! it worked very good for me

RewriteCond %{HTTP_REFERER} reasons-for-seo\.com [NC, OR]
RewriteRule .* – [F]

and finally I’ve blocked that traffic !

Unfortunately, the .htaccess method did not work for me. It just created a server error and brought all my sites down. 🙁 Several hours of downtime before I realized it. Live and learn.

Sorry to hear that TJ.

Yes, messing with the .htaccess = playing with fire.

Try adding these lines next time (edit the domain name accordingly).

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

Thanks for the article and documenting ways to deal with it. I tend to watch live stats as I’ve got an ad campaign running for a client and though I have filtered the referrers and blocked requests in Google Analytics I can still see requests on the GA Real-time overview. These “appear” to come from a number of locations including Italy, Brazil and the Philippines though probably only due to fake IPs. Great that people are onto this annoyance. I hadn’t seen anything significant in stats for some time, maybe due to good filtering 🙂

Leave a Reply