The package help block access from any country you want. It gives you a web page where you can do it.
megaads/traffic-blocking is a Laravel package for the package help block access from any country you want. it gives you a web page where you can do it..
It currently has 3 GitHub stars and 11 downloads on Packagist (latest version v1.0.0).
Install it with composer require megaads/traffic-blocking.
Discover more Laravel packages by megaads
or browse all Laravel packages to compare alternatives.
Last updated
The package help block access from any country you want. It gives you a web page where you can do it.
1. Download the package
composer require megaads/traffic-blocking
2. Edit the file /config/app.php by adding the line below in 'providers' section
'Megaads\TrafficBlocking\Providers\TrafficBlockingServiceProvider'
Megaads\TrafficBlocking\Providers\TrafficBlockingServiceProvider::class
3. Publish config files
php artisan config:publish --path="vendor/megaads/traffic-blocking/src/config" megaads/traffic-blocking --force
php artisan vendor:publish --tag='config' --force
/config/packages/megaads/traffic-blocking/keys.php to help verify the permission to set up blocking access from selected countries.<YOUR_DOMAIN>/megaads/traffic-blocking/index URL in browser to select countries you want to block access from.Route Filter - Route Middleware with the alias megaads-block-traffic and the class \Megaads\TrafficBlocking\Middleware\BlockTraffic::class. You can assign it to any route to block access from the countries you selected in step 1.