title: Preventing cheating for on-line arcade high score board
body: <p>I'm going to be developing an online arcade for HTML5/Javascript games written in a to-be-released IDE.</p>
  
  <p>The game will use Ajax requests to the server to record scores when people play these games.</p>
  
  <p>I theoretically have complete control over the design of this, including the mechanics of the code that logs the high scores, game code, everything.</p>
  
  <p>I know it's never impossible to hack client side games such as this or spoof high scores, but I want to make it difficult enough so that anyone competent enough wont be bothered enough to do it (wishful thinking).</p>
  
  <p>I've read:</p>
  
  <p><a href="https://stackoverflow.com/questions/837935/how-can-you-prevent-bogus-high-scores-from-appearing-on-a-global-high-score-list">How can you prevent bogus high scores from appearing on a global high score list?</a></p>
  
  <p>Which is a <em>slightly</em> different question as this is HTML/JS specific.</p>
  
  <p>My initial idea is that the ajax request checks the source of the request is from the correct location, which is a simple and effective block for most hacking attempts.  </p>