WP Engine

Solutions
AgencyEnterpriseSmall & Medium BusinessMarketer
How WP Engine supports marketers.Benefits for marketers.Features that help you innovate.
Developer
How WP Engine supports developers.Benefits for developers.Features that help you move faster.
Explore Our Platform
Insights
Thought LeadershipTopics

Read articles, trends, and insights on these topics from leaders in marketing and technology.

Creative AgilityEnterprise PerformanceActionable IntelligenceEcosystem Integration
Resources

Access ebooks, whitepapers, webinars, and other knowledge from our ecosystem of digital experts.
Visit Resource Center.

Delivering a Slam Dunk Experience on WordPressEbook: The Ultimate Guide to WordPress Plugins15 Common WordPress Mistakes Agencies and their Clients Make
Case Studies
About
Our CompanyOur PlatformLatest News

Access the latest news from inside WP Engine.
Visit the Newsroom.

WP Engine Secures Strategic Growth Investment From Silver LakeWP Engine Unveils First WordPress Digital ExperienceWP Engine Expands Global Presence with New Office in Brisbane
Media Center

Get announcements and resources about WP Engine.

Press Releases
Careers at WP Engine
Pricing
Sales Questions?

Contact Sales

Discover why organizations of all types and sizes choose WP Engine — and how it can benefit you.

Chat

1

I'm available right now to answer any of your questions!

Reply

Call

+1-512-201-4819

Contact

Send a message

Compare Plans
Need Support?
Support DocumentationBilling HelpSupport

We offer support 24 hours a day, 7 days a week, 365 days a year. Log in to get expert one-on-one help.

Log in for support

Sales Questions

Contact Sales

Discover why organizations of all types and sizes choose WP Engine — and how it can benefit you.

Chat

1

I'm available right now to answer any of your questions!

Reply

Call

+1-512-201-4819

Contact

Send a message

Sign in
Sign in
Search

Search

Compare Plans
Call Sales +1-512-201-4819
Menu
AgencyEnterpriseSmall & Medium BusinessMarketers
How WP Engine supports marketers.Benefits for marketersFeatures that help you innovate.
Developers
How WP Engine supports developers.Benefits for developers.Features that help you move faster.
Our PlatformPricingResource CenterOur CompanySolution CenterThought LeadershipDocumentationCareers

How To Block Ghost Referral Spam

Mike Price 11.19.2015

There are various types of referrer/referral spam that plague WordPress sites. Most customers start to notice these within their Google Analytics reports. While some referral spam can easily be blocked with rewrite rules, some cannot be.

The type of referral spam that cannot be blocked via htaccess or nginx rewrite rules is a type of spam called Ghost Referrals. These types of referrals can’t be blocked because they are never actually visiting your WordPress site at all, hence the name “Ghost” referrals.

These are the types of referrals that you will see littering your Google Analytics reporting and will eventually drive you mad if you don’t know how to stop them. However, the good news is that it is possible to stop them from affecting your Google Analytics even if you can’t use rewrite rules!

First, let me clarify, that these Ghost referrals do not ever visit your site and therefore will never show up in your access logs. These referrals only show up in Google Analytics reporting because they are using GA Management Protocol allowing them to post a fake pageview with your unique GA code.

The way to block them from showing up in your reporting is by using a filter inside of Google Analytics itself. To learn how to use the filter block in Google Analytics, please check out this guide that includes screenshots:

https://megalytic.com/blog/how-to-filter-out-fake-referrals-and-other-google-analytics-spam

The most recent examples of Ghost Referrals are: Darodar, iloveitaly.co, priceg.com,blackhatworth.com, and hulfingtonpost.com. All of these must be blocked with a filter in Google Analytics. No amount of rewrite rules will do you any good like they would for say, Semalt, which is an actual web crawler.

More info on Ghost Referrals: http://www.ohow.co/what-is-referrer-spam-how-stop-it-guide/#Referrer_Spam_List_updated_18-april-15.

More WordPress news from WP Engine

WP ENGINE ANNOUNCES NEW BOARD AND EXECUTIVE APPOINTMENTSHassle-Free Management Of Hundreds Of WordPress Sites

Comments

  1. Akash Gurnani says

    January 24, 2016 at 2:13 am

    Cpanel Security and htaccess file are more reliable for blocking ghost referrals.

    Reply
    • Mike Price says

      January 25, 2016 at 11:07 am

      Hey Akash,

      Actually, you cannot block ghost referrals using Cpanel or htaccess because ghost referrals never visit your site in the first place. They are simply hijacking your Google Analytics code to spoof a visit to your site.

      Because they never actually visit your site, blocking them in htaccess does nothing. Hope this helps clarify 🙂

      Reply
  2. GLPK says

    February 2, 2016 at 2:14 pm

    I managed to block most of mine (including some of the ones you listed in the article) with a plugin, but there is one that says it isn’t a ‘valid referrer’ which I’m having trouble getting rid of – As far as I’m aware filtering your Analytics results only stops them showing up as referral traffic. They just become direct traffic in the report after you add the filter.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Subscribe

    Subscribe to our blog to get great tips for your WordPress site.

  • Favorite Tweets by @wpengine
  • Sign In

    Solutions

    • Agency
    • Enterprise
    • SMB
    • Marketer
    • Developer

    Insights

    • Blog
    • Torque
    • Velocitize

    About

    • Our Company
    • Leadership Team
    • Our Platform
    • Careers
    • Affiliates
    • Contact
    • Legal
    • Newsroom
    • Privacy Policy

    Resources

    • Resource Center
    • Documentation
    • Solution Center
    • Find an Agency

    WP Engine

    504 Lavaca Street, Suite 1000
    Austin, TX 78701

    Sales

    +1-512-201-4819
    [email protected]
    7am–7pm CST

    Billing

    [email protected]

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Instagram
    • RSS
    © 2013—2025 WPEngine, Inc. All rights reserved.
    WP ENGINE®, VELOCITIZE®, TORQUE®, EVERCACHE®, and the cog logo service marks are owned by WPEngine, Inc.