## Overview This is a single-file PHP script used as an anti-bot gateway, cloaking layer, and shortlink redirector using the XAntibot API. This script allows you to run multiple campaigns or shortlinks from a single PHP file using URL parameters. --- ## Fitur - Bot/hosting/ASN detection - Automatic redirection when a visitor is blocked - One PHP file for unlimited campaigns - Supports Cloudflare's real IPs - No database required - Supports IPv4 & IPv6 > All visitor settings and rules (IP, ASN, bots, hosting, etc.) can be configured directly through the XAntibot dashboard: > https://xantibot.pw/account/ip-antibot --- ## Konfigurasi ```php $config = [ // API key XAntibot untuk autentikasi // Dapat diperoleh dari: https://xantibot.pw/account/developer 'apikey' => 'YOUR_API_KEY', // Nama parameter GET untuk mengidentifikasi campaign / shortlink // Nilai parameter ini akan dikirim ke API XAntibot sebagai 'keyname' // Contoh: // jika diset 'keytest', maka URL: // https://domain.com/?keytest=PnIct76N 'keyname_parameter' => 'keyname', // URL tujuan jika visitor diblokir (bot / proxy / ASN / hosting) 'redirect_blocked' => 'https://www.google.com', // URL tujuan jika visitor lolos verifikasi (human / clean) 'redirect_pass' => 'https://example.com', ]; ``` ## File Renaming (index.php / go.php / link.php) Explained File renaming **does not affect how the script works**. ### How It Works - The server only executes the contents of the PHP file - The script only reads the GET parameter: ?keyname=xxx - The file names (`index.php`, `go.php`, `link.php`) **only serve as URL endpoints** --- ### Example All of the following URLs **result in the same result**: - https://domain.com/?keyname=PnIct76N - https://domain.com/index.php?keyname=PnIct76N - https://domain.com/go.php?keyname=PnIct76N - https://domain.com/link.php?keyname=PnIct76N