I'm suddenly getting a dozen or so comment spams every day, in spite of the fact that I've enabled captcha. Is the captcha not strong enough, or are they using sweatshops to spam?
Is there a way to increase the strength of the captcha? Or can I set it so only registered users can post comments?
Posts: 32509
the g2.1.2 captcha was slightly flawed. please upgrade to g2.2 and ensure that captcha is enabled for guest comments.
--------------
Enter the Gallery 2 Theme Contest today!
Posts: 17
Gallery version = 2.2.1 core 1.2.0.1
PHP version = 4.4.4 apache
Webserver = Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a
Database = mysql 4.0.27-standard, lock.system=flock
Toolkits = LinkItemToolkit, NetPBM, Thumbnail, ImageMagick
Acceleration = none, none
Operating system = Linux vps.landofbeginnings.org 2.6.9-022stab078.23-smp #1 SMP Thu Oct 19 14:42:15 MSD 2006 i686
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Media Center PC 4.0; Crazy Browser 2.0.1)
I am getting the same problem, and I have upgraded to 2.2.1, captcha enabled for guest posting but still getting spammed
Posts: 32509
what's the version of your captcha module?
- you should have captcha version 1.1.4.
- comment module version 1.1.3
and in site admin -> captcha, it should be set to "high" for guest comments.
also note that human people can still post spam. so if your spam volume is less than 5 comments per day or so, it could well be that some people actually post those comments manually. that's not what captcha can protect from.
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 42
Is there an RSS feed for comments? I tend to get somewhere between 1-10 spam comments all in a bunch about once a week or so - that frequency makes me think it might be human entered. I only get legitimate comments about once a week or so as well. I'd like it if there was some way to get notified that there was a new comment so I can examine it to see if there is a spam run in progress.
Posts: 17
you should have captcha version 1.1.4. - Yes
comment module version 1.1.3 -Yes
and in site admin -> captcha, it should be set to "high" for guest comments - Yes
About twice a day I have to clear the same spam possibly from one person posting as Guest
Posts: 17
Spam has inceased
captcha version 1.1.4. - Yes
comment module version 1.1.3 -Yes
site admin -> captcha, it should be set to "high" for guest comments - Yes
Posts: 60
I'm in the same boat as Merira. I've been using Gallery 2 for at least 6 months, but it has only been in the last few weeks that spam has become an issue. Maybe captcha isn't enough these days? Maybe addition spam prevention such as the AKISMET service would be helpful, or at least some kind of comment moderation queue so that we don't have links to p0rn and other such undesirables placed on our sites?
Posts: 32509
> Maybe captcha isn't enough these days?
agreed. we're currently developing an akismet module for G2 which should help in protecting from comment spam.
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 60
Excellent! Just cleared out a dozen or so spam comments again today. It seems there are either some people with WAY too much time on their hands planting these spam comments, or there are some smart bots getting around which OCR the captcha image to get the code. To be honest I think the captcha image displayed by G2 is pretty basic, and probably quite easy to OCR and successfully get the correct code out of. Some options I've seen on forums is that you have to enter the captcha in reverse, but it wouldn't be too long before bots got around that either. Another option to comment security and perhaps even replace captcha might be KittenAuth. There is no way a bot is going to get around that reliably as it requires you to click on every image showing a particular item. I think it is a bit friendlier than captcha too. Akismet is on the way, and I think for now at least this will plug the hole. Was getting very close to disabling comments on my site all together.
Posts: 17
I've seen a massive surge in spam to my site as well which is very disappointing. Call me an old so-and-so but I detest seeing links to dodgy scams or "products" shown on my site.
My "solution" was to write some code which shows me all pages containing http links, and once I've skimmed them I just hit a button to delete the lot! This works for my site because I have a very low rate of real postings, but I imagine for legit sites this wouldn't work - unless you perhaps ban all comments by guests with url's in them.
However, again in my case deleting all comments with "link portal" in them would work a treat too!
Posts: 1153
mod_security works well for filtering comments with embedded URL addresses. However, exceptions have to be made if you intend to use the Permalinks & Link Items plugins or use the "Remote Web Site" upload method.
Apache 2.2.4 / mod_security 1.9.4
set this globally in httpd.conf
then per <VirtualHost> you want to exclude, add this to it's corresponding <Directory> container:
Posts: 7994
I'm getting a ton of "Link Portal" spam links on my site every day (about 20-50 a day). It's driving me nuts. I've gotten pretty far in adding Akismet support into the comment module, though so hopefully that'll be available as an experimental module for 2.3 within another week or two. In the meantime, I hacked modules/comment/AddComment.inc to add the following block inside the handleRequest function:
which seems to be keeping them out. Or it will until they read this thread and change the way their spam looks.
Posts: 56
I read this article with a fresh installed G2, until now I don't suffer from spam comments.
But I still look for a mail to the admin for each comment created, to be the first one reading each comment and be able to delete spam immediately.
I read about akismet and kittyauth, my favorite module for G2 would be KittyAuth, using my own pictures from my gallery, feeded with my keywords (or tags).
(just my 2 cent)
Frank
---
http://photos.franksteidl.ch
Posts: 8
I've taken your strategy one step further:
Posts: 34
We don't get many comments. It would not be a burden to have all comments held until they are approved. Something like 'moderation' on Google Groups.
Posts: 6
This is an interesting strategy. There are two things I would like to do to make this complete:
How would one go about doing that?
Posts: 7994
FYI, I've added Akismet support to the comment module in 2.3 so when you upgrade to the latest code, you can sign up for a key at www.akismet.com and plug it in on the comment Site Admin page and then have it rescan all of your comments and flag all the spam ones. Then it will keep new spam comments out. In the past week, Akismet has blocked 1000+ spam messages in my production gallery (http://menalto.com/gallery) and only let in about 30. Marking the new comments as spam is relatively quick and easy. It's nice not to be overrun by spam anymore
Posts: 236
This looks quick and effective... in which file did you do this modification?
Posts: 8
modules/comment/AddComment.inc
Posts: 78
I'm working on the comment moderation feature now... I've made some progress already, you can follow along and provide input here:
http://gallery.menalto.com/node/71948
Posts: 1
You can do this by creating a new error state and modifying the comment page to display this error. In the modules/comment/AddComment.inc you can modify the handle request to include this code:
In context, it's part of the handleRequest method:
You can then make a change to modules/comment/templates/AddComment.tpl to display the error. Search for the code:
And add the new section that will display the error directly after: