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?

Won't stop spammers but they won't post tens of spam comments like this. It would be too much work.
IMHO it wouldn't be too onerous to make a preview step mandatory for all messages, either.
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)
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?
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?
Tutorials on image verification:
phpNoise
phpclasses
Hopefully this post won't do anything about this ;-)
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
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.
Not good for anyone coming from AOL (I know unlikely but still) they change IPs with page loads sometimes.
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.
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?
Linux dudes are usually a clever bunch, I'm sure you will find somthing to your liking.
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:
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.
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.
Obviously I like being able to post the occasional Anon message and not having to log in :).
-- Inhibit
captcha.... no logins/pass, emails verifications, etc
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 ;)
Either make them distinguishable or make them indistinguishable to the code (as it is to the eyes)
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 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
For this issue happypenguin.org could use a single-signon Network (drupal has this for example), but the integration with phpBB could be difficult.
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.
If it is possible to filter like this?
I think it uses spamassin (spamd?) in the background for this.
Many sites do it that way. Slashdot or Digg, for example.
(Good decision to keep too harsh controlfreakisms away from anonymous/new users, BTW)
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.
Not all linux is x86 based...
For what it's worth, I say just don't let us post. Anonymous posters, that is.
If you don't have Flash then the object simply won't be there, but the image will :)
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.
The beauty in this sytem is that it would be unique to gametome, hence not worth the effort of cracking.
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)
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.
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
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 ?
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.)
That should be a method that
a) is easy to implement with the current system
b) won't be too annoying to anonymous users.
V!aGR4!!!
sorry...
CAPTCHA sounds like a good move to me.
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.
spamassassin is _slow_ and work too.
image tests are probably canned by now