0

I'm looking at adding a bit of security to a form to avoid spammers and bots.

I know I can add a captcha, but I really don't like these as they look clunky.

I've seen other places that have things such as What is 2 + 2? and What colour is an orange?

Is there a bundle / library / example of implementing a question-based 'captcha'?

4

1 回答 1

1

你可以这样做的其他方式:

  1. 当表单打开时,生成一些长令牌密钥
  2. 将此长令牌密钥也存储在一个表上。
  3. 提交表单后,检查令牌键(如果存在),然后从表中插入和删除该令牌键。
  4. 如果在表上找不到令牌键,则忽略数据的插入。
于 2013-09-05T14:08:45.650 回答