Hi
I’ve seen this solution which can be done through JavaScript to disable an entire form:
<form>
<fieldset disabled>
<input/>
<input/>
<input/>
</fieldset>
</form>
But does this work against a bot, or DoS attacks? i.e. if I throttle login attempts when a user goes beyond the threshold (e.g. 5 invalid passwords attempts in 5 minutes = disable the form from JavaScript for 25 seconds).
I don’t understand how exactly DoS attacks work, but it seems that it can bypass JavaScript so disabling a form won’t do anything beneficial if the DoS script can just carry on what it’s doing.
In that case, how can I disable the form server side? Or, is my approach not the right thing to do?