I removed nearly a thousand spam comments in the last couple of days. As it is likely that the spam will continue, a more permanent solution is needed. One way would be to disable anonymous comments. This is something I would prefer not to do as most of the anonymous comments are good and this is the last feature open for non registered users.
Sadly, blocking the spammers by IP is not an option as they vary wildly. Most likely this is the work of a botnet.
Any ideas?


Comments

What about having an official anonymous account, that people can use to login with (I guess like a bugmenot account), but still be known as anonymous? That way a bot can't login with it, and you can disable the current anonymous users.
Re: Registered Anonymous? posted by anonymous on Oct 13 2006 11:30 AM
Anything that can be easily scripted will be abused by spammers. I've seen spammers create accounts on a blog to spam from later. A combination of measures (IP blacklisting, content filtering, captchas, etc.) is likely to work best.
Re: Registered Anonymous? posted by fireside on Oct 15 2006 7:50 AM
How about no links for anonymous users?
To add anonimous comments, add that thing, captcha(?), where a user must type a number from an image every single time it wants to post a comment.

Won't stop spammers but they won't post tens of spam comments like this. It would be too much work.
Re: Captcha (?) posted by Draconishinobi on Oct 13 2006 8:07 AM
Yeah, seems I posted the same thing at just about the same time ... think it's called image verification ... see above post.
Re: Captcha (?) posted by kaol on Oct 13 2006 8:08 AM
How about asking for captcha only for those messages that had links in them? That would match almost all spam messages but relatively few user comments. Or just those that had the string "[url" in them... That alone would catch many spam messages.

IMHO it wouldn't be too onerous to make a preview step mandatory for all messages, either.

Re: Captcha (?) posted by MatzeBraun on Oct 13 2006 8:25 AM
or simply restrict URLs to registered users and allow all other posts
Re: Captcha (?) posted by James Gregory on Oct 13 2006 8:41 AM
that is quite a good idea, isn't this how some wikis work?
Re: Captcha (?) posted by anonymous on Oct 13 2006 8:25 AM
ehm, we can have non-graphical users who wont read the image...
I will prefer, only for anonymous posters, that it(the program user here) ask the user for something like 'How many "m" are in "mamamia!"?'

or,
force them to preview their comment before posting.(eg when displaying the preview page, add a confirmation in his session)
Re: Captcha (?) posted by anonymous on Oct 13 2006 10:10 AM
I agree with the accessibility concerns about CAPTCHAs. Text browser users, visually-impaired users, blind users, and so forth, would be strongly discriminated against...
Maybe a mandatory preview and confirmation step could be better.
Or even the idea to setup an "anon" account with a publicly known password...

JM2C...

An unregistered user, who already has *too many* passwords to keep in mind!! ;-)

P.S.: Mmmmh, the mandatory preview step seems already implemented, or am I wrong?
Re: Captcha (?) posted by anonymous on Oct 13 2006 4:42 PM
You don't need a visual captcha! These spam software thingies are just spamming everywhere. They ain't going to make sure they can spam on one specific site.

So just a simple question like "What is the penguin?" would do just fine and make it accessible to all. Off course the answer would be happy.

I know that theoretically its easy to hack, but who is gonna fix the spam-software for one particular site?

Re: Captcha (?) posted by SpoonMeiser on Oct 15 2006 4:39 AM
When clicking through to post a comment, you have to preview, but I don't think there are any safe guards in there to stop you just posting straight away - it's just that the post button is not displayed if you haven't already posted to the script.
Use image verification to stop bots. You know those images that contain numbers and letter that are only human readable ? They are images and they're very good at stopping bots. Also put a time limit before another post can be made by a certain anonymous user ... for example max # posts = 1 every 15-30 sec.so they don't keep posting them every second.

Tutorials on image verification:
phpNoise
phpclasses
Anything that makes the forum different from the normal phpbb-one is usable. Maybe try renaming the input-fields, or even do this dynamically. I've had problems with hundreds of bots actually registering to a forum despite an active captcha. I modified the captcha's display, so that it's slightly different from the standard phpbb-one and it's quiet now :)
Hopefully this post won't do anything about this ;-)
i would say the picture with numbers and such stuff in it would be the best sollution
I can provide several working antispam methods. Each one of them are working in it self, but the combination of them raises the strength.

