I'm using a jQuery to submit the data from form to my controller file.
It is adding a favourite piece to the database, but, how to prevent user from sending the data trought ajax script too frequent?
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?