1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90# 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.
[](https://packagist.org/packages/shieldfy/waf-detector)
[](https://www.versioneye.com/php/shieldfy:waf-detector/)
[](https://scrutinizer-ci.com/g/shieldfy/waf-detector/)
[](https://codeclimate.com/github/shieldfy/waf-detector)
[](https://github.com/shieldfy/waf-detector/blob/develop/LICENSE)
## Table Of Contents
- [Usage](#usage)
- [Installation](#installation)
- [Changelog](#changelog)
- [Support](#support)
- [Contributing & Protocols](#contributing--protocols)
- [Security Vulnerabilities](#security-vulnerabilities)
- [License](#license)
## Usage
Usage is pretty easy and straightforward:
```php
$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
```
# php bin/waf-detector.php http://example.org
```
## Installation
Install the package via composer:
```shell
composer require shieldfy/waf-detector
```
## Changelog
Refer to the [Changelog](CHANGELOG.md) for a full history of the project.
## Support
The following support channels are available at your fingertips:
- [Help on Email](mailto:team@shieldfy.com)
## 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
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
This software is released under [MIT LICENSE](LICENSE).
(c) 2016 Shieldfy, Some rights reserved.