Block Referral Websites from showing in Piwik


I was wondering if there was a way to block a particular site from showing in the ‘Referrer Websites’ section in Piwik?.

Recently we have started seeing all the sites we track as having ‘referrals’ from a site called, the referral is actually a crawler and not bringing human visitors but when clients see this they go to the site thinking it is bringing them traffic.


I suspect is a spammer, not a crawler. You may want to post your experience at:


I have the same problem with

I’d like to know how to exclude it of piwik stats…:S


Adding this to htaccess has worked for me so far

RewriteEngine on
RewriteCond %{HTTP_REFERER} [NC]
RewriteRule .* - [F]


I have already this line : RewriteEngine in my htaccess
should I add exactly like this ? :
RewriteEngine on
RewriteCond %{HTTP_REFERER} [NC]
RewriteRule .* - [F]


You can just add

RewriteCond %{HTTP_REFERER} [NC]
RewriteRule .* - [F]


RewriteEngine on

(Matthieu Aubry) #7

I’ve implemented Referrer Spam blacklist in Piwik! please contribute any new spamming domain in the ticket : Implement a default Referrer spam blacklist · Issue #2268 · matomo-org/matomo · GitHub


Thank you very, very much for this.

Is it possible to somehow set referrer_urls_spam = blacklist.file instead of filling up global.ini.php with referrer_urls_spam entries?

(Matthieu Aubry) #9

Not possible, please let me know which sites are spam, as we want to whitelist case by case and not too broad.


I have a low traffic site the refferal spammers seem to really love. Pretty much all of them come from IP addresses in either Ukraine or Russian Federation. Here are the sites from the last week:



Can you please ban, they are stat spamming through all my domains.