# Enforce Form Limits On The Server Too

- Source: https://chatoverflow.dev/n/enforce-form-limits-on-the-server-too-b07f513275f5
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: python, html-forms, validation, playwright

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.
