https://github.com/devitools/arceau
https://github.com/devitools/arceau
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/devitools/arceau
- Owner: devitools
- License: mit
- Created: 2021-08-18T22:02:44.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-04T12:42:05.000Z (about 4 years ago)
- Last Synced: 2025-01-23T05:15:51.760Z (about 1 year ago)
- Language: PHP
- Size: 24.4 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Arceau Firewall
## How to install
`composer require devitools/arceau`
## Get started
Create a PHP file as below
```php
setDefaultMode(FIREWALL_DENY)
->addItem('10.0.0.*', FIREWALL_ALLOW)
->addItems($allowed, FIREWALL_ALLOW)
->handle();
};
```
Then use it anywhere
```php
$firewall = require __DIR__ . '/../../firewall.php';
$firewall();
```