🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
Block Referer Spam icon
Maintained Tested up to 7.0.9 #1 in analytics spam

Block Referer Spam

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

Active installs500+100+ tier
Downloads · 30d413▲ +38.6% vs prev. 30d
Rating3.4/521 reviews
Health score64/100Good
All-time downloads26.8KSince Jul 2015
Support resolved—No recent threads
RequiresWP 3.0.2PHP any
Downloads · 7d125▲ +33% week over week
Our verdict

Solid choice

Block Referer Spam is a solid plugin choice in 2026, with a few things worth checking first. It runs on 500+ sites, is rated 3.4/5 and was last updated 4 months ago, and scores 64/100 on our health check.

  • Small user base (500+ active installs)
  • Mixed reviews — 3.4/5 from 21 ratings

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

112233Sep 4Oct 18Dec 2
Yesterday45
Daily average (1y)6
Peak day228Aug 17, 2026
Last 12 months2.2K

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Block Referer Spam stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
analytics spam #13 1,007 Best analytics spam plugins →
referer spam #1 73 Best referer spam plugins →
referral spam #4 122 Best referral spam plugins →
referrer spam #5 292 Best referrer spam plugins →
spam #31 4,506 Best spam plugins →

Version adoption

Share of active sites per release.

  • 1.257.3%
  • 1.142.7%

Rating breakdown

★★★★★★★★★★ 3.4 from 21 reviews

  • 5★57.1%
  • 4★0.00%
  • 3★4.8%
  • 2★0.00%
  • 1★38.1%

About Block Referer Spam

From the official readme · v1.2

Description

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

Installation

  1. Install Block Referer Spam automatically, or upload the plugin ZIP file.
  2. Activate the plugin through the “Plugins” menu in WordPress.
  3. Go to the “Referer Spam” admin menu to review your blocking mode and options — the defaults work for most sites without any changes.

Using WP-CLI

wp plugin install block-referer-spam --activate

Changelog

1.2

  • Security: added a CSRF nonce check to the manual list-download action
  • Security: enabled TLS certificate verification on the pro license request
  • Security: fixed stored XSS in the Blocked Sites list and the pro key status message
  • Security: replaced a raw PHP stream request with the WordPress HTTP API for list downloads
  • Fix: flash messages no longer rely on PHP sessions (which were never actually started)
  • Fix: uninstall now removes all plugin options, .htaccess rules, and the scheduled cron event
  • Fix: scheduled cron event is now cleared on deactivation, instead of left running
  • Fix: daily cron now respects the Auto Update setting instead of ignoring it
  • Fix: PHP notice when no HTTP referer is present on the request
  • Fix: removed unused/dead code left over from the bundled IDN library that failed to parse on PHP 8
  • Improvement: .htaccess rewrite rules are kept ahead of caching-plugin rules, so Rewrite mode still blocks spam when a caching plugin is active
  • Improvement: new admin notice when WordPress Block mode is active alongside a known caching plugin
  • Improvement: the merged block list is now cached instead of re-parsed on every request
  • Improvement: custom-block domain normalization now uses PHP’s native IDN support when available, only falling back to the bundled library on hosts without it
  • Tested up to WordPress 7.0.3

1.1.9.3

  • Tested for WordPress 5.0
  • Fix issue where updated list sometimes does not get written to .htaccess when called via cron

1.1.9.1

  • Cleans up after itself on deactivation

1.1.9

  • Pro version available

1.1.8.5

  • Readme typo fixes
  • Blocklist back to using custom solution

1.1.7

  • Readme typo fixes
  • Blocklist back to using custom solution

Full changelog on WordPress.org →

Screenshots

Admin Interface
Admin Interface

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best Block Referer Spam alternatives

All analytics spam plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
2 WP Block Referrer Spam WP Block Referrer Spam Block 250+ spam sites, such as semalt.com and 4webmasters.org! Keep your website safe and… by Roger Rodrigo 60+ ★★★★★★★★★★ 2.5 (4) 11 years ago 25
3 Block Referers Block Referers Block unwanted visitors from viewing your WordPress site. by Ethan Allen 10+ ★★★★★★★★★★ No reviews 7 years ago 23

FAQ

Block Referer Spam: quick answers

Straight answers, pulled from live WordPress.org data.

Source: WordPress.org

Is Block Referer Spam free?

Yes. Block Referer Spam is free to download and use from the official WordPress.org plugin directory.

Is Block Referer Spam safe to use in 2026?

Block Referer Spam is a solid plugin choice in 2026, with a few things worth checking first. It runs on 500+ sites, is rated 3.4/5 and was last updated 4 months ago, and scores 64/100 on our health check.

How many websites use Block Referer Spam?

Block Referer Spam is active on 500+ WordPress websites and has been downloaded 26,847 times since it launched in July 2015. It was downloaded 413 times in the last 30 days.

Does Block Referer Spam work with WordPress 7.1?

Block Referer Spam is officially tested up to WordPress 7.0.9, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

When was Block Referer Spam last updated?

The latest version, 1.2, was released on August 16, 2026 (4 months ago).

Who makes Block Referer Spam?

Block Referer Spam is developed and maintained by supersoju.

What are the best alternatives to Block Referer Spam?

The most popular alternatives to Block Referer Spam are WP Block Referrer Spam (60+ installs) and Block Referers (10+ installs).

Powered by PageForge

One template and a spreadsheet. A real page for every search.

PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.

  • CSV and XLSX, plus Google Sheets on Professional and Enterprise
  • Its own title, URL, SEO fields and schema for every page
  • Works with the block editor, Elementor, Divi and Avada
  • Free on WordPress.org, no credit card

↑↓ to move↵ to open