Home / Postback
Designed to enhance your experience with our voting platform. Our postback system efficiently sends crucial information to your designated listener, ensuring smooth integration with your server.
Data Transmission
The postback system will transmit the User's IP address, User ID (optional), whether the vote was counted on your listing and the Postback Password (optional). The Postback Password and Postback URL can be configured in your server's settings.
The script has a 5 second timeout. If a connection cannot be established within this timeframe, no data will be posted to your server.
Setting Up Your Postback Listener
Configure your Postback listener URL and optional Postback password in your server settings. Then point them to your endpoint below.
Vote URL Options
1. Default URL:
Replace [SERVER_ID] with your Server ID.
2. Modified URL:
This variant includes the User ID for more detailed tracking. Replace [SERVER_ID] and [UID].
Sample PHP code:
<?php
// Your postback password (set the same value in your server settings)
$_postback_password = "";
// Incoming values
$postback_password = $_POST["postback_password"] ?? "";
$vote_counted      = $_POST["vote_counted"] ?? "0";
$user_ip_addr      = $_POST["ip_addr"] ?? "";
$user_id           = $_POST["uid"] ?? ""; // Optional
$server_id         = $_POST["server_id"] ?? ""; // Server ID from postback
// Abort if password mismatch
if ($_postback_password !== "" && $_postback_password !== $postback_password) {
    exit();
}
// User ID -- Make sure to sanitize the User ID
if ($user_id) {
   // User ID is not empty.
}
// Example usage
if ($vote_counted) {
    // Mark vote as counted for $user_id (if provided)
    // Give rewards, etc.
}
// Log for debugging (remove in production)
error_log("POSTBACK: counted={$vote_counted} uid={$user_id} ip={$user_ip_addr} server={$server_id}");
?>
Please note! Perform your own checks and sanitization. Send rewards only after verifying the vote.