title: How to prevent too frequent request in Ajax
body: <p>I'm using a jQuery to submit the data from form to my controller file.</p>
  
  <p>It is adding a favourite piece to the database, but, how to prevent user from sending the data trought ajax script too frequent?</p>
  
  <p>I mean, I can click on the submit button in my form thousand amount of times - how to prevent that? So it will be for example, 1 request per 10 seconds?</p>