如何检查服务器的投票是否已被计算在内?

I'm trying to make a minecraft server voting system where when you vote for the server for example here: Minecraft servers list You will get certain points for a successful vote. The question is how to check if a player has successfully voted for server or not? Anyway to check the string of "Your vote has been successful" or something? Thank you for your answers.

On JS side, do an AJAX request when the user vote, and then wait for a callback after the server responded, then you can write "Vote successful" or other stuff.

On Server side (no matter if this is php or another language), you'll have to store information about the request, like user IP, to prevent him for multiple votes.

You could also store this information in a cookie on the client side, or in the local storage, but it can easily be cleaned by the user.

Or even, associate the vote with an email, and associate the email with the request.

I don't know anyway if there is a definitive solution to prevent multiple votes in this case, because user can create new mail account, modify its IP, go through a proxy, ... Best way is create an auth mechanism that will force each user to be auth before voting, I guess.

This post only exposes concepts anyway because your question is quite too large to answer it exactly here.