Name: referrer-spam
Owner: Middlewares
Description: PSR-15 middleware to block referrer spammers
Created: 2016-10-11 11:10:45.0
Updated: 2018-02-04 18:56:22.0
Pushed: 2018-05-14 10:30:23.0
Size: 24
Language: PHP
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Middleware to block referrer spammers using piwik/referrer-spam-blacklist. It returns a 403 response if the url host in the Referer
header is in the blacklist.
This package is installable and autoloadable via Composer as middlewares/referrer-spam.
oser require middlewares/referrer-spam
patcher = new Dispatcher([
new Middlewares\ReferrerSpam()
ponse = $dispatcher->dispatch(new ServerRequest());
__construct(array $blackList = null)
Allow to configure a custom spam list if you don't want to use the piwik's one.
Please see CHANGELOG for more information about recent changes and CONTRIBUTING for contributing details.
The MIT License (MIT). Please see LICENSE for more information.