Git Product home page Git Product logo

bouncer's Introduction

Bouncer

Build Status Scrutinizer Code Quality

A PHP library to log and analyse HTTP traffic, throttle and block suspicious agents.

Installation

Install the latest version with

$ composer require bouncer/bouncer

Basic Usage

Start Bouncer as soon as possible in your codebase.

<?php

use \Bouncer\Bouncer;

$bouncer = new Bouncer();

$bouncer->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

use \Bouncer\Bouncer;

$memcache = new Memcache();
$memcache->addServer('localhost');

$bouncer = new Bouncer(array(
  'cache' => \Bouncer\Cache\Memcache($memcache)
));

$bouncer->start();

Author

François Hodierne - [email protected] - http://francois.hodierne.net/

License

Bouncer is licensed under the MIT License - see the LICENSE file for details

bouncer's People

Contributors

dbrabera avatar xavierlacot avatar znarf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bouncer's Issues

Android browser detected as Safari

query: useragent:Android

Mozilla/5.0 (Linux; U; Android 2.2.1; fr-fr; U8500 Build/FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1

Mozilla/5.0 (Linux; U; Android 2.3.4; fr-fr; Nexus S Build/GRJ22) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1

Mozilla/5.0 (Linux; U; Android 3.1; en-us; Transformer TF101 Build/HMJ37) AppleWebKit/534.13 (KHTML, like Gecko) Version/4.0 Safari/534.13

IE11 Not Detected

Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko

RockMelt not properly detected (and scored)

bouncer query: "useragent:RockMelt"

user agent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_7) AppleWebKit/534.24 (KHTML, like Gecko) RockMelt/0.9.58.484 Chrome/11.0.696.71 Safari/534.24"

Bounce with Redis

Hey.

I would like to suggest that Bouncer becomes Redis-aware. I wanted to add Bouncer to my project, but it is heavily Redis based and therefore installing Memcached would be a bit of an overhead.

Since Redis is easily usable in PHP, would it be possible to make Bouncer aware of Redis?

Webkit on iOS not detected

Query:
useragent:AppleWebKit type:unknown

User-Agent:
Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_4 like Mac OS X; fr-fr) AppleWebKit/533.17.9 (KHTML, like Gecko) Mobile/8K2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.