Este plugin non se actualizou en máis de 2 anos. É posible que xa non sexa compatible ou mantido por ninguén, ou podes ter problemas de compatibilidade cando se usa con novas versións de WordPress.

Block Referer Spam


Block Referer Spam aims at blocking all (or most) websites that use Referer Spam to promote their – often somewhat dodgy – website content. This is accomplished by bots that simulate human behavior. They do this so well, that they even show up in Google Analytics. This plugin does not require any special configuration after installation. Once active and auto-update is enabled, you will barely see any of those nasty spammers any more.

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.


  • Automatic or manual updates of referer spam list
  • Option of adding custom referer spam hosts
  • Two methods of blocking: mod_rewrite or WordPress based

Pro Features

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

  • Automatic syncing your of custom block lists across all of your sites
  • Additional curated block lists

Examples Blocked

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

If you think you found a bug in Referer Spam Blocker, please contact us! Further, if you want to contribute, feel free!

Anything else, please get in touch!

support /

Cover photo by Lukas Budimaier


  • Admin Interface


To install Block Referer Spam and start cleaning up your Google Analytics:

  1. Install Block Referer Spam automatically or by uploading the ZIP file.
  2. Active o complemento a través do menú ‘Complementos’ en WordPress.
  3. Block Referer Spam is now activated. Go to the “Referer Spam” menu and start review your options.
  4. You are now protected!

Using WP-CLI
wp plugin install block-referer-spam –activate

Preguntas frecuentes

What sites are blocked?

To give you the least amount of headache, this plugin is not using one, but indeed several sources of referer spam lists. Our servers merge multiple lists every couple hours to provide you with the best possible protection.

I still see those websites in my statistics!

This plugin will not remove existing Google Analytics Spam. What it will do is block further spam from being logged. You can however filter out those websites, a good tutorial for this is here:

I tested my site and those referers can still access my site!

This can by caused by three reasons.

  1. The site is not blocked by our list. The list is updated multiple times a day (every 6 hours) and chances are the site will be on it very soon. If not, try custom blocks.
  2. Some plugins interfere with the “Rewrite” block mode on server side level. Examples for these are caching plugins that may not always work. In this case, use the “WordPress” block mode instead.
  3. While using the “Rewrite” block mode is faster, you may not be able to write to your servers .htaccess file, in this case please use the “WordPress” block mode instead.

I found a bug!

If you find a bug, please report it here. We will always aim to fix the issue within 48 hours.


7 de Xuño, 2022
The second I installed this plugin I lost access to my dashboard. Main site was running but all dashboard pages returned an error caused by too many redirects. You need to rename the plugin folder and delete the various lines of “stuff” the plugin adds to your .htaccess file. A tense and stressful few minutes while I figured out how to undo the damage this plugin did. It’s not worth the risk of installing it so stay away from it.
24 de Decembro, 2016 1 resposta
I’ve tried quite a few of these referrer SPAM blocker plugins before – and I was not expecting much – but I have been converted !! :+) I don’t like messing with htaccess (I’m accident prone), so I thought I would give it a try.. I use this plugin in WordPress Block mode, and over the last week or so, I’ve had ZERO referrer SPAM, on two analytics plugins I use. I have also been researching and adding my own list of ghost websites to the one provided by the plugin – including a devious one via twitter from that guy who claims he is doing nothing illegal (!); There are over 600 sites in my list, and it’s growing day by day. Keep doing what you guys are doing – a great job !! :+)
25 de Novembro, 2016 2 respostas
I have installed it – and get a 403 as results for all my pages. Worst Plugin. And Referrer is written with double “r” – experts
14 de Outubro, 2016
When it comes to getting rid of – its COMPLETELY useless.
Ler todas as 21 opinións

Colaboradores e desenvolvedores

“Block Referer Spam” é un software de código aberto. As seguintes persoas colaboraron con este plugin.


Traduce “Block Referer Spam” ao teu idioma.

Interesado no desenvolvemento?

Revisa o código, bota unha ollada aorepositorio SVN, ou subscríbete ao log de desenvolvemento por RSS.

Rexistro de cambios

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

  • Cleans up after itself on deactivation


  • Pro version available

  • Readme typo fixes
  • Blocklist back to using custom solution


  • Readme typo fixes
  • Blocklist back to using custom solution


  • Updated blocklist provider


  • Added functionality to backup previous .htaccess in case something goes wrong.


  • Tested successfully on WordPress latest version (4.4).
  • Fixed a bug where other plugins could prevent Block Referer Spam from working.
  • Added box to honor contributors of this plugin.


  • Added Spanish translations!
  • If you would like to help and translate this plugin, get in touch!


  • Bugfix! Sorry guys! 🙂


  • Major update!
  • Fixed some critical bugs that could break the site.
  • Fixed some more bugs that could have produced notices.
  • Added validation and support for international domains!
  • Added cloud-feature to learn from all installations worldwide!
  • Fixed some mistakes in the German translation.


  • Fixed the plugin to run on PHP versions lower than 5.4. It should now work on older providers and servers that have not been updated for a while.


  • Fixed a bug that in “Rewrite Blocking”, rules were not actually enforced. Sorry about that!


  • Improved FAQs
  • Added writable check for .htaccess
  • Added WP-CLI installation instructions
  • Added part of Wikipedia about referer spam


  • Added German localization
  • Updated screenshot and fixed typos
  • Added frequently asked questions


  • Initial version