woganmay/laravel-gdpr-blocker

Laravel middleware that blocks EU-based IP ranges

Installs: 37

Dependents: 0

Suggesters: 0

Security: 0

Stars: 8

Watchers: 2

Forks: 0

Open Issues: 1

pkg:composer/woganmay/laravel-gdpr-blocker

0.1 2018-05-05 15:19 UTC

This package is auto-updated.

Last update: 2025-10-05 03:43:38 UTC


README

A simple middleware class that blocks visitors from any of the 28 EU member states.

Installation

Install via Composer:

require woganmay/laravel-gdrp-blocker

Once it's installed, it creates a new Middleware you can include in app/Http/Kernel.php:

'web' => [
    ...
    \WoganMay\GDPRBlocker\GDPRMiddleware::class,
]

The middleware checks every request against a big list of EU IP addresses, and returns an HTML error page if the IP address is blocked.

License

MIT