PHPackages                             megaads/traffic-blocking - 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. megaads/traffic-blocking

ActiveLibrary[Security](/categories/security)

megaads/traffic-blocking
========================

The package help block access from any country you want. It gives you a web page where you can do it.

v1.0.0(4y ago)511MITPHP

Since Sep 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/kientnguyen175/traffic-blocking-laravel-package)[ Packagist](https://packagist.org/packages/megaads/traffic-blocking)[ RSS](/packages/megaads-traffic-blocking/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Traffic Blocking Laravel Package
================================

[](#traffic-blocking-laravel-package)

*The package help block access from any country you want. It gives you a web page where you can do it.*

Installation
============

[](#installation)

**1. Download the package**

```
composer require megaads/traffic-blocking
```

**2. Edit the file `/config/app.php` by adding the line below in `'providers'` section**

- For Laravel Version &lt; 5.0:

```
'Megaads\TrafficBlocking\Providers\TrafficBlockingServiceProvider'
```

- For Laravel Version &gt;= 5.0:

```
Megaads\TrafficBlocking\Providers\TrafficBlockingServiceProvider::class
```

**3. Publish config files**

- For Laravel Version &lt; 5.0:

```
php artisan config:publish --path="vendor/megaads/traffic-blocking/src/config" megaads/traffic-blocking --force
```

- For Laravel Version &gt;= 5.0:

```
php artisan vendor:publish --tag='config' --force
```

Usage
=====

[](#usage)

1. Define an array of keys in the file `/config/packages/megaads/traffic-blocking/keys.php` to help verify the permission to set up blocking access from selected countries.
2. Run `/megaads/traffic-blocking/index` URL in browser to select countries you want to block access from.
3. The package gives you a `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.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1701d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/72ad425c743522a807fd15e2a7b0ada9c2a2127ecca76fbef37cf9292022006a?d=identicon)[megaads-vn](/maintainers/megaads-vn)

![](https://www.gravatar.com/avatar/db0acc1901b5774a2c65c5dc58c6576413481f16b77ec59ede2fff7f9b5dd111?d=identicon)[kientnguyen175](/maintainers/kientnguyen175)

---

Tags

laravelpackagelaravel-packageaccess blockingblock accesstraffic blockingblock traffic

### Embed Badge

![Health badge](/badges/megaads-traffic-blocking/health.svg)

```
[![Health](https://phpackages.com/badges/megaads-traffic-blocking/health.svg)](https://phpackages.com/packages/megaads-traffic-blocking)
```

###  Alternatives

[lab404/laravel-impersonate

Laravel Impersonate is a plugin that allows to you to authenticate as your users.

2.3k16.4M48](/packages/lab404-laravel-impersonate)[joisarjignesh/bigbluebutton

BigBlueButton Server API Library for Laravel

162145.5k1](/packages/joisarjignesh-bigbluebutton)[enlightn/laravel-security-checker

A Laravel package to scan your dependencies for known security vulnerabilities.

51173.4k](/packages/enlightn-laravel-security-checker)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
