PHPackages                             shieldfy/waf-detector - 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. shieldfy/waf-detector

ActiveLibrary[Security](/categories/security)

shieldfy/waf-detector
=====================

This is a simple package for Web Application Firewall Detection. It supports CloudFlare, Incapsula, ModSecurity, and Shieldfy out of the box.

1.0.0(9y ago)4414018[1 issues](https://github.com/shieldfy/waf-detector/issues)PHPPHP &gt;=5.6.0

Since Nov 29Pushed 9y ago10 watchersCompare

[ Source](https://github.com/shieldfy/waf-detector)[ Packagist](https://packagist.org/packages/shieldfy/waf-detector)[ RSS](/packages/shieldfy-waf-detector/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

SHIELDFY Web Application Firewall Detector
==========================================

[](#shieldfy-web-application-firewall-detector)

This is a simple package for Web Application Firewall Detection. It supports CloudFlare, Incapsula, ModSecurity, and Shieldfy out of the box.

[![Packagist](https://camo.githubusercontent.com/3fde4d15e4dee484e072e10da16c5b1f812e3ec78c4802191dcfd7c025d45763/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736869656c6466792f7761662d6465746563746f722e7376673f6c6162656c3d5061636b6167697374267374796c653d666c61742d737175617265)](https://packagist.org/packages/shieldfy/waf-detector)[![VersionEye Dependencies](https://camo.githubusercontent.com/92f634cf88043748c500847400e6ccdd333f676a24fbe9ac15a48d8a9e9b0547/68747470733a2f2f696d672e736869656c64732e696f2f76657273696f6e6579652f642f7068702f736869656c6466793a7761662d6465746563746f722e7376673f6c6162656c3d446570656e64656e63696573267374796c653d666c61742d737175617265)](https://www.versioneye.com/php/shieldfy:waf-detector/)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/63c6b7c08f59abfb9c015cf287a0b9e3b3359521ed085aca249bb0a432649e66/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f736869656c6466792f7761662d6465746563746f722e7376673f6c6162656c3d5363727574696e697a6572267374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/shieldfy/waf-detector/)[![Code Climate](https://camo.githubusercontent.com/1f7443d1f81c1b1ea9658c9a017babff93444ac54b190b7ad46e6ed4e91482b7/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6769746875622f736869656c6466792f7761662d6465746563746f722e7376673f6c6162656c3d436f6465436c696d617465267374796c653d666c61742d737175617265)](https://codeclimate.com/github/shieldfy/waf-detector)[![License](https://camo.githubusercontent.com/f550d9f34d42b4447f69984cc56bea47b754309ae17e2a34902e667f7ff03c12/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f736869656c6466792f7761662d6465746563746f722e7376673f6c6162656c3d4c6963656e7365267374796c653d666c61742d737175617265)](https://github.com/shieldfy/waf-detector/blob/develop/LICENSE)

Table Of Contents
-----------------

[](#table-of-contents)

- [Usage](#usage)
- [Installation](#installation)
- [Changelog](#changelog)
- [Support](#support)
- [Contributing &amp; Protocols](#contributing--protocols)
- [Security Vulnerabilities](#security-vulnerabilities)
- [License](#license)

Usage
-----

[](#usage)

Usage is pretty easy and straightforward:

```
$firewalls = [
    new \Shieldfy\Firewall\CloudFlare(),
    new \Shieldfy\Firewall\Incapsula(),
    new \Shieldfy\Firewall\ModSecurity(),
    new \Shieldfy\Firewall\Shieldfy(),
];

$detector = new \Shieldfy\Detector(... $firewalls);

foreach ( $detector->detect('http://www.example.com') as $firewall => $status ) {
    // do something, perhaps displaying the status ?
}
```

### At the Command Line

[](#at-the-command-line)

```
# php bin/waf-detector.php http://example.org

```

Installation
------------

[](#installation)

Install the package via composer:

```
composer require shieldfy/waf-detector
```

Changelog
---------

[](#changelog)

Refer to the [Changelog](CHANGELOG.md) for a full history of the project.

Support
-------

[](#support)

The following support channels are available at your fingertips:

- [Help on Email](mailto:team@shieldfy.com)

Contributing &amp; Protocols
----------------------------

[](#contributing--protocols)

Thank you for considering contributing to this project! The contribution guide can be found in [CONTRIBUTING.md](CONTRIBUTING.md).

Bug reports, feature requests, and pull requests are very welcome.

- [Versioning](CONTRIBUTING.md#versioning)
- [Pull Requests](CONTRIBUTING.md#pull-requests)
- [Coding Standards](CONTRIBUTING.md#coding-standards)

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

If you discover a security vulnerability within this project, please send an e-mail to [security@shieldfy.com](security@shieldfy.com). All security vulnerabilities will be promptly addressed.

License
-------

[](#license)

This software is released under [MIT LICENSE](LICENSE).

(c) 2016 Shieldfy, Some rights reserved.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

3493d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9817b8aec8f20a77d9b89f64e016bdd9c68eafee34fa70a8d09ffe0f35221768?d=identicon)[shieldfy](/maintainers/shieldfy)

---

Top Contributors

[![Omranic](https://avatars.githubusercontent.com/u/406705?v=4)](https://github.com/Omranic "Omranic (4 commits)")[![netcode](https://avatars.githubusercontent.com/u/286371?v=4)](https://github.com/netcode "netcode (3 commits)")[![nhlm](https://avatars.githubusercontent.com/u/23406211?v=4)](https://github.com/nhlm "nhlm (2 commits)")

---

Tags

securitycloudflareapplicationfirewalldetectionshieldfyincapsulamodsecurity

### Embed Badge

![Health badge](/badges/shieldfy-waf-detector/health.svg)

```
[![Health](https://phpackages.com/badges/shieldfy-waf-detector/health.svg)](https://phpackages.com/packages/shieldfy-waf-detector)
```

###  Alternatives

[akaunting/laravel-firewall

Web Application Firewall (WAF) package for Laravel

1.0k494.9k2](/packages/akaunting-laravel-firewall)

PHPackages © 2026

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