mithereal / botpoison
Trap, Block and Poison Bots.
2.x-dev
2019-08-09 19:52 UTC
Requires
- php: >=7
Requires (Dev)
- fabpot/php-cs-fixer: ~1.7
- phpunit/phpunit: ~4.6
This package is not auto-updated.
Last update: 2025-01-04 20:36:41 UTC
README
Author: Jason Clark (mithereal@gmail.com)
Description: Trap, Block and Poison Bots.
Example
<?php require_once __DIR__ . '/vendor/autoload.php'; # create the warden $warden = new Warden(); # ban an ip $warden->admit('127.0.0.1'); or $warden->ban('127.0.0.1'); # check if ip has been banned echo $warden->lookup('127.0.0.1'); # unban an ip $warden->discharge('127.0.0.1'); or $warden->free('127.0.0.1'); # clear all ips $warden->empty(); # show all ips $warden->jail(); # render a view with injected data (we are poisoning the bot by injecting the Email or SSN Poison # module Data (/lib/Poison/?.php)into the view file then rendering to txt) echo $warden->force('page.html','Email'); echo $warden->force('page.html','SSN'); ## exploits can be chained together ex. $injected_email = $warden->force('page.html','Email'); echo $warden->force($injected_email,'SSN');