Download the PHP package middlewares/referrer-spam without Composer
On this page you can find all versions of the php package middlewares/referrer-spam. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download middlewares/referrer-spam
More information about middlewares/referrer-spam
Files in middlewares/referrer-spam
Package referrer-spam
Short Description Middleware to block referrer spammers
License MIT
Homepage https://github.com/middlewares/referrer-spam
Informations about the package referrer-spam
middlewares/referrer-spam
Middleware to block referrer spammers using matomo/referrer-spam-blacklist. It returns a 403
response if the url host in the Referer
header is in the blacklist.
Requirements
- PHP >= 7.2
- A PSR-7 http library
- A PSR-15 middleware dispatcher
ext-intl
PHP extension is recommended otherwise symfony/polyfill-intl-idn is used.
Installation
This package is installable and autoloadable via Composer as middlewares/referrer-spam.
Usage
By default, use matomo/referrer-spam-blacklist
as a list of spammers
But you can configure a custom spam list if you don't want to use the default:
Optionally, you can provide a Psr\Http\Message\ResponseFactoryInterface
as the second argument to create the error responses (403
). If it's not defined, Middleware\Utils\Factory will be used to detect it automatically.
Please see CONTRIBUTING for contributing details.
The MIT License (MIT). Please see LICENSE for more information.
All versions of referrer-spam with dependencies
middlewares/utils Version ^3.0
matomo/referrer-spam-blacklist Version *
psr/http-server-middleware Version ^1.0
symfony/polyfill-intl-idn Version ^1.26