Thank you for purchasing SmartLink Rotator. This script allows you to distribute traffic based on country, device, and weight using either a flat-file database (JSON) or MySQL.
/data and /core folders/data/ folder/core/ folderwww.yourdomain.com/install//install/ folder from your
server.
The script automatically detects countries using server headers (Cloudflare, etc.). If your server does not provide these headers, the script includes a smart API fallback.
To target a specific country in the admin panel, use 2-letter ISO codes (e.g.,
US, GB, CA, PK, IN).
You can set a weight for each link (1-100). A link with weight 10 will be shown 10x more often than a link with weight 1.
Type mobile, tablet, or desktop in the device field to restrict
traffic to specific devices.
This means your server environment is not passing Geo-Headers. The script will attempt to use a fallback API. Ensure your server allows outgoing connections (cURL/file_get_contents).
This is usually a permission error. Ensure the /data/ folder has 777 permissions so the script
can write logs.