Project

General

Profile

Actions

Feature #675

open

Anti-spam or captcha for issues

Feature #675: Anti-spam or captcha for issues

Added by Liang Jin almost 19 years ago. Updated about 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
Resolution:

Description

Redmine is definitely gaining big popularity! Even among spammers!

Today, I got two spam issue notes from Anonymous user (we would like to allow anonymous user to submit issue and issue notes). Anyone experiencing the same issue?

Would it make sense to add in a captcha when adding an issue? Or pass it on to an anti-spam service, like Akismet or defensio?


Files


Related issues 5 (4 open — 1 closed)

Related to Redmine - Feature #3283: Website: Install Mollom or similar spam deterrentNewActions
Related to Redmine - Feature #1354: akismet for spam filteringNewActions
Related to Redmine - Feature #5274: Add hook allowing AuthSources to supply a CAPTCHA challengeReopenedActions
Related to Redmine - Feature #2340: Self-registration needs captchaNewActions
Has duplicate Redmine - Feature #6897: request captcha to elimate spam bot ticketsClosedActions

Updated by Leandro Lucarella over 18 years ago Actions #1

Captchas will be useful too for other modules, like Wiki, Boards, etc.

A really cool mix between anti-spam service and captchas is reCAPTCHA. Every captcha you resolve, you help to scan books from The Internet Archive.

Updated by evan wheeler over 18 years ago Actions #2

We've been getting spam issues in redmine as well, and have implemented reCAPTCHA using the reCAPTCHA rails plugin. We have submitted an enhancement patch to the plugin to use the reCAPTCHA AJAX API so it will work in redmine when the tracker is changed, but it hasnt been put into the trunk yet.
I've attached our patch for the recaptcha plugin as well as patches for including it in redmine issue submission.
Just install the plugin into /vendors, apply the patches, and put your recaptcha keys in your environment.rb
Cheers

Updated by evan wheeler over 18 years ago Actions #3

evan wheeler wrote:

We've been getting spam issues in redmine as well, and have implemented reCAPTCHA using the reCAPTCHA rails plugin. We have submitted an enhancement patch to the plugin to use the reCAPTCHA AJAX API so it will work in redmine when the tracker is changed, but it hasnt been put into the trunk yet.
I've attached our patch for the recaptcha plugin as well as patches for including it in redmine issue submission.
Just install the plugin into /vendors, apply the patches, and put your recaptcha keys in your environment.rb
Cheers

you can find the recaptcha rails plugin here: http://ambethia.com/recaptcha/files/README_rdoc.html

Updated by Derek Montgomery about 18 years ago Actions #4

Any chance to have something officially implemented??
I am getting A LOT of spams those days :(

Updated by James Turnbull about 18 years ago Actions #5

Any chance of this getting into trunk? It'd be a great feature.

Updated by Muntek Singh almost 18 years ago Actions #6

+1

I'd also love to see some sort of captcha (recaptcha or xkcd style) for user registration

Updated by Jean-Baptiste Barth almost 18 years ago Actions #7

IMHO Captcha systems are very annoying for human people, and there are smarter ways to differentiate human from bots if your site is not specifically targeted by spammers.

You should consider using a "inverse/negative captcha", which is a great solution in such a case. The principle is to have a mandatory email field which do not have an explicit name, and next to it a trap email field for spambots, which is hidden via CSS. When the trap field is filled, entry is automatically considered as spam and refused.

You can see here an implementation for Mephisto blogging system.

Any opinion about that ?

Updated by Adam Knight almost 18 years ago Actions #8

This is very important for public systems. Please consider this RSN.

Updated by Andrew Kouznetsov over 17 years ago Actions #9

+1 for implementation
Here is another variant of realisation captcha in Issues

Updated by Jacob Moen over 17 years ago Actions #10

Jean-Baptiste Barth wrote:

IMHO Captcha systems are very annoying for human people, and there are smarter ways to differentiate human from bots if your site is not specifically targeted by spammers.

That's your opinion.
I happen to like reCaptcha better than I like any other dirty hack.
Your suggestion seems very easy for a spam bot to work around.

I vote for reCaptcha and Akismet. :)

Updated by Adam Knight over 17 years ago Actions #11

What's it going to take to get traction on this? I can't turn on public use on my site until this is done, the community clearly wants it, patches have been made, so what else is needed?

Updated by david austin about 17 years ago Actions #12

I also believe this is a very important issue and would like to see it put into the system/s/ David www.bible.org

Updated by Mitch Guthrie about 17 years ago Actions #13

I want to also throw in a request to get some sort of spam filtering system in Redmine. I really don't care if it's a captcha or some other spam monitoring technique but something definitely needs to done as this is a huge issue for many.

Furthermore there are more posts on redmine.org all requesting such a feature and to date I can't see that anyone from Redmine has officially responded or given a roadmap for this particular feature.

How does Redmine.org handle spam issues?

Updated by Chris Miller about 17 years ago Actions #14

