<?php
$userAgent = $_SERVER['HTTP_USER_AGENT'];

$bots = [
    'Googlebot', 'Bingbot', 'Slurp', 'DuckDuckBot', 'Selenium', 'Bot'
];

foreach ($bots as $bot) {
    if (strpos($userAgent, $bot) !== false) {
        echo "Bot tespit edildi!";
        exit; 
    }
}
?>
Buna benzer bot yazılımı kütüphanesi kullanılanları tespit edip yasaklayarak selenium ve benzeri botlarında önüne geçebilirsiniz.