Skip to content

Block referrer spammers

Anatoly Nekhay edited this page Jan 7, 2019 · 1 revision

Install middleware

Learn more about the middleware

composer require middlewares/referrer-spam

Using

Open the public/index.php and add to the file the following code before running the application:

$container->get(Sunrise\Http\Router\RouterInterface::class)
->addMiddleware(new Middlewares\ReferrerSpam());