Mitch Guthrie wrote:

I want to also throw in a request to get some sort of spam filtering system in Redmine. I really don't care if it's a captcha or some other spam monitoring technique but something definitely needs to done as this is a huge issue for many.

Furthermore there are more posts on redmine.org all requesting such a feature and to date I can't see that anyone from Redmine has officially responded or given a roadmap for this particular feature.

How does Redmine.org handle spam issues?

By having Wikipedia-like fascist moderators who delete any and all spam so we can pretend it's not a problem.

Updated by Eric Davis about 17 years ago Actions #15

It hasn't been an issue for me because I require registration to post to my Redmine.

To address the spam problem, I think this should be done by a plugin. That way it's an optional feature and you could pick whatever scheme works best (e.g reCaptcha, Akismet, simple math, reverse captcha). I'm pretty sure there is everything a plugin would need to catch spam on issue submission. Forums might need a hook to two.

Updated by G N about 17 years ago Actions #16

+1 for implementation as a plugin.

At least, there must be a mechanism to prevent automatic user registrations. It is very unfortunate that Redmine lacks such a mechanism by default.

I have never programmed in Ruby, otherwise I would give this a try.

Updated by Christoph Kappel over 16 years ago Actions #17

Hard to believe that there still is nothing to prevent spam and Redmine seems to get more and more attention. All spam accounts on my instance seems to have firstname == lastname which is easy to sort out: I just added another validation to the user model that prevents this.

# Spam validates_each :firstname do |record, attr, value| if(record.read_attribute(:lastname) == value) record.errors.add(attr, "and Lastname must be unique") end end

A bit hacky but it does the job and is not so difficult to apply to new changesets/versions. Hopefully there will be a full blown spam protection in the future.

Updated by Troex Nevelin over 16 years ago Actions #18

Christoph Kappel wrote:

A bit hacky but it does the job and is not so difficult to apply to new changesets/versions. Hopefully there will be a full blown spam protection in the future.

Thanks! I hit the same problem on mine, your hack save's my time and nerves!

Updated by Sebastian Skuse over 16 years ago Actions #19

Are there any updates with this?

Recently we've been getting 'blogspam' (i.e. a load of links to undesirable sites) on our Redmine issues page, - about 5 - 10 a week. We like to keep issue creation open as we work on open source software, and it lowers the barriers for participation.

I did a search for a plugin but no such luck. Would it be possible to include this as an option or a plugin that can just be installed without hacking around with the source?

Thanks. Great software by the way !

Updated by Jean-Claude Wippler about 16 years ago Actions #20

This feature was proposed 2.5 years ago.

I'm looking for an issue tracker / wiki / forum system which lets people register without human interaction (because that's immediate in any time zone), yet has some measures in place to prevent spamming. Captcha, akismet, counting URLs in the submitted text, anything...

Captchas are not excessively annoying since each person only needs to go through them once, during registration. The current system is potentially much more annoying once spam gets in, since it affects everyone.

Redmine suits my purposes perfectly on all counts ... except for this one. For an example for how little it takes: bbPress has a simple "1+2" type signup question and Akismet filtering (both as plugins), and that's plenty to keep all the junk out. One could always implement more advanced mechanisms later, especially if it can all be done via plugins.

My Ruby fu level is way too low to create these plugins alas, but please consider bumping the priority on this issue. From the responses above it seems that a lot more people would be very grateful.

Updated by Sebastian Skuse about 16 years ago Actions #21

Are any Redmine developers able to comment on this? It'd be lovely to know if this is possible or planned.

I'd contribute myself, if I knew anything about Ruby, but unfortunately I do not.

Having things like "[Project - Bug #485] (New) indian generic viagra" emailed to clients doesn't look very professional!

Updated by Shane StClair about 16 years ago Actions #22

+1, seems pretty essential

Updated by Shane StClair about 16 years ago Actions #23

I took a first stab at a Redmine plugin that adds a recaptcha to the user self registration page.

http://github.com/srstclair/redmine_recaptcha

A tester would be great, as it's my first ruby/rails/redmine/git endeavor and I'm sure I left something out.

Also, the plugin currently entirely overrides the account_controller's register method. There may be a better way to do this, but it seemed like the recaptcha verification needed to be inserted in the middle of the method logic...

Updated by Shane StClair about 16 years ago Actions #24

Note: the plugin currently only handles user self registration and not anonymous issues. It shouldn't be too hard to apply the same method to the issue view and controller, though.

Updated by Vianney Lecroart about 16 years ago Actions #25

Thank you Shane StClair for your nice plugin with recaptcha. I really hope one day this thing will be in the main redmine repo (with, why not, an option).

Updated by G N about 16 years ago Actions #26

Thanks for this plugin. Perhaps it should also protect the "Lost Password" form as this can be abused too.

Updated by Derek Montgomery almost 16 years ago Actions #27

I could not make it work with current trunk, anybody had more success?

Updated by david austin almost 16 years ago Actions #28

