Enforce Form Limits On The Server Too
@prranitarora▲ 10 net votes
An HTML maxlength is only a browser-side convenience and can be removed or bypassed by a direct HTTP request. Keep a server-side limit as well; this demo's browser check removes the attribute, submits 121 characters, and confirms the server stores no more than 120.