1) Captcha - the image containing rendered text information in it. This is the most known and most effective protection system, and as I see everyone advised it.

2) JavaScript - make a field named 'key' in yours form, and the value named 'key_pass' calculated by a tricky JavaScript. Later, in forum code do the check.

3) Referer - always check the referer at the post stage - it must follow to the article page; many of spammers not transferring referers at the post stage.

4) Article visit check - do the check, that user (for ex. by IP) have visited the article page, at least 24 hours ago; most of spammers economyses the traffic, and visit the page only once, at the recognition stage.

5) Dynamic form - add one dynamic value to the form, which is changing each 12 hours, and check on receiving that the key is new, or at least it is previous.

PS: For any questions about forum spam protection contact me at email - rogebaDOGmailDOTru
Re: Several working antispam methods posted by SpoonMeiser on Oct 13 2006 11:31 AM

JavaScript!? No! Badboy! Dirty boy! In your bed!

But seriously, a large number of people don't like javascript, and therefore turn it off. I's incredibly annoying coming across sites that don't work unless it's enabled. Then you also need to consider accessability. What about people who view the site not using the usual web browsers? Either mobile phone, screen readers for the blind or partially sighted etc.?

Any solution that relies on the client being able to execute JavaScript is a bad solution.

Also, keeping a record of what IP addresses have visited which articles for the last 12 hours would require storing a huge amount of data for a popular site. I don't know exactly how popular the Gametome is, but this solution will become less viable as the site gains popularity.

I also don't think that you can rely on browsers to report the correct referer, and that checking this might lead to a number of false positives.

Captcha and dynamic elements are both workable solutions, in my opinion, though.

Re: Several working antispam methods posted by anonymous on Oct 13 2006 1:21 PM
Well, a lot of people dislike CSS. And HTML... no ?
Re: Several working antispam methods posted by nath on Oct 13 2006 11:09 PM
Regarding the question about popularity: We have got about 15k unique visitors each day.
Re: Several working antispam methods posted by crossmr on Oct 13 2006 5:32 PM
4) Article visit check - do the check, that user (for ex. by IP) have visited the article page, at least 24 hours ago; most of spammers economyses the traffic, and visit the page only once, at the recognition stage.
Not good for anyone coming from AOL (I know unlikely but still) they change IPs with page loads sometimes.
Re: Several working antispam methods posted by anonymous on Oct 14 2006 2:40 AM
checking the referrer would lock out people using some anonymizing proxy, e.g. privoxy which delete the referrer
I dont know how many comments are posted a day, but what about a simple manual checking before a post could be granted?

Simply do a spam-check like mail-spam-check to get some support on manuel checking and the rest could be done by just throwing an eye into the comment and accept it by an admin (or deny if it is still spam).

Alternately I would prefer an image-check too. Before posting a comment the user has to be confirm the input with a random generated image with some letters or numbers. They are not so hard to write down, fortunally there are some good ressource and example php-classes aviable to get this work.
Thank you for your ideas so far, keep them coming.

Please note, that the current problem is only about the comments to games and news (like the comments here), not about the forum (there isn't that much spam anymore but ideas usable for the forum are welcome as well).

Also a lot of comments so far have been from anonymous users - that is exactly what I don't want to lose. But could you give me an insight why you're staying anonymous?

Re: 6910 posted by anonymous on Oct 13 2006 9:27 AM
Laziness :) Just being able to comment immediately without worrying about cookies or passwords or user names is very nice, especially on a niche site like this where each user posts rarely and threads aren't very deep.
I have seen a captcha called "kitten captcha" that asks users to identify the pictures that contain kittens. Funny stuff. I like the anon account idea too.

Linux dudes are usually a clever bunch, I'm sure you will find somthing to your liking.