I also support adding a capthca as we get a lot of anonymous spam ticket posts

Updated by Jean-Claude Wippler almost 16 years ago Actions #29

Nearly three years onwards, with no resolution of this "New" issue.

Could someone with the appropriate fu-level please flag this issue as rejected, abandoned, shelved, or somethin' ?

Updated by Sebastian Skuse almost 16 years ago Actions #30

+1. This is the only issue I have with this software. We need it to be open, but get a fair bit of spam through it.

Jean-Claude Wippler wrote:

Nearly three years onwards, with no resolution of this "New" issue.

Could someone with the appropriate fu-level please flag this issue as rejected, abandoned, shelved, or somethin' ?

Updated by Jean-Claude Wippler almost 16 years ago Actions #31

+1. This is the only issue I have with this software. We need it to be open, but get a fair bit of spam through it.

I wonder how much spam this forum itself gets, see #6991 for an example which hasn't been cleaned up for a month.

It would seem to me that keeping spam out instead of having to clean it up afterwards is less work, in the long run. Not to mention the time to deal with discussions like these.

Having said that, my sympathies go to Jean-Philippe - apart from one other contributor working on SCM systems, he appears to be the only one working on Redmine. I hadn't realized until now that it's essentially a one-man show.

Updated by Christophe Bourcier almost 16 years ago Actions #32

The plugin redmine_recaptcha works great on redmine 1.1.0. http://github.com/srstclair/redmine_recaptcha

I just had to replace in the file vendor/plugins/recaptcha/lib/recaptcha/client_helper.rb, line 39:

return html.html_safe
by
return html

But some captchas are tough to solve.

Updated by Shane StClair almost 16 years ago Actions #33

Christophe Bourcier wrote:

I just had to replace in the file vendor/plugins/recaptcha/lib/recaptcha/client_helper.rb, line 39:

return html.html_safe
by
return html

Thanks Christophe! I haven't been able to test this fix, but I updated the plugin with this fix. Hopefully that resolves the issues that people have been having with newer versions.

https://github.com/srstclair/redmine_recaptcha

Updated by Shane StClair almost 16 years ago Actions #34

Update: confirmed compatibility with current trunk (1.1.1.devel.4802) and moved reCAPTCHA key settings to Administration/Plugins/Configure.

http://www.redmine.org/plugins/redmine_recaptcha

Updated by Ted P over 15 years ago Actions #35

Christophe's fix needs to be done in ambethia's recaptcha (helper) plugin.

Someone already made the pull request: https://github.com/ambethia/recaptcha/pull/31

Updated by Ashraf Amayreh over 14 years ago Actions #36

Guys. I'm getting no less than 3 spam issues/replies to issues per hour! around 72 per day. I don't know ror, but I'm willing to patch, follow instructions, and break anything to get a captcha in there if I'm given the steps! HELP!

Updated by Shane StClair over 14 years ago Actions #37

You might try this fork of my captcha plugin:

https://github.com/egroeper/redmine_recaptcha

From the commit comments it looks like he added captchas to anonymous issues, but I haven't experimented with it. If it works for you, please report back and I'll try to incorporate his changes.

Updated by Ashraf Amayreh over 14 years ago Actions #38

Afraid not. It broke my redmine issue page (titles aren't appearing). Wonder how to uninstall it? Adding or replying to issues didn't introduce a captcha either :( Now I'm getting around 12 spams/hour. This is driving me nuts :(

Updated by Shane StClair over 14 years ago Actions #39

Try ruby script/plugin remove redmine_recaptcha from the Redmine directory.

Updated by Tom Vogt over 14 years ago Actions #40

Please add my voice to that. I was very happy with redmine until I realized no less than 3 spam accounts registered within the past 24 hours, and aside from setting signup to manual activation couldn't find a feature to stop them.

Seriously, any tool with anonymous contributions (issues, comments, even user pages) that doesn't contain anti-spam filters should be considered fundamentally broken.

Updated by Jean-Claude Wippler about 14 years ago Actions #41

Please, please, please add (re)captcha support to Redmine as built-in. It drastically reduces automated spammer signup.

And while I'm at it: please add Akismet support as built-in as well. It does marvels at filtering nonense entries.

Updated by Ismael Morales Alcaide about 14 years ago Actions #42

Anything new about this issue?

Updated by Toshi MARUYAMA over 13 years ago Actions #43

  • Related to Feature #2340: Self-registration needs captcha added

Updated by kittybe11 kittybe11 almost 10 years ago Actions #44

Post moderated by Mischa The Evil, 02-02-2017; awaiting deletion.

Updated by Robert Pollak almost 10 years ago Actions #45

I guess the above spam comment means "+1" :)

Updated by yac yac over 9 years ago Actions #46

https://github.com/yaccz/redmine-spam-users might be useful once you have too much spam accounts to deal with manually.

Updated by Anonymous about 8 years ago Actions #47

+1

Actions

Also available in: PDF Atom