How to block referrer spam with WordPress plugin

There are a number of WordPress plugins designed to block referrer spam from accessing your website and affecting your analytics data. To find out if your website is affected read our earlier blog post Is referrer spam affecting your website metrics?

You can find instructions on how to block referrer spam with WordPress below:

The following instructions assume you are familiar with both WordPress and installing plugins. We cannot be held responsible for any detrimental effects and we do not provide unpaid support for these or any other instructions. Always take a backup!


This free plugin blocks popular referrer spammers using an automatically updated blacklist maintained by the plugin’s author with third party suggestions.

Once installed there are some basic options to configure. You can also add your own custom blacklist.

block referrer spam with WordPress

Semalt Blocker

This free plugin blocks and redirects visits from Semalt, which is just one of the many referrer spammers. If you are only receiving referral spam from this source then give it a try.

Alternative Plugins

A number of new plugins, including Block Referral Spam and Referrer Spam Blocker, have appeared in the last few weeks but currently have few installations or reviews by which to judge them.

Please be aware that WordPress plugins will not stop ghost referrer spam from sources such as,,, etc these are being injected directly into Google Analytics collection servers. So we strongly recommend you also filter referrer spam within Google Analytics otherwise your website metrics will still be affected by these false referrer visits.

Related blog posts

Is referrer spam affecting your website metrics?
How to block referrer spam in Google Analytics
How to block referrer spam with an .htaccess file

Share this article

Related Blogs

17Jan 18 

10 reasons people are leaving your website straight away

People leaving your website straight away is bad news. There’s never a time where you’d want someone to leave your website, but now it’s more important than ever thanks (or no thanks) to Google’s RankBrain. RankBrain is a complicated animal, but in a nutshell, Google are now paying closer attention if people click to your website from search results then immediately click back again. If someone does this, it’s a sign that your website didn’t satisfy them, and it’s likely Google wi...

10Jan 18 

Are people leaving my website? Find out with Google Analytics

You might have looked at how many people are visiting your website, but do you also pay attention to how many are leaving?Using Google Analytics to find out where people leave Google Analytics can give you insight into where people are leaving your website, and you can then do a bit of detective work to try and work out why that might be. Here's three metrics to look at. Related blog: Learn how to set up Google Analytics1) Exit pages Go to 'Behaviour > Site Content > All Pages' and cli...

15Jan 16 

How to set up Google Analytics

Measuring your progress is an essential part of any successful digital marketing strategy. Google Analytics is a great free tool for measuring and analysing your web traffic, plus it’s fairly straightforward to get set up. If you’ve never used it before, here’s how to get started... Sign up to Google Analytics If you don’t already use any Google services, you will need to create a Google account at Ignore all the stuff about premium and sign up for a free account...

Join Our Mailing List