Redirect Code
Standalone antibot redirect script for your own server. Download a pre-configured ZIP with antibot detection, visitor logging, and a statistics dashboard.
Overview
The Redirect Code is a dynamically generated ZIP package that you host on your own server. It routes human visitors to your destination URL and sends detected bots to a separate URL, using the same Eximus fingerprint detection API.
- Dynamically generated ZIP with your settings pre-configured
- Runs independently on your own server or hosting — no dependency on Eximus for hosting
- Routes humans to your destination URL and bots to a separate URL
- Includes antibot fingerprint collection and API-based detection
- Includes a built-in visitor statistics dashboard
- Available for Standard, Business, and Enterprise plans (not available on Trial)
How to Download
Navigate to the Download Page
Go to Dashboard → Scripts → Download → Redirect Code.
Enter Your Original Link
Enter the destination URL for human visitors. Must be a valid URL.
Enter Your Bot Redirect URL
Enter the URL where detected bots will be sent. Must be a valid URL.
Optionally Customize the Landing Page
Toggle "Custom Landing Page" to paste your own HTML that visitors see during verification.
Set the Redirect Delay
Choose the delay in seconds before the redirect happens (default: 3 seconds).
Download
Click Download to generate and save the ZIP file. It is named campaign_TIMESTAMP.zip.
ZIP Contents
The downloaded ZIP contains 3 files:
| File | Description |
|---|---|
config.php |
Pre-configured with your license key, original link, bot redirect URL, and delay setting. |
index.php |
Main antibot script with fingerprint collection, API detection, and redirect logic. |
stats.php |
Built-in visitor statistics dashboard (same as SDK v3 stats). |
Configuration (config.php)
Unlike the SDK v3 which uses PHP constants, the Redirect Code uses PHP variables. All values are pre-filled when you download the ZIP.
| Variable | Type | Description |
|---|---|---|
$EXIMUS_LICENSE_KEY |
string | Your Eximus license key (pre-filled from your account). |
$ENABLE_LOGGING |
bool | Enable or disable local visitor logging. Default: true. |
$LOG_FILE |
string | Path to the visitor log file. Default: __DIR__ . "/visitors.json". |
$original_link |
string | Destination URL for human visitors (pre-filled from download form). |
$bot_location |
string | Redirect URL for detected bots (pre-filled from download form). |
$loading_delay |
int | Redirect delay in seconds (pre-filled from download form). Default: 3. |
<?php
// Eximus Redirect Configuration
$EXIMUS_LICENSE_KEY = "YOUR-LICENSE-KEY";
$ENABLE_LOGGING = true;
$LOG_FILE = __DIR__ . "/visitors.json";
$original_link = "https://your-destination.com";
$bot_location = "https://google.com";
$loading_delay = 3;
?>
config.php are pre-filled when you download the ZIP. No manual editing is needed unless you want to change settings later.How It Works
When a visitor arrives at your redirect page, they briefly see the landing page while the antibot system verifies them. The system collects a browser fingerprint and checks it against the Eximus detection API.
- Bots are redirected to your
$bot_locationURL - Humans are redirected to your
$original_linkURL - Query strings are automatically forwarded to the destination
- All visits are logged locally for the statistics dashboard
Landing Page
The landing page is what visitors see while their fingerprint is being collected and verified.
Default Landing
A simple centered spinner animation with "Redirecting..." text. Clean and professional.
Custom Landing
Toggle "Customize Landing" when downloading and paste your own HTML. This lets you brand the loading experience.
- Certain server-side tags are sanitized from your custom HTML for security.
- Some standard meta tags are managed automatically by the script.
Parameter Passing
Query string parameters from the incoming request are automatically forwarded to the destination URL.
// Incoming request:
yoursite.com/path/?utm_source=fb&utm_campaign=spring
// Human redirected to:
destination.com?utm_source=fb&utm_campaign=spring
URL hash fragments (e.g., #section) are also preserved and forwarded to the destination.
Differences from AntiBot SDK v3
The Redirect Code and the AntiBot SDK v3 share the same core detection API but differ in their purpose and use case.
| Feature | SDK v3 | Redirect Code |
|---|---|---|
| Purpose | Protect any PHP page in-place | Standalone redirect / cloaking campaign |
| Configuration | 8 configurable options | Pre-configured for redirect use |
| Bot handling | Configurable (403 / redirect / exit / callback) | Always redirect to bot URL |
| Human handling | Page continues normally | Redirect to original link |
| Stats dashboard | Included | Included |
| Best for | Custom PHP applications & websites | Quick campaign deployments & landing pages |
Statistics Dashboard
Access the built-in dashboard at yoursite.com/path/stats.php. It is the same self-contained PHP+HTML dashboard included in the SDK v3.
- Summary stats: total visitors, humans, bots, bot rate, unique IPs, average score
- Recent visitors table with IP, location, score, status, and user agent
- Top countries and top ISPs breakdown
- Export data and clear logs options
- Auto-refreshes to show real-time data
Installation
Upload Files
Upload all 3 files (config.php, index.php, stats.php) to your web hosting via FTP, cPanel, or any file manager.
Ensure Directory is Writable
The directory must be writable so the visitors.json log file can be created and updated.
Start Redirecting
Access yoursite.com/path/ to start redirecting visitors through antibot detection.
View Statistics
Access yoursite.com/path/stats.php to view the visitor statistics dashboard.
stats.php via .htaccess or server-level authentication to prevent unauthorized viewing of your visitor data.