There has been a large increase in the amount of Referral Spam in WordPress sites in the past few months. I am not completely sure why that is or if maybe people are just starting to take more notice of it. 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 actually never 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 screwing up 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 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 well written article with amazing screenshots:
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 or makemoneyonline.
More info on Ghost Referrals: https://www.ohow.co/what-is-referrer-spam-how-stop-it-guide/#Referrer_Spam_List_updated_18-april-15
Buttons For Website Spam: https://210mike.com/buttons-for-website/
Want to Learn More About WordPress? Subscribe Now!