PHP code example of abigah / bot-cop

1. Go to this page and download the library: Download abigah/bot-cop library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

abigah / bot-cop example snippets


BOT_COP_ENABLED_SERVICES=logging,cloudflare,forge

BOT_COP_CLOUDFLARE_API_TOKEN=

BOT_COP_CLOUDFLARE_ACCOUNT_ID=waasofu9qgfqtc0h97gl5o2amt1tn0ts
BOT_COP_CLOUDFLARE_LIST_ID=bxwtz2gmte7115m3vamy8yq7ly2m4i1i

BOT_COP_FORGE_API_TOKEN=THISSTRINGGOESONANDONANDONANDONONANDONANDONANDONONANDONANDONANDONONANDONANDONANDONONANDONANDONANDONONANDONANDONANDONONANDONANDONANDONONANDONANDONANDON

BOT_COP_FORGE_SERVER_ID=0000000

BOT_COP_RATE_LIMIT_TOGGLE=true or false (defaults to true)
BOT_COP_RATE_LIMIT_HITS_PER_MINUTE=60 (defaults to 20)
BOT_COP_RATE_LIMIT_EXTENDED_ALLOWED_PATHS='heartbeat,alive,assets' (if you're using glide, you'll want to 

BOT_COP_CLOUDFLARE_RULE_NAME=YouCanMakeThisSiteSpecific
BOT_COP_FORGE_RULE_NAME=YouCanMakeThisSiteSpecific