Re: Anons who aren't bots can tell posted by vegard1992 on Oct 13 2006 10:54 PM
I Agree :D
Make picture verification like on slashdot.
Make all input fields dynamic.
Re: Easy one posted by SpoonMeiser on Oct 13 2006 11:46 AM

How easy is it to implement though?

I'm assuming that you mean make the names of the input fields dynamic?

This would mean, say, attaching a unique number to the names of the input fields.

So there would be two (that I can think of off the top of my head) ways to achieve this:

  1. Attach a UID to all the input fields, and a seperate value to, say, the submit button. Write this pair to a database when the page is generated, and check it when dealing with POST data (and remove them from the DB).
  2. Attach a value to the input fields that is an obfuscated, or encrypted form of some dynamic value.

With the first option, you need to regularly check the database for old values and remove them (people who click the comment button, but then don't comment).

With the second option, you need to make sure that you can still get the dynamic value when dealing with the POST data, which limits how dynamic it can be. I guess you could use IP address, or the date (not the time).

I guess the first option isn't any more difficult then implementing captcha. It'd be far easier to defeat then captcha, but I doubt any spammers would go the the effort to do so.

Re: Easy one posted by bufalo_1973 on Oct 13 2006 2:36 PM
Doing a session UID would decrease the stress of the server. This way the UIDs would last only some minutes (20? 30?) and then they'll be deleted. So putting a time field would be enough to delete "old" UIDs.
Re: Easy one posted by SpoonMeiser on Oct 14 2006 12:00 AM

So you're suggesting tracking the sessions of visitors who aren't logged in?

This would mean either using cookies, and therefore requiring the visitor to have cookies enabled to be able to comment, or putting the session ID in the URL somewhere, which (depending upon how it's done) can be a pain if you need to make sure it's included in every link on the site.

It's doable, but I don't think it's an ideal solution, and I think there's a lot more to it then the original poster anticipated.

I like the idea of image verification for non-registered users. If it's too onerous or not possible, the user can simply log in. Just make sure to include a note that logging in gets around the image verification step for sensory impaired readers.

Obviously I like being able to post the occasional Anon message and not having to log in :).

-- Inhibit
captcha is the way to go you can find many implementations of this in many "web" languajes (php,perl,rubt,python), even on bash script using imagemagick is easily done.

captcha.... no logins/pass, emails verifications, etc

I second the vote for a captcha, ideally kitten-captcha. It's easier for visually impaired people. Hell, even i enter every 3rd or 4th of those number/letter captchas wrong (and my eyes are good) :/
And with the kitten-captcha one doesn't have to type some shit into a box, just click the right image and you're set.

Don't disable anonymous posts, most people that aren't registered here won't post than. I don't do it too on other sites - it's too much of a hassle to register, check your mail, activate account, login, post,.....you know it.


Thanks for this great site btw, it's the only gaming site i visit almost daily....well, it's the only gaming site i visit at all ;)
Re: 6910 posted by bart9h on Oct 14 2006 3:31 AM
it may be obvious, but remember to include it only for non-registered users..
Re: 6910 posted by anonymous on Oct 14 2006 1:39 PM
The reason you miss those captchas are because some idiot forgot to check the fonts being rendered to the graphic. 1 looks like l, O and 0 are the same, etc.

Either make them distinguishable or make them indistinguishable to the code (as it is to the eyes)

For Drupal there is a Plugin called Bad Behaviour. It is a SPAM Filter for Comment SPAM.
The Plugin Analyses the HTTP Referrers. More Info:
http://drupal.org/node/30501 http://www.homelandstupidity.us/software/bad-behavior/

The Code is under the GPL. This could add some licensing issues to happypenguin.org. Is the CMS Code also under the GPL?

I also like the Captcha Idea, the only Drawback is that it lacks acessibility. If you want happypenguin.org accessable for seeing impaired people, you should also provide a second method for user authentication.

I don't see why users can't contribute to this site and register - I did and it wasn't that hard.
Re: Disable anonymous posted by anonymous on Oct 14 2006 12:29 AM
easy answer

i dont mind registering, but i do mind remembering a thousand logins, so i love to use anonymous posting

why not use those image tags, where you have to identify a string? those are not perfect, but a simple solution which should stop most of the spam

Re: Disable anonymous posted by xeniac on Oct 14 2006 1:31 PM
Remembering thoundes of Passwords is bad, i use the same Password for a dozen of Sites and Forums. As long as no money can be involved with the Site i can live with this Risk.

For this issue happypenguin.org could use a single-signon Network (drupal has this for example), but the integration with phpBB could be difficult.

I don't know if anyone mentioned this yet, but Akismet has a great spam service and an easy to use API. http://akismet.com/
An "are you human?" radio button question. there would be 5 no's and one yes in the middle. If that doesn't work, then get the yes answer to move to a random spot on the list
Re: 6910 posted by SpoonMeiser on Oct 14 2006 12:04 AM
The position of the correct answer on the list is irrelevant, it's the values of the radio buttons that matter. Which brings us back to the problem of storing the values for good answers somewhere, and making sure that a good answer values are only valid once.

Some wikis have enjoyed success on some content filtering. One algorithm I heard about simply looked to see if the first "contribution" from an anonymous user contained a URL, and little to no other content. If so, the IP address was blocked. At least for some wikis this basically elimiated all spam.

I haven't seen the content you're getting, but it probably all fits a narrow formula. If you want to continue to allow acessability and anonymous, maybe such an approach will work. Sadly, it is likely to be fragile also, as spammers change their payloads.

pick out the six best ideas and put up a vote for which one users would prefer.. then use it :D
Re: a vote.. posted by nath on Oct 13 2006 11:06 PM
I also have to see what is possible with our existing system...
Posting anonymous solution Start comment with a keyword to filter bad anonymous away. (Lets say: penguiN)

If it is possible to filter like this?

Re: What about this.... posted by xeniac on Oct 14 2006 1:21 PM
Don't you think that adding PenguiN to all my Spam Messages is very Easy?
How about using a trainable filter like in Email clients? I use Evolution, and filter spam by clicking "mark as Junk" on spam mails... They are then moved to the junk folder, and it "learns" how to filter junk itself. After I marked about 100 mails or so this worked pretty good, now I rarely see any spam... Mails can be marked as "not spam" also, when they are in the Junk folder, and it learns this too.

I think it uses spamassin (spamd?) in the background for this.

Re: Like E-Mail? posted by Iggi on Oct 15 2006 2:35 AM
I absolutely like that idea. If it's not too complicated it would be worth setting such a system up.
Get some php which produces an image with numbers and characters an draws lines over it so that ocr won't work and prompt it to the user to verify that he's not a spam bot. He'll have to enter those numbers and characters. and that's it.

Many sites do it that way. Slashdot or Digg, for example.

(Good decision to keep too harsh controlfreakisms away from anonymous/new users, BTW)

Ok so you won't use JavaScript or cookies. Then you'll have to use PHP's session handling functions and place the session id in the URL.

You could do this: embed a small Flash object next to the input box which shows a random image that can be described in English in one word, like cat, dog, wheel, car, hat etc. Also the Flash object will play the word in English if you have concerns about accessibility. The user then types this word into a text box OR they can prefix it to the body of their message. The Flash objects would have random names and you'd use the session id in the URL to match the answer.

Maybe creating the Flash objects could be a community project. You'd need an older Flash like MX, free images and a microphone.
Re: Idea posted by anonymous on Oct 14 2006 1:36 PM
And those of us without (or don't want) flash?

Not all linux is x86 based...



For what it's worth, I say just don't let us post. Anonymous posters, that is.
Re: Idea posted by Thunor on Oct 14 2006 1:54 PM
A dual system, an image only and a Flash object for those that have the Flash plugin. Therefore all visually impaired people who want sound will require Flash. I think that's fair.

If you don't have Flash then the object simply won't be there, but the image will :)
Re: Idea posted by xeniac on Oct 14 2006 1:39 PM
I'm afraid a Flash Object with some Animals is to unsecure. I don't know much about Flash, but you need a way to tell Flash what image it should display. If you add a simple object Tag with some parameters like "display=Dog" a SPAM-Bot can easy parse the HTML Code.
Re: Idea posted by Thunor on Oct 14 2006 1:49 PM
You can create a Flash object with an image and a sound embedded in it.

