This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-06-04 17:56:59

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Preventing SPAM on your forum

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)


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#2 2012-06-04 17:58:56

coolhogs
Scratcher
Registered: 2011-07-26
Posts: 1000+

Re: Preventing SPAM on your forum

Wow! Interesting. We could use this in WarpSound inc.'s forum.


Get ready for domination of:  tongue

Offline

 

#3 2012-06-04 17:59:20

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Preventing SPAM on your forum

coolhogs wrote:

Wow! Interesting. We could use this in WarpSound inc.'s forum.

You use phpBB, don't you? If so, you need to make your own code for this.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#4 2012-06-04 17:59:56

coolhogs
Scratcher
Registered: 2011-07-26
Posts: 1000+

Re: Preventing SPAM on your forum

Could you code it?


Get ready for domination of:  tongue

Offline

 

#5 2012-06-04 18:03:02

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Preventing SPAM on your forum

coolhogs wrote:

Could you code it?

I could try, but I have no idea how phpBB works. I only used it once for about a week, and decided I would continue with FluxBB.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#6 2012-06-04 18:25:47

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Preventing SPAM on your forum

@Coolhogs, I will try making it tonight for phpBB.
I will add it to any open-source PHP forum system upon request.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#7 2012-06-04 18:37:53

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Preventing SPAM on your forum

I now have code for phpBB, but I did not make it. I tried in phpBB, but it was too complicated.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#8 2012-06-05 08:55:09

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Preventing SPAM on your forum

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

 

#9 2012-06-05 09:05:08

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Preventing SPAM on your forum

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.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#10 2012-06-05 20:22:49

stevetheipad
Scratcher
Registered: 2011-08-06
Posts: 1000+

Re: Preventing SPAM on your forum

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!  smile


http://i.imgur.com/0x8ia.jpg
gone

Offline

 

#11 2012-06-06 10:08:06

stevetheipad
Scratcher
Registered: 2011-08-06
Posts: 1000+

Re: Preventing SPAM on your forum

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


http://i.imgur.com/0x8ia.jpg
gone

Offline

 

#12 2012-06-06 10:14:42

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Preventing SPAM on your forum

stevetheipad wrote:

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

The registration page looks exactly the same. The place users shouldn't type into is hidden.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#13 2012-06-06 11:21:11

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Preventing SPAM on your forum

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?


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#14 2012-06-07 22:22:16

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Preventing SPAM on your forum

The code is now available in a FluxBB mod (by me), located at https://fluxbb.org/resources/mods/anti- … ses/0.1.1/


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#15 2012-06-16 18:48:21

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Preventing SPAM on your forum

Does anyone know of any mods like this for other forum systems (such as MyBB, phpBB, SMF, etc.)?

I have been looking, and it appears my mod is pretty unique.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

Board footer