What can be done to prevent spam in forum-like apps?

后端 未结 7 564
日久生厌
日久生厌 2021-01-13 15:51

Are there ways except CAPTCHAs for web apps like pastie.org or p.ramaze.net? CAPTCHAs take too long for a small paste for my taste.

7条回答
  •  误落风尘
    2021-01-13 16:27

    You could try Honeypot CAPTCHAs. Essentially, you hide some form fields using CSS. Your users will never fill out the fields because they won't see them, but spam bots who don't support CSS will fill them out. On the server side you just ignore comments/pastes/etc. that have that field filled out.

    In addition to honeypots, you can use timestamps and one-time-tokens to stop replay attacks. Here's a discussion of combining the two techniques.

提交回复
热议问题