by bo1024 · 6y ago · 0 comments
<form>
<div style="display:none">
If you are human, please ignore this field:
<input type="text" name="Name" value="My Name">
</div>
Name:
<input type="text" name="actualfield">
</form>
Bots can't resist. Accessibility is fine, I think.(Edit: suggested earlier elsewhere in the thread by tyingq: https://news.ycombinator.com/item?id=23090550 )
One thing that works still is using Javascript to create a hidden field and make that field mandatory. Run of the mill bots don't run Javascript yet. However this will exclude people who have disabled Javascript in their browsers.
> <div style="display:none">
No, don't do this. Just use: <form>
If you are human, please leave this blank:
<input type="text" name="Name" value="">
Name:
<input type="text" name="actualfield">
</form>Does the above honeypot work well with bots using headless browsers? Or is actually rendering the page not common enough for bots still?