AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

5.3K members online now
5.3K members online now
Learn to identify referral spam traffic, as well as best practices to reduce referral spam in your Google Analytics account
Guide Me

Ghost Spam using legitimate hostname

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

When looking through the solutions online for blocking and filtering spam in GA, I came across a lot of solutions. This MOZ solution being the one I found easiest to understand.


The problem that I have is that when I look in my own GA, these spam bots appear to have a legitimate hostname that is the same [censored] some of my main traffic. Does mark this fix as ineffective and are these spammers getting smarter? Or am I missing something? ... is there another solution?

1 Expert replyverified_user

Re: Ghost Spam using legitimate hostname

Rising Star
# 2
Rising Star
Hi Patrick,

Unfortunately, the spammers are getting more sophisticated. It would be nice if GA would block them automatically but alas, they would just open up shop under a new domain.

While I did not follow the MOZ link, best practice is to have an include filter for your hostname and I'm sure it says something like that and it sounds like you've done it.

Now you will need to layer in exclude filters for campaign source with the pattern matching the offending site. This would be under Advanced>>Exclude>>Campaing Source so if the traffic was coming from you would add this in as the pattern. You can also add more than one to one filter with a pipe | . Purists (like me Smiley Happy ) would have you escape the dot . with a slash so the .com would be \.com. It works either way but escaping is best practice.

Hope that helps.


Theo Bennett
Analytics Evangelist at MoreVisibility | Contact Me
Connect on LinkedIn