Register  FAQ  Search  Memberlist  Profile  Log in to check your private messages  Log in  Main Site 

Damn Spam!

 
Post new topic  Reply to topic   Infectionist Machinima Forum Index » Infectionist Machinima News
View previous topic :: View next topic  
Author Message
HaLo2FrEeEk
Overlord Extraordinaire

Joined: 15 Aug 2006
Posts: 5782
Status: Offline
Style: Xbox 360
Location: Trying really hard to do something

PostPost subject: Damn Spam! Reply with quote
You might have noticed the increase in spam bot activity around here lately. It's unfortunate, but it's just part of being a forum. A while back we had the same problem and I solved it (temporarily) by adding a new required field to the registration form: a simple checkbox labeled "Are you human?". It worked for a while, but I guess the bot programmers got smart and told the bots to check for that.

So, it was time for a new plan. I already had an existing CAPTCHA system. You know, those annoying random numbers and letters that you have to enter to continue, that thing. The CAPTCHA system is actually really simple, basically when you load the registration page it generates a unique code and id, attaches it to your session ID, then stores it in the database. The code is both the question and the answer. When you submit the form, it passes the confirmation id back to the script along with the code you entered and compares it against the value in the database. If they match, the form validates.

It's too easy though, with computers getting more and more capable, programmers are able to teach their bots to actually read those codes from the image, it's called OCR or Optical Character Recognition, and it's something that's gotten a LOT better over the years. Unfortunately, it also makes CAPTCHAs pretty useless...unlessss........

I devised a simple new system that, instead of the question (and answer) being a random code of letters and numbers, the question is an actual math question, randomly generated. The numbers can be 1-9 and the operator can be plus, minus, multiply, and divide. The script catches instances where the result of the question is not an integer (such as 8/7 which is 1.1428571428.....) or is 0, because entering a zero causes the script to think you're entering a boolean "false", so you're essentially saying "the answer is false" which will always be false, causing it to fail validation.

Anywho, the system uses the existing CAPTCHA system from the forum, with a slight modification to save the question itself as a sting in the database (in order to print it to the image).

It seems to have worked so far, it's been running for about 20 hours and we don't have any spam bots (and there are a lot of failed registration attempts in the database), so hopefully it'll hold steady for a long while.

Just thought I'd let you know about this. It doesn't really affect anyone here, except for that you shouldn't (hopefully) have to deal with the spam bots anymore, which is always a good thing :D
_________________
This user has made more than 500 posts on the Infectionist forums!

~HaLo2FrEeEk

I wrote:
I'm sexy, admit it.


Are you?
Sunday, August 7, 2011 9:37:39 pm
View user's profile Send private message Visit poster's website
Author Message
s.k.
Pure Form
Pure Form

Joined: 23 May 2010
Posts: 864
Status: Offline
Style: Xbox 360
Location: Australia

PostPost subject: Reply with quote
Death to the spam! :D!! Good idea though, man.
_________________
This user has made more than 500 posts on the Infectionist forums!

Pikachu wrote:
Poisonblood wrote:
One time I tickled HaLo2FrEeEks balls with my tongue. But thats a story for a different time.

I hereby declare you a full-fledged faggot.


PROMOTE ME!! PROMOTE ME!! PROMOTE ME!! PROMOTE ME!!
Sunday, August 7, 2011 9:47:14 pm
View user's profile Send private message Visit poster's website
Author Message
repivemag
Elite Combat Form
Elite Combat Form

Joined: 06 Apr 2011
Posts: 240
Status: Offline
Style: Xbox 360
Location: Middle of Nowhere

PostPost subject: Reply with quote
Eh, spam doesn't bug me much. Was kinda funny seeing the really random thread titles all of the sudden. Very nice idea though man, hope it works for good.
_________________
That Guy
Sunday, August 7, 2011 10:22:05 pm
View user's profile Send private message MSN Messenger
Author Message
s.k.
Pure Form
Pure Form

Joined: 23 May 2010
Posts: 864
Status: Offline
Style: Xbox 360
Location: Australia

