What are the best practices for making online high score lists in JavaScript based games?
<p><em>[I know there have been similar questions about preventing cheating on high score lists, but no answer didn't really help me for JavaScript based games, so please try to think about my question, before telling me about similar posts. I ask about <code>best practices</code> because the JavaScript is always visible for the user and therefore it is not possible to prevent cheating completly, I just want to make it harder.]</em></p>

<p>I'm developing a JavaScript based game that works in the browser. I want to make a high score list that contains the user name and the score of all users. To achieve that the browser sends , after the user finished the game, the user name and the score to my server (via AJAX) that handles everything for the high scores.</p>

<p>To submit fake scores to this list would be fairly easy: One could take a look at the AJAX requests and then make an own AJAX request with a faked score. To use something like a <code>token</code> that has to be send with the other data is pointless, as it will be easy to discover.</p>

<p>My only approach, that would prevent cheating, would be to send a description of every user action to the server and calculate the score there. But this is not really practicable as it would be too much for the server.</p>

<p><strong>I accepted an answer, but in case anyone has other ideas about how to make cheating harder, please create another answer!</strong></p>
