mithereal / botpoison
Trap, Block and Poison Bots.
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 3
Open Issues: 1
pkg:composer/mithereal/botpoison
Requires
- php: >=7
Requires (Dev)
- fabpot/php-cs-fixer: ~1.7
- phpunit/phpunit: ~4.6
This package is not auto-updated.
Last update: 2025-10-12 00:57:32 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');