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

断了今生、忘了曾经 提交于 2019-12-19 09:08:11

问题


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.


回答1:


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.




回答2:


Personally, on my blog, I was getting a lot of spam from bots. After analyzing what the spam looked like, I did up some quick regex to detect things like a post full of links, or cases where the subject, comment, and name field were all filled with the same text. I display a nice user friendly message if the post gets blocked. Since I employed this technique, I went from hundreds of spam comments a week to virtually zero. I guess what I'm trying to say, is analyze what kind of spam traffic you are getting, and see if there's an easy way to cut it out, with just some simple analysis, rather than resorting to something like captcha.




回答3:


I've succesfully used hashcash before.

It requires a javascript enabled browser and delays the post by a few seconds (configurable), but has the advantage of not adding UI complexity.

While hashcash doesn't avoid spam per se, it requires the spammer to waste time computing javascript hashes, which in turns requires that the spammer has javascript enabled (which is quite rare), and that it cannot do more than few spams per minute




回答4:


You could try Akismet. It is very good at blocking spam, could be free (depending on your use) and has APIs for numerous web apps.

Your two aren't listed though, so some work would be required to get it to work with them. Is pastie.org rails based? If so, then there is a rails API for Akismet.




回答5:


from wikipedia

A CAPTCHA system is a means of automatically generating new challenges which:

* Current software is unable to solve accurately.
* Most humans can solve.
* Does not rely on the type of CAPTCHA being new to the attacker.

I my self am really bad at resolving Captchas (at least the image based ones) and to me it feels like the current implementations do not fill the "specification" above. A lot of the widely used implementations can in fact be solved with software. I'm like most humans and I can't solve these... (subjective I know)

I would probably try implement a system where users can mark stuff as spam those would me removed. Yes the spam would be visible but not for long without any input from admin himself.

Come to think of it the reputation and voting system here at SO quite effectively reduces the impact from spam as questions get closed and voted down => lover visibility




回答6:


Check out defensio.com. It uses bayesian filtering (like filters for mails). It's pretty effective. It's a free web service.

Disclaimer: Worked there in the past.




回答7:


What about something like Phil Haacks invisible captcha?



来源:https://stackoverflow.com/questions/221674/what-can-be-done-to-prevent-spam-in-forum-like-apps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!