Every form on a website is a door. Laravel gives you good locks; use all of them.
- Validate everything on the server, even if the browser already checks it.
- Keep CSRF protection on so other sites cannot submit forms as your users.
- Rate-limit logins, sign-ups and contact forms to stop scripts hammering them.
- Add a captcha where bots are a problem. Our products include a built-in captcha and Google reCAPTCHA.
- Escape output so text users typed cannot become code on your pages.
0 comments