TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Strategies to Prevent Form Spam?

1 点作者 timetc将近 4 年前
Lately I am getting more and more spam in my forms. Including sign up forms, which is annoying because it messes up your funnel, pollutes your db and statistics.<p>Privacy is an important topic for me, so reCAPTCHA from Google a big no. Services like hCaptcha and Akismet seem more privacy friendly though.<p>The best option is of course something that works locally. A honeypot field and CSRF are pretty simple and straightforward strategies to use. But bots sadly get smarter and smarter. Does anyone have (js) libraries, strategies or tips that can be used to fight this problem?

1 comment

johng将近 4 年前
Sometimes a simple question and answer tailored to your site is enough to stop them. They never bother with individual sites... so once you break the bot code they never bother to fix it.<p>Something somtimes as simple as: red, green, orange and chair. How many colors are in the previous statement?