To prevent a form to fall victim of abusing by hackers we can use Honeypot strategy as follow:

HTML part in form with method “POST” :

<input type=”checkbox” name=”do_you_agree” value=”1″ style=”display:none !important” tabindex=”-1″ autocomplete=”off”>

Server-Side

Copy to Clipboard