PHP
A single PHP file that can help you integrate your web application with Killbot
This PHP library can detect and block fake IPs that connect to your Web applications, HTML5 websites, and APIs from Hosting, Proxy, or VPN to prevent bots, fake accounts, fraudsters, suspicious transactions, malicious users and more.

Download

You can download the library via GitHub.
1
git clone https://github.com/killbotpw/Killbot-PHP.git
Copied!

Usage Example

This is example how to use the library. It's will help you to integrate with any PHP application. You can insert this code into your blocker.php, config.php, or maybe header.php as example.
1
<?php
2
3
require_once('class.killbot.php');
4
5
$Killbot = new Killbot([
6
'active' => true, // If 'true' will set blocker protection active, and 'false' will deactive protection
7
'apikey' => 'YOUR_APIKEY', // Your API Key from https://killbot.org/developer
8
'bot_redirect' => 'https://google.com' // Bot will be redirect to this URL
9
]);
10
$Killbot->run();
11
12
// Your code here
13
echo 'Not blocked ...';
Copied!
Copy link