Mar 12, 2026

A honey pot is a means to prevent bots from submitting forms. A seemingly valid input field is hidden by CSS. Bots will read the code, and put content into the field - humans will not. Validation checks for content in the field. If there is content, then a bot is using the form.

<input id="honey" name="company_name" placeholder="Company name" type="text" />
#honey {
  display: none;
}
Back to Notes