PostPost subject: Reply with quote
repivemag wrote:
Eh, spam doesn't bug me much. Was kinda funny seeing the really random thread titles all of the sudden. Very nice idea though man, hope it works for good.
\

Yeah, always funny to see with what the spammers...er.. are spamming these days.
_________________
This user has made more than 500 posts on the Infectionist forums!

Pikachu wrote:
Poisonblood wrote:
One time I tickled HaLo2FrEeEks balls with my tongue. But thats a story for a different time.

I hereby declare you a full-fledged faggot.


PROMOTE ME!! PROMOTE ME!! PROMOTE ME!! PROMOTE ME!!
Monday, August 8, 2011 1:58:09 am
View user's profile Send private message Visit poster's website
Author Message
Eviscerate Core
Super Donater

Joined: 21 May 2010
Posts: 649
Status: Offline
Style: Xbox 360
Location: CA

PostPost subject: Reply with quote
Awesome, glad to know we're one step ahead of the computers. Can't let them win this war.

What will we do when they learn how to solve basic math? I know, reading comprehension questions!
_________________
This user has made more than 500 posts on the Infectionist forums!

-- Eviscerate Core

Monday, August 8, 2011 2:16:47 pm
View user's profile Send private message Send e-mail
Author Message
repivemag
Elite Combat Form
Elite Combat Form

Joined: 06 Apr 2011
Posts: 240
Status: Offline
Style: Xbox 360
Location: Middle of Nowhere

PostPost subject: Reply with quote
Eviscerate Core wrote:
Awesome, glad to know we're one step ahead of the computers. Can't let them win this war.

What will we do when they learn how to solve basic math? I know, reading comprehension questions!


"If H2F tricks spambots with math and the spambots fail, who are the spambots?"

Answer: S.K.
_________________
That Guy
Monday, August 8, 2011 3:54:19 pm
View user's profile Send private message MSN Messenger
Author Message
HaLo2FrEeEk
Overlord Extraordinaire

Joined: 15 Aug 2006
Posts: 5782
Status: Offline
Style: Xbox 360
Location: Trying really hard to do something

PostPost subject: Reply with quote
Poop, it looks like it didn't work...a spambot got through.
_________________
This user has made more than 500 posts on the Infectionist forums!

~HaLo2FrEeEk

I wrote:
I'm sexy, admit it.


Are you?
Monday, August 8, 2011 9:39:54 pm
View user's profile Send private message Visit poster's website
Author Message
s.k.
Pure Form
Pure Form

Joined: 23 May 2010
Posts: 864
Status: Offline
Style: Xbox 360
Location: Australia

PostPost subject: Reply with quote
repivemag wrote:
Eviscerate Core wrote:
Awesome, glad to know we're one step ahead of the computers. Can't let them win this war.

What will we do when they learn how to solve basic math? I know, reading comprehension questions!


"If H2F tricks spambots with math and the spambots fail, who are the spambots?"

Answer: S.K.


Wait, What?!
_________________
This user has made more than 500 posts on the Infectionist forums!

Pikachu wrote:
Poisonblood wrote:
One time I tickled HaLo2FrEeEks balls with my tongue. But thats a story for a different time.

I hereby declare you a full-fledged faggot.


PROMOTE ME!! PROMOTE ME!! PROMOTE ME!! PROMOTE ME!!
Monday, August 8, 2011 10:33:45 pm
View user's profile Send private message Visit poster's website
Author Message
repivemag
Elite Combat Form
Elite Combat Form

Joined: 06 Apr 2011
Posts: 240
Status: Offline
Style: Xbox 360
Location: Middle of Nowhere

PostPost subject: Reply with quote
s.k. wrote:
Wait, What?!


Haha, wondered if you'd notice that. :P

Joking man
_________________
That Guy
Monday, August 8, 2011 10:55:28 pm
View user's profile Send private message MSN Messenger
Post new topic  Reply to topic   Infectionist Machinima Forum Index » Infectionist Machinima News

Page 1 of 1
All times are GMT - 8 Hours

Display posts from previous:

  

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Xbox 360 by Scott Stubblefield