PHP code example of flowd / phirewall-preset-bots
1. Go to this page and download the library: Download flowd/phirewall-preset-bots 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/ */
flowd / phirewall-preset-bots example snippets
use Flowd\Phirewall\Config;
use Flowd\PhirewallPresetBots\Presets;
// Block AI crawlers, rate-limit SEO crawlers.
$config = (new Config($cache))->with(
Presets::blockAiCrawlers(),
Presets::throttleSeoCrawlers(limit: 60, period: 60),
);