What is postback?

Postback functionality lets you confirm that a player has voted for your server.

You have to add an additional parameter to the voting url that will be transfered to the postback script after a successfull vote.

With that parameter you can identify players and reward them for voting.

Setting up postback

Site settings

Enter a full URL to the postback script field (Postback url) in the site settings.(Account -> My Sites -> Edit)

Query variables are allowed in the url, just ip and param variables will be overridden if defined.

Voting link

Postback only works if an additional parameter is added to the voting url.

This additional parameter will be sent to the postback script as query variable.

Original voting url, [ID] represents site ID
Voting url with postback parameter, parameter = -my_test_param-

Parameter has to match with the following regex:

Letters lower and uppercase (no accents), numbers, charactes - and _, at least 1 character, but no more than 32.

Postback call

If a successful vote has been made and the postback script url is set, then a GET request will be made to that url with a couple of additional query variables.

These variables will be ip and param.

Param query variable contains the parameter value defined in the voting link.

Example request

Make sure to validate that the request came from mmohub.com:

$_SERVER['REMOTE_ADDR'] === gethostbyname('mmohub.com')

Voting IP check

You can also check if an IP has voted within 24 hours.

Make a GET request to the url shown below and replace [ID] with your server ID and the [IP] with and actual IP address to check against.


If an IP has voted withing 24 hours, then 1 is returned if not then 0.

If the server ID isn't an integer or the IP is not a valid IPv4, then the response is empty.