The Postback System allows your server to automatically reward players after they vote on SilkroadTopServers.com.
We notify your website using a secure server-to-server cURL request.
Add this URL in your server settings:
https://yourserver.com/postback/silkroadtopservers?postback={USER_ID}
Also supported (for servers without SSL):
http://yourserver.com/postback/silkroadtopservers?postback={USER_ID}
<?php
$jid = intval($_GET['postback'] ?? 0);
if (!$jid) {
http_response_code(400);
exit("Missing JID");
}
$reward = 1; // silk/coins/points
// give_reward($jid, $reward);
file_put_contents(__DIR__."/postback_log.txt",
date("Y-m-d H:i:s")." → JID $jid rewarded $reward\n",
FILE_APPEND
);
echo "OK";
?>
This is the EXACT same method our vote system uses. No browser restrictions. No CORS.
Contact us anytime via Discord or the contact form.