PerimeterX Bot Defender is designed for high scalability and seamless integration to PHP. Detection and blocking of all attack types can start almost immediately. Risk scoring and blocking of bad bots is automatic and does not require any dedicated employees to monitor. There is no impact on performance, and there will be a reduction in requests and loading of system with the elimination of bad bot requests.

Getting Started



You can install using Composer:

$ composer require perimeterx/php-sdk

Or by downloading the sources for this repository, and running composer install.

Basic Usage Example

use Perimeterx\Perimeterx;

$perimeterxConfig = [
    'app_id' => 'APP_ID',
    'cookie_key' => 'COOKIE_SECRET',
    'auth_token' => 'AUTH_TOKEN',
    'blocking_score' => 60,
    'module_mode' => Perimeterx::$ACTIVE_MODE

/* Obtain PerimeterX SDK instance */
$px = Perimeterx::Instance($perimeterxConfig);

/* run verify at the beginning of a page request */

Did this page help you?