donators

n@work Internet Informationssysteme GmbH
Your ad here

Advertising

Fight the spam part X

By: Thomas

19.06.07 09:00 Age: 2 yrs

A long while ago I've implemented a Spam protection JavaScript for ve_guestbook developed by Christoph Neumüller. This protection was cracked by the spammers by teaching their bots JavaScript or whatever.

Anyway, he developed a new version which works a bit different and I am of the same opinion, that this protection will be very hard to crack. He describes the method on his homepage [1]. For all of you who doesn't understand German I give you a small abstract:

The point is that the most spam bots want to place an URL in a field called "homepage", "hp", "url" or whatever. In most other cases placing links doesn't make sense for them. Now here comes the trick.

We create a kind of honeypot consisting of a field with the name "homepage" which is hidden for the user via CSS. A new field with a random name will replace it in the form. You can call it "spammers-suck" for example.

All we have to do now is, to add a small piece of PHP in the pi1 class of ve_guestbook to check if the hidden field contains anything. If that is the case, a spammer tries to infiltrate our guestbook. That is the point where we simply exit the guestbook code and print out a nice message for the spammer.

As you can see, the method has a small hitch. We have to change the sourcecode of ve_guestbook. I hope the author of that extension will implement that or at least add a usable hook at that point. We will see! :-) In any case: Thank you Christoph!!!

I have implemented this now on the comment form and I will look at the amount of spam that comes in the next days / weeks.

 

Greets,

Thomas


Please leave a comment

7 Responses to “Fight the spam part X”

#1: Ingo commented on Tuesday, 19-06-07 12:18

Gravatar: Ingo

you could also simply use mf_akismet, does an awesome job, even on buzz.typo3.org ... no more spam, install and be happy


#2: Martin Adler commented on Tuesday, 19-06-07 15:39

Gravatar: Martin Adler

@Ingo: why use an easy way, if there is a difficult one? ;-)


#3: Ingo commented on Wednesday, 20-06-07 07:25

Gravatar: Ingo

what's difficult about just installing an extension?


#4: Thomas commented on Wednesday, 20-06-07 08:14

Gravatar: Thomas

@Ingo: I guess he meant that I do it with JavaScript instead of just installing an extension.
Well, I use both things now because I want to test how akismet protects me from trackback spam.

Greets,
Thomas


#5: Michael Fritz commented on Wednesday, 20-06-07 15:45

Gravatar: Michael Fritz

I wonder what is so brilliant about mf_akismet? imo it just gives you the option to mark comments as spam which is no big deal compared to deleting entries in old school style? for me neither mf_akismet nor timtab_badbehavior works..

but hopefully the javascript thing is a solution..


#6: Thomas commented on Wednesday, 20-06-07 15:48

Gravatar: Thomas

@Michael: You have to have an account at wordpress.org. There is an webservice running that checks your incoming guestbook posts for spam. You don't have to mark them manually.

Greets,
Thomas


#7: Micha commented on Friday, 22-06-07 19:27

Gravatar: Micha

I think I need to write a manual with a good "What does it do" *g*


Leave a Reply

You have to activate JavaScript to post comments!

Calendar

July 2007
M T W T F S S
« Jun   Aug »
 1
02340506708
09101112131415
16171819202122
23242526272829
3031  

Latest comments

  • Charles

    Hi Thomas, Really like your site, it has helped me a lot with my typo3 site. I have a question...

  • Anoop

    Thomas, Looking forward to it and like Mario said if you need a beta tester I sign up too! Cheers.

  • Mario Rimann

    Hi Thomas Sounds great, that you'll keep the site up and running! I use it pretty often to look ...

  • Thomas Hempel

    Hi Klaus, sorry, but you're a a few weeks too late. ;-) Greets, Thomas...

  • Klaus

    Hi, great idea, i am using the great app, but now i need a license... Thanks a lot

Advertising