Skip to content

Sanction Traffic From Russian and Belarusian IP addresses using Laravel

License

Notifications You must be signed in to change notification settings

Russia-Sanctions/Laravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Russia Sanctions - Laravel

A small Laravel Middleware Plugin which blocks requests from IP addresses linked with Russia and Belarus. A message explaining the war and these sanctions is displayed.

Installation

Install the package via composer:

composer require russia-sanctions/laravel

Edit app/Http/Kernel.php to setup the package as Global Middlware (so that it is applied to all requests):

protected $middleware = [
    // ... other middlewares

    // This should normally be included _after_ the TrustProxies
    // middleware, if you are using it, so that Laravel can correctly
    // identify the source IP address.
    \RussiaSanctions\Laravel\Middleware::class,
];

About

Sanction Traffic From Russian and Belarusian IP addresses using Laravel

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages