In this day and age, a lot of people want to increase their rank on search engines as quickly as possible, because a rank on search engines can be the difference between success and failure. How some people have chosen to do this is by deploying spambots on forums that post links to their site, which increases their rank. This is all at the expense of the forum owner.
Often, I see posts like this on forums. A bot creates a disposable account, posts links to their site, and leaves. The links then increase their rank on Google. This is a waste of space in the forum database, and annoying to all of the users who have to see it. It gets worse when the spam contains inappropriate images (which I have seen happen before, but let's not go there).
However, there is a way to prevent this. Most spambots are easily detectable and can be blocked with the simple scripts listed below.
The basic idea
There are two methods that I use that prevent spam on my forums. I will provide code for both in FluxBB.
1. Add a hidden password field, and if anything is put in it, it is spam. Most spambots will put text in any password field on the sign-up form, in order to make sure they specify a password.
2. Check HTTP headers
Code for FluxBB (by me)
Last edited by jvvg (2012-06-07 22:21:44)
Offline
That's a nice tricky way of catching with the hidden password field.
The stopforumspam.com database isn't perfect, as spammers can use usernames they found elsewhere of nice guys... that happened to someone on Coders' Shed. It's probably better to just alert the admins when someone from the database signs up, instead of completely blocking them, to keep an eye on them.
Offline
scimonster wrote:
That's a nice tricky way of catching with the hidden password field.
The stopforumspam.com database isn't perfect, as spammers can use usernames they found elsewhere of nice guys... that happened to someone on Coders' Shed. It's probably better to just alert the admins when someone from the database signs up, instead of completely blocking them, to keep an eye on them.
I know that the stopforumspam.com database isn't that reliable with usernames, so I only check IP addresses and emails.
The alerting thing doesn't work on one of the forums I run, as it gets about 20-30 spammers an hour.
Offline
Good idea!
My only concern is that it doesn't look professional. I wish there were a more professional approach at this.
But overall, nice idea, jacob!

Offline
Also, how about a screenshot of what'd it look like?

Offline
I have updated it, so it no longer uses stopforumspam.com.
It instead just uses the hidden password field and HTTP headers.
Does anyone have any suggestions or other ideas?
Offline
The code is now available in a FluxBB mod (by me), located at https://fluxbb.org/resources/mods/anti- … ses/0.1.1/
Offline