Prevent spammy form submissions by bots using this Honeypot technique in PHP

1 · Amit Merchant · Sept. 17, 2020, 3:23 p.m.
In modern web applications, one of the pain points everyone faces at some point is spam submissions to forms by automated bots. What happens is malicious entities or back actors submit unwanted information through online forms to phish or send abusive messages. So, there is no real human who is filling out the form. Instead, the bots will fill every field of the form with completely random data (which are eventually of no use) and submits the form. There are a few ways to fix this kind of attack...