PHP
- 23 Mar 2023
- Print
- DarkLight
PHP
- Updated on 23 Mar 2023
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
Introduction
HUMAN Bot Defender is designed for high scalability and seamless integration with 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
Dependencies
Installation
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 */
$px->pxVerify();
Was this article helpful?