PHPackages                             lcfumes/external-call-blocker - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. lcfumes/external-call-blocker

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lcfumes/external-call-blocker
=============================

External Call Blocker

161PHP

Since Sep 16Pushed 10y ago1 watchersCompare

[ Source](https://github.com/lcfumes/external-call-blocker)[ Packagist](https://packagist.org/packages/lcfumes/external-call-blocker)[ RSS](/packages/lcfumes-external-call-blocker/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

External Call Blocker Library
=============================

[](#external-call-blocker-library)

[![Build Status](https://camo.githubusercontent.com/b2a5c8117f46e41926f7c1b3bf27e4eeee0e7eea8355f1ff3743c36de354a02a/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c6366756d65732f65787465726e616c2d63616c6c2d626c6f636b65722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/lcfumes/external-call-blocker)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/46fe37d526aa6d2bba5d9515c75aeb574c315da13383bea53bd3635f2590cefc/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6c6366756d65732f65787465726e616c2d63616c6c2d626c6f636b65722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/lcfumes/external-call-blocker/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/c3d401b3f8d84ae00e51aae2fe5bc3c21461f79e9758ca4a7d13a9521e90f456/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6c6366756d65732f65787465726e616c2d63616c6c2d626c6f636b65722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/lcfumes/external-call-blocker/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/83dae7b0308785c9990fe058d343a019920b05a684185e8022cb466757b49564/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6366756d65732f65787465726e616c2d63616c6c2d626c6f636b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lcfumes/external-call-blocker)[![Total Downloads](https://camo.githubusercontent.com/80e4933ce6685465c86498e351a0a135216d84c6c5994e2caa2982d0f065a9e2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6366756d65732f65787465726e616c2d63616c6c2d626c6f636b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lcfumes/external-call-blocker)[![License](https://camo.githubusercontent.com/5e80beeb805b33a4f8f5194f99e6e0f4fb7c366ac0f13ba28419de86d37feb89/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c6366756d65732f65787465726e616c2d63616c6c2d626c6f636b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lcfumes/external-call-blocker)

Instalation
-----------

[](#instalation)

The package is available on [Packagist](http://packagist.org/packages/lcfumes/external-call-blocker). Autoloading is [PSR-4](https://github.com/php-fig/fig-standards/blob/lcfumes/accepted/PSR-4-autoloader.md) compatible.

```
{
    "require": {
        "lcfumes/external-call-blocker": "dev-master"
    }
}
```

Usage
-----

[](#usage)

---

##### Allowing calls

[](#allowing-calls)

-

```
use app\Blocker;

$domains = [".fumes.com.br", ".pedalize.com.br"];
$_SERVER["HTTP_REFERER"] = "http://www.fumes.com.br";
$blocker = new Blocker\Request($domains);

$request = \Symfony\Component\HttpFoundation\Request::createFromGlobals();
$blocker->isAllowed($request); // TRUE
```

##### Blocking external calls

[](#blocking-external-calls)

-

```
use app\Blocker;

$domains = [".fumes.com.br", ".pedalize.com.br"];
$_SERVER["HTTP_REFERER"] = "http://www.anotherurl.com.br/";
$blocker = new Blocker\Request($domains);

$request = \Symfony\Component\HttpFoundation\Request::createFromGlobals();
$blocker->isAllowed($request); // FALSE

// create and send a HTTP Response with 412 Status Code - Pre Conditional Failed
$blocker->block();
```

License
-------

[](#license)

MIT License

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0c99483679e8356363511ca77e4b71b17d82c474716c2ed62230ee24c570d542?d=identicon)[lcfumes](/maintainers/lcfumes)

---

Top Contributors

[![lcfumes](https://avatars.githubusercontent.com/u/3665280?v=4)](https://github.com/lcfumes "lcfumes (3 commits)")

### Embed Badge

![Health badge](/badges/lcfumes-external-call-blocker/health.svg)

```
[![Health](https://phpackages.com/badges/lcfumes-external-call-blocker/health.svg)](https://phpackages.com/packages/lcfumes-external-call-blocker)
```

###  Alternatives

[lifo/php-ipc

Simple PHP Inter Process Communication (IPC) library

285.6k](/packages/lifo-php-ipc)

PHPackages © 2026

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