I want to implement rate limiting on my simple php form.Whenever user submits more than 10 inputs in one 1s user should get blocked for certain seconds I've no idea how to implement it.If possible please tell me the way to implement with token bucket algo.
Here is my form.
<form action="<?php echo $_SERVER['$PHP_SELF'];?>" method="POST" >
<input placeholder="Input" type="text" name="name">
<button type="submit"">Click</button>
</form>