• Stars
    star
    652
  • Rank 69,062 (Top 2 %)
  • Language
  • Created over 9 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Community-contributed list of referrer spammers. Comment +1 in any issue or Pull request and the spammer will be added to the list!

This is a community-contributed list of referrer spammers maintained by Matomo, the leading open source web analytics platform.

Usage

The list is stored in this repository in spammers.txt. This text file contains one host per line.

You can download this file manually, download the whole folder as zip or clone the repository using git:

git clone https://github.com/matomo-org/referrer-spam-list.git

PHP

If you are using PHP, you can also install the list through Composer:

composer require matomo/referrer-spam-blacklist

Parsing the file should be pretty easy using your favorite language. Beware that the file can contain empty lines.

Here is an example using PHP:

$list = file('spammers.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);

Nginx

Nginx's server block can be configured to check the referer and return an error:

if ($http_referer ~ '0n-line.tv') {return 403;}
if ($http_referer ~ '100dollars-seo.com') {return 403;}
...

When combined, list exceeds the max length for a single regex expression, so hosts must be broken up as shown above.

Here is a bash script to create an nginx conf file:

sort spammers.txt | uniq | sed 's/\./\\\\./g' | while read host; 
do 
    echo "if (\$http_referer ~ '$host') {return 403;}" >> /etc/nginx/referer_spam.conf
done;

you would then include /etc/nginx/referer_spam.conf; inside your server block

Now as a daily cron job so the list stays up to date:

0 0 * * * cd /etc/nginx/referrer-spam-blacklist/ && git pull > /dev/null && echo "" > /etc/nginx/referer_spam.conf && sort spammers.txt | uniq | sed 's/\./\\\\\\\\./g' | while read host; do echo "if (\$http_referer ~ '$host') {return 403;}" >> /etc/nginx/referer_spam.conf; done; service nginx reload > /dev/null

In Matomo (formerly Piwik)

This list is included in each Matomo release so that referrer spam is filtered automatically. Matomo will also automatically update this list to its latest version every week.

Contributing

To add a new referrer spammer to the list, click here to edit the spammers.txt file and select Create a new branch for this commit and start a pull request. . In your pull request please explain where the referrer domain appeared and why you think it is a spammer. Please open one pull request per new domain.

If you open a pull request, it is appreciated if you keep one hostname per line, keep the list ordered alphabetically, and use Linux line endings.

Please search if somebody already reported the host before opening a new one.

Subdomains

Matomo does sub-string matching on domain names from this list, so adding semalt.com is enough to block all subdomain referrers too, such as semalt.semalt.com.

However, there are cases where you'd only want to add a subdomain but not the root domain. For example, add referrerspammer.tumblr.com but not tumblr.com, otherwise all *.tumblr.com sites would be affected.

Sorting

To keep the list sorted the same way across forks it is recommended to let the computer do the sorting. The list follows the merge sort algorithm as implemented in sort. You can use sort to both sort the list and filter out doubles:

sort -uf -o spammers.txt spammers.txt

Community Projects

Apache .htaccess referrer spam blacklist - A script for Apache users that generates a list of RewriteConds based on spammers.txt.

Disclaimer

This list of Referrer spammers is contributed by the community and is provided as is. Use at your own discretion: it may be incomplete (although we aim to keep it up to date) and it may contain outdated entries (let us know if a hostname was added but is not actually a spammer).

License

Public Domain (no copyright).

More Repositories

1

matomo

Liberating Web Analytics. Star us on Github? +1. Matomo is the leading open alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. We love Pull Requests!
PHP
18,186
star
2

device-detector

The Universal Device Detection library will parse any User Agent and detect the browser, operating system, device used (desktop, tablet, mobile, tv, cars, console, etc.), brand and model.
PHP
2,871
star
3

docker

Official Docker project for Matomo Analytics
Shell
799
star
4

matomo-nginx

Nginx configuration for running Matomo
406
star
5

matomo-sdk-ios

Matomo iOS, tvOS and macOS SDK: a Matomo tracker written in Swift
Swift
390
star
6

matomo-sdk-android

SDK for Android to measure your apps with Matomo. Works on Android phones, tablets, Fire TV sticks, and more!
Java
388
star
7

matomo-log-analytics

Import any kind of server logs in Matomo for powerful log analytics. Universal log file parsing and reporting.
Python
208
star
8

matomo-php-tracker

PHP Client for Matomo Analytics Tracking API
PHP
188
star
9

tracker-proxy

HTTP proxy for Matomo's tracker API. This script allows to track websites with Matomo without revealing to your visitors the secret Matomo server URL.
PHP
145
star
10

tag-manager

Free Open Source Matomo Tag Manager - A simple way to manage and maintain all of your (third-party) tags on your website.
PHP
139
star
11

matomo-nodejs-tracker

A Node.js wrapper for the Matomo (Piwik) tracking HTTP API
JavaScript
116
star
12

matomo-for-wordpress

Get a fully functioning Matomo Analytics for your WordPress. Star us on Github? +1. Matomo is the leading open alternative to Google Analytics that gives you full control over your data. Privacy is built-in. 100% data ownership, no one else can see your data. We love Pull Requests!
PHP
108
star
13

matomo-mobile-2

Matomo Mobile 2 App - The official Git repository! Liberating Web Analytics on the go!
JavaScript
99
star
14

piwik-python-api

Piwik API for Python
Python
98
star
15

plugin-QueuedTracking

Scale your large traffic Matomo service by queuing tracking requests (in Redis or MySQL) for better performance.
PHP
81
star
16

piwik-dotnet-tracker

C# API client SDK for the Piwik Tracking API
C#
74
star
17

matomo-java-tracker

Official Java implementation of the Matomo Tracking HTTP API.
Java
69
star
18

searchengine-and-social-list

List of Search engines URLs, keywords and Social network URLs definitions used by Matomo Analytics
64
star
19

github-sync

Synchronize labels and milestones accross GitHub repositories
PHP
56
star
20

developer-documentation

Matomo Developer Website
PHP
54
star
21

component-ini

Read and write INI configurations.
PHP
49
star
22

github-issues-mirror

Provides a read-only mirror for your GitHub issues
PHP
41
star
23

plugin-LoginLdap

LDAP authentication and synchronization for Matomo.
PHP
38
star
24

piwik-dotnet-api

Official C# implementation of the Matomo Analytics API
C#
36
star
25

component-cache

PHP caching library based on Doctrine cache
PHP
34
star
26

matomo-dev-environment

Matomo Development Environment (Vagrant)
Puppet
33
star
27

github-changelog-generator

Queries the GitHub issues API to format a changelog
JavaScript
30
star
28

matomo-package

Matomo release script (official package), and debian/ubuntu package (allows sysadmins to deploy Matomo within seconds using "apt-get install piwik -V")
Makefile
28
star
29

plugin-MarketingCampaignsReporting

PHP
24
star
30

plugin-SecurityInfo

Provides security information about your PHP environment and offers suggestions based on PhpSecInfo from the PHP Security Consortium.
PHP
24
star
31

matomo-icons

Source files for the icons in Matomo
Python
22
star
32

plugin-GoogleAnalyticsImporter

Google Analytics to Matomo importer
PHP
22
star
33

component-network

Network component: manipulate IP addresses (ipv4, ipv6) in PHP used in the Matomo project
PHP
20
star
34

plugin-VisitorGenerator

Plugin to create fake visits, websites, users and goals to populate Matomo reports
PHP
19
star
35

travis-scripts

Scripts used to manage and automate travis CI builds for Matomo and plugins.
PHP
16
star
36

plugin-TreemapVisualization

Matomo plugin that lets you view reports as treemaps.
JavaScript
15
star
37

plugin-CustomDimensions

Custom Dimensions lets you track any custom data in Matomo
PHP
13
star
38

puppet-piwik

Piwik Puppet Module
Puppet
13
star
39

plugin-CustomAlerts

Alerts are a great way to get notified of changes on your website in Matomo.
PHP
13
star
40

plugin-Bandwidth

Monitor Bandwidth for each page, download, and measure overall traffic in bytes
PHP
13
star
41

matomo-map-generator

Python script that generates all svg maps used in the Matomo map widget
Python
12
star
42

component-decompress

Decompress files
PHP
12
star
43

plugin-EnvironmentVariables

Allows you to specify Matomo config in environment variables instead of the config file.
PHP
10
star
44

plugin-TrackingSpamPrevention

PHP
10
star
45

plugin-TasksTimetable

List all maintenance tasks that are scheduled to run. Displays the task names and next execution time in a table.
PHP
6
star
46

looker-studio-connector

The officially supported Matomo Connector for Looker Studio enables you to explore your Matomo data in Looker Studio at no cost. You can connect to both Matomo Cloud instances or On-Premise instances using just a Matomo Auth Token.
TypeScript
5
star
47

plugin-LogViewer

View your Matomo logs within Matomo
PHP
5
star
48

plugin-CustomVariables

This plugins allows you to configure and track Custom Variables in your Matomo Analytics.
PHP
5
star
49

plugin-Migration

Migrate a Matomo Measurable (website, app, roll-up, ...) from one Matomo instance to another Matomo
PHP
5
star
50

plugin-LoginHttpAuth

PLUGIN IS NOT ACTIVELY MAINTAINED - We're looking for a new maintainer to fork this plugin. see https://github.com/matomo-org/plugin-LoginHttpAuth/issues/26 --- Plugin to let you connect to Matomo using HTTP Auth protocol instead of the standard Login mechanism
PHP
5
star
51

plugin-Provider

Reports the Internet Service Provider of your visitors as part of your Matomo Analytics
PHP
4
star
52

plugin-AnonymousPiwikUsageMeasurement

Help making Matomo better by sending anonymized usage data to the creators the project, and/or to your own Matomo instance and/or to any other Matomo instance
PHP
4
star
53

matomo-wordpress-plugin-examples

Examples on how to enrich the Matomo Analytics for WordPress plugin.
PHP
3
star
54

plugin-DeviceDetectorCache

Makes tracking in Matomo Analytics faster by detecting many devices, operating systems, bots, and browsers from a cache.
PHP
3
star
55

plugin-PiwikDebugger

Debug and troubleshoot a Matomo server or a plugin with this useful plugin toolkit
PHP
3
star
56

matomo-marketplace-for-wordpress

Keep plugins from the Matomo Marketplace up to date in your WordPress with the convenience of a click. Get notified on new updates.
PHP
3
star
57

plugin-ClassicFontTheme

Less
2
star
58

cloudflare-app-manual

Piwik Analytics app for Cloudflare. Adds the tracking code when user already has a running Piwik.
JavaScript
2
star
59

piwik-python-tracker

Official Python implementation of the Piwik Tracking HTTP API.
2
star
60

github-action-plugin-translations

Github action for automatic translation update for plugins using transifex
Shell
2
star
61

plugin-IE11ReleaseChannel

Adds a new release channel that is still compatibile with Internet Explorer 11.
PHP
1
star
62

test-examples

PHP
1
star
63

google-tag-manager-matomo-template

Official Matomo Tracking Tag for Matomo Cloud & Google Tag Manager
Smarty
1
star
64

.github

1
star
65

code-search

Code search in Matomo and all Matomo plugins registered in the Marketplace
HTML
1
star
66

github-action-tests

tests package for github action
Shell
1
star
67

plugin-MatomoCustomRelease

PHP
1
star