Suppose I have a form, and one of this form inputs I set the max length to 15:
<input type="text" name="username" maxlength="15">
Now the attacker wants to override this limit, to do that he will simply fire "Inspect element", click on the input, change the value from 15 to 200.
My question here, is there a better way to set the max allowed characters for html forms?