PHPackages                             pretzelhands/laravel-embargoed - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. pretzelhands/laravel-embargoed

ActiveLaravel-middleware[Security](/categories/security)

pretzelhands/laravel-embargoed
==============================

Middleware to block all requests from Russia to any Laravel app and display a pro-Ukraine message instead

31Blade

Since Feb 26Pushed 4y ago1 watchersCompare

[ Source](https://github.com/pretzelhands/laravel-embargoed)[ Packagist](https://packagist.org/packages/pretzelhands/laravel-embargoed)[ RSS](/packages/pretzelhands-laravel-embargoed/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Embargoed
=================

[](#laravel-embargoed)

Middleware to block all requests from Russia to any Laravel app and display a pro-Ukraine message instead 🇺🇦

---

### What does this middleware do?

[](#what-does-this-middleware-do)

This middleware checks the IP of visitors coming to your site for their origin. If it detects a Russian IP, instead of continuing as normal it will block the visit and display a pro-Ukrainian message.

The message looks as follows:

[![Embargoed message](readme/embargoed-message.jpg)](readme/embargoed-message.jpg)

### Installation

[](#installation)

1. Install the package via composer: `composer require pretzelhands/laravel-embargoed`
2. Add the `Pretzelhands\Embargoed\Http\Middleware\EmbargoOnRussia` middleware to your `app/Http/Kernel.php`

```
