As the title, I have no idea what is the best solution to do it:
Design an interface to restrict any user from accessing more than ten times in 1 second