Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 402
Fabian Buch Avatar asked Dec 09 '22 22:12

Fabian Buch


1 Answers

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.

like image 134
Aaron Maenpaa Avatar answered Feb 02 '23 21:02

Aaron Maenpaa