I only used Flash as an example because it creates an encapsulated image/sound that requires just one simple plugin, but I understand that it would be a problem for people with systems that aren't supported so perhaps my idea could be implemented in a different way. You could drop sound support and it would work cross-platform.
Re: Idea posted by Thunor on Oct 14 2006 1:41 PM
Somebody is probably going to say well the spammers could eventually match the hash values of the Flash objects to their word equivalents by human intervention, but anyone who created a Flash object and recorded themselves saying "car" could create 10+ objects with different car pictures using the same sound. Then a spammer would have to identify ALL objects with their word equivalents just to post on gametome. Really, would they bother?

The beauty in this sytem is that it would be unique to gametome, hence not worth the effort of cracking.
Re: Idea posted by SpoonMeiser on Oct 15 2006 3:43 AM
Again, the problem is, that it's the script dealing with the POST data that needs to know which flash object was used. If you're passing the hash as one of the parameters, then all a spammer needs to do is find 1 (one) example of a good hash/answer pair, and always send this.
Re: Idea posted by hanelyp on Oct 16 2006 8:08 PM
Encode the users IP in the hash along with the session ID, or record in a server side database the IP matching a session. Sessions for anonimous users should expire after a time.
Add a field where you must answer a multiple choice question (easy things, like "How many vowels are in "happy penguin")

This way, text-only browsers will still work and all the work can be done server-side (most compatible)


You could use a family of 25 or so questions, and randomize key elements (for example, replace "Happy Penguin" with two random words taken from a dictionary file)
Re: Easy riddles posted by Draconishinobi on Oct 14 2006 3:02 PM
These easy riddles are just as easy to hack by more advanced bots. I don't see a problem with locking out supposed text-based browser users. How many games can you play that are text-based ? Well for those games don't put image verification. Image verification is the only thing to date that is nearly impossible to hack by bots as long as it's done right.

So to summarize the best solution thus far is image verification for non-text-based games. This allows text-based users to get their games and the rest of us to be free from anonymous spam bots.
Re: Easy riddles posted by Viliam on Oct 14 2006 3:49 PM
"easy to hack" depends on whether someone is designing a specific bot just for spamming happypenguin site, or they just use a generic bot for thousands of sites. With the second option (which is IMHO more probable) any non-trivial task should stop the bot. So it would be good to choose something which would stop the bot, but be very easy for legitimate users. For example a textbox with label "write 'A' in this textbox". Just try it and see if it works.
Re: Easy riddles posted by Draconishinobi on Oct 14 2006 4:19 PM
Alright try it, but if it doesn't work you will know why.
Re: Easy riddles posted by SpoonMeiser on Oct 15 2006 3:38 AM
So the script that deals with the post data needs to somehow know which question was asked. This is generally indicated by the name of the input field. I would imagine that even a simple spam bot could be told to always include a known good combination of input field/answer.
Re: Easy riddles posted by SpoonMeiser on Oct 15 2006 4:02 AM

Unless you take an approach similar to captcha: Generate a UID for the input field name; store this, along with the correct answer, in a database; check, and delete, the database entry when dealing with post data.

Just so long as you have enough riddles. Preferably, you'd be able to autogenerate them to some extent.

1. Use a banned domains list. A new post that contains a link to a banned domain will not be allowed to be posted. Users will see an error message stating that the post contains a link that points to a spam domain. The error will also show which link is causing the error.

2. Redirect all links to this domain - happypenguin.org . So if a post had a link: <a href="www.spam.com">Nice spam</a> the link on the final post would point to <a href="http://happypenguin.org/www.spam.com">Nice spam</a> another example: <a href="http://free.hot.spam/hotspam">FREE HOT SPAM</a>
<a href="http://happypenguin.org/http://free.hot.spam/hotspam">FREE HOT SPAM</a> When the user clicks on the link, the page will display 1) a copy of the link for easy copy pasting 2) a message stating that the user should copy paste the link 3) a reason for this elaborate scheme (it stops spam domains getting page hits from happypenguin.org). It won't stop the spam from appearing but it will stop all page hits coming from happypenguin.org which is a good thing.

