middlewares/referrer-spam

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

Homepage:

Size: 24

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

middlewares/referrer-spam

Latest Version on Packagist Software License Build Status Quality Score Total Downloads SensioLabs Insight

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.

Requirements
Installation

This package is installable and autoloadable via Composer as middlewares/referrer-spam.

oser require middlewares/referrer-spam
Example
patcher = new Dispatcher([
new Middlewares\ReferrerSpam()


ponse = $dispatcher->dispatch(new ServerRequest());
Options
__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.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.