WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by supersoju v1.2

Block Referer Spam

Blocks referer/referral spam bots from accessing your site and keeps them out of your analytics.

Block Referer Spam

The facts

Rating
3.4★ from 21
Active installs
500+
Price
Free
Last updated
16 Aug 2026
Added
Jul 2015
Requires WP
3.0.2
Tested up to
WP 7.0.4
Downloads
25,814

Our analysis

AI-assisted

Block Referer Spam is a WordPress plugin designed to prevent bots that fake HTTP_REFERER headers from appearing in your traffic logs and analytics. It blocks known offenders automatically, requiring no configuration to start working. The plugin offers two modes of operation: Rewrite mode for Apache servers and WordPress mode for other hosting setups.

The plugin maintains a block list that is updated daily with known spam sources, and it allows you to add custom domains to the list. It is suitable for users who want to clean up their analytics data and protect their site from referrer spam without needing extensive technical knowledge.

Best for: This plugin is suitable for website owners looking to improve the accuracy of their analytics data by blocking referrer spam.

What it does well

  • Blocks bots that fake HTTP_REFERER headers
  • No configuration needed to start working
  • Two blocking modes for different hosting setups
  • Daily updates of the referer spam block list
  • Allows addition of custom domains to block

Where it falls short

  • May not intercept requests served from a full-page cache
  • Limited information on support and updates

Verdict

Block Referer Spam provides a straightforward solution for managing referrer spam, though its effectiveness may be limited by caching configurations.

From the developer

supersoju's own description of Block Referer Spam, lightly tidied.

Block Referer Spam stops the bots that fake an HTTP_REFERER header to advertise their own site in your traffic logs and analytics. They’re good enough at simulating real visits that they show up in Google Analytics right alongside genuine traffic — this plugin blocks the known offenders before they’re ever logged, and needs no configuration to start working.

Two blocking modes cover different hosting setups:

  • Rewrite mode (Apache only) — adds RewriteCond rules to .htaccess so spam requests are rejected by the web server itself, before WordPress even loads. Fastest option, and the default when your host is detected as Apache.
  • WordPress mode — checks the referer during normal WordPress request handling and returns a 403. Works on any host, including nginx, but can’t intercept a request that’s served entirely from a full-page cache (see the FAQ below) — the plugin will warn you on its settings page if it detects an active caching plugin while running in this mode.

The block list itself is a mix of several public spam-referer sources, merged and refreshed automatically once a day (or on demand from the settings page). You can also add your own domains to block, including internationalized (non-ASCII) domain names — they’re normalized automatically.

From Wikipedia:

Referrer spam (also known as log spam or referrer
bombing) is a kind of spamdexing (spamming aimed
at search engines). The technique involves making
repeated web site requests using a fake referer URL
to the site the spammer wishes to advertise. Sites that
publish their access logs, including referer statistics,
will then inadvertently link back to the spammer's site.
These links will be indexed by search engines
as they crawl the access logs.

This benefits the spammer because the free link improves
the spammer site's search engine ranking owing
to link-counting algorithms that search engines use.

Features

  • Automatic daily updates of the referer spam block list, or trigger an update manually
  • Add your own custom domains to the block list, with automatic IDN/Punycode normalization
  • Two blocking modes to fit Apache or non-Apache hosting: mod_rewrite or WordPress-level
  • Warns you if a caching plugin is likely to interfere with WordPress-mode blocking

Pro

Pro plans start at $2/mo. Visit BlockReferSpam.com for more information.

  • Sync your custom block list across all of your registered sites
  • Access to additional curated block lists

Examples Blocked

  • semalt
  • buttons-for-website
  • floating-share-buttons
  • 4webmaster
  • ilovevitaly
  • … and many more!

Found a bug, or want to contribute? Get in touch — support / supersoju.com

Cover photo by Lukas Budimaier

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for measuring traffic.

Under Construction

Easy to use Under Construction Page & Coming Soon Page. Enable Under Construction Mode in seconds & sh...

Free 600k+ installs 4.8★ (1,285)
Ad Inserter

Manage Google AdSense ads, banners, ad rotation, sticky widgets, AMP ads, ads.txt, tracking, header and footer...

Free 300k+ installs 4.9★ (2,428)
MonsterInsights

The best free Google Analytics plugin for WordPress. See how visitors find and use your website so you can gro...

Free 2M+ installs 4.5★ (3,148)
Maintenance

Great looking maintenance, coming soon & under construction pages. Put your site under maintenance in minu...

Free 1M+ installs 4.4★ (860)
Header Footer Code Manager

Easily add tracking code snippets, conversion pixels, or other scripts required by third party services for an...

Free 600k+ installs 4.9★ (309)
GA Google Analytics

Adds Google Analytics tracking code to your WordPress site. Supports many tracking features.

Free 400k+ installs 4.9★ (158)