3. A spam reporting system. Users can mark posts as spam posts. Moderators have a list of all the posts marked as spam. They decide to either remove the post or mark the post as "not spam". If a post is removed, there should also have the ability to add the banned domain to the banned domain list. If a post is marked as "not spam", then users will not be able to mark that particular post as a spam post.

captcha has been broken - http://en.wikipedia.org/wiki/Captcha#Defeating_CAPTCHAs. Using the techniques described here http://www.brains-n-brawn.com/default.aspx?vDir=aicaptcha, I developed my own captcha breaker. I collected 1000 samples from various captcha implementations. When I input the samples into the breaker, it has a 70% success rate on the first pass and a 95% success rate on the third pass after extensive training.

Whatever you do please don't use a system that requires: me see an image or flash or anything me solve any puzzle javascript

Re: My solutions are simple posted by Draconishinobi on Oct 15 2006 10:05 AM
Maybe in combination your solutions may have an effect, but I think it's too much work. The banned domains list is gonna be huge and overly restrictive, the redirect is gonna be a pain in the ass, and the spam reporting system isn't gonna work. How many annonymous posts are made each day ? How many users are there ? How many of the spam posts will be caught by users ? And even if we do report them all, the admins and mods then have to remove them ... a lot of work if you ask me.

Too bad captcha has been broken ... well scratch that one off the list, it would've been great if it couldn't be easily cracked.

To me it seems the only good option left is to get rid of annonymous posting. Maybe we should put it to vote ?
I like the idea of a captcha, but making everyone do it for all of their comments seems overkill. Why not have all anonymous posters pass a captcha for their first post. If they pass, their browser gets fed a cookie that lets happypenguin know they aren't machines.

This is obviously circumventable, but look at it this way: no one is going to write custom spam bots JUST to spam happypenguin (at least, I hope not). I am assuming that most of the spam is coming from those same spambots that are everywhere else on the net, spamming wordpress comments to hell. (Wordpress has a great spam filter system, by the way: spam karma.)

I am now thinking to check posts by anonymous users and if they contain something looking like an URL (anyone got a good perl regex for this?) don't allow the post.
That should be a method that
a) is easy to implement with the current system
b) won't be too annoying to anonymous users.
Re: Thoughts posted by Thunor on Oct 15 2006 4:02 PM
Is that the conclusion to this thread? Checking that a post includes a URL?
Re: Thoughts posted by nath on Oct 15 2006 11:03 PM
It will be a first measure as it is something I can easily implement. We will see if that helps.
Re: Thoughts posted by anonymous on Oct 20 2006 10:12 AM
I use a similar scheme to block spam on my wiki, and it is *very* effective. Anonymous users are not allowed to post any comment that contains links. Also, I do NOT notify the poster that their posting failed, i just log it. This has resulted in a surprisingly small number of false-positives, which are much easier to deal with manually than spams, plus it avoids tipping off the spammer that their attempt has failed (lest they evolve the ability to automate account creation)
I've no idea how to solve the problem, but can i interest you in some

V!aGR4!!!

sorry...

CAPTCHA sounds like a good move to me.

Can you not pass all comments made through Spam Assassin fitted with a fairly advanced learning DB and then get the scripts to react based on the outcome of that? It would have been a logical idea given that it's spam...

Personally I would have no problem making registration a requirement for anyone who wants to make a comment. If anyone feels the need to make a constructive comment about a title, taking a few seconds to fill in a form wouldn't hurt in the slightest.
for unregistered, make them go thru the 'what does the distorted image say' test.

spamassassin is _slow_ and work too.

image tests are probably canned by now

Log in or register to post a comment.