资源说明:A PHP library to log and analyse HTTP traffic, throttle and block suspicious agents.
# Bouncer
[](https://travis-ci.org/znarf/bouncer)
[](https://scrutinizer-ci.com/g/znarf/bouncer/?branch=master)
A PHP library to log and analyse HTTP traffic, throttle and block suspicious agents.
## Installation
Install the latest version with
```bash
$ composer require bouncer/bouncer
```
## Basic Usage
Start Bouncer as soon as possible in your codebase.
```php
start();
```
## Cache
To properly operate, a cache backend needs to be defined. If no cache is set, Bouncer will try to use APC/APCu.
```php
addServer('localhost');
$bouncer = new Bouncer(array(
'cache' => \Bouncer\Cache\Memcache($memcache)
));
$bouncer->start();
```
### Author
François Hodierne - -
### License
Bouncer is licensed under the MIT License - see the `LICENSE` file for details
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。
English
