homepage Welcome to WebmasterWorld Guest from 50.16.166.175
register, login, search, subscribe, help, library, PubCon, announcements, recent posts, open posts,
Subscribe and Support WebmasterWorld
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library : Charter : Moderators: coopster & eelixduppy & jatar k

PHP Server Side Scripting Forum

    
honeypot captcha
Gilead




msg:4557111
 2:42 pm on Mar 21, 2013 (gmt 0)

I've combined three techniques to eliminate a client's captcha solution.

1. You have to click on a checkbox in order to complete the form.

2. If the form is submitted in under 7 seconds, it asks you to submit it properly

3. If the honeypot has anything in it and the checkbox is unchecked then the submitter is a spammer.

I found an exploit in my own code and am not sure how to add another layer of security. You can click submit over and over if you just wait the required amount of time. Chances are there is enough to discourage using the form for spam, but I want to be thorough.

Anyone out in PHPland have any thoughts?
Thanks!

 

Skorpios




msg:4557114
 3:00 pm on Mar 21, 2013 (gmt 0)

Maybe just put another layer which is a simple sum, i.e. generate tqo random numbers between 1 and 9 and have the user enter the simple addition?

Gilead




msg:4557152
 4:49 pm on Mar 21, 2013 (gmt 0)

Thanks for the idea Skorpios, but that wouldn't stop a person from submitting the form every 7 seconds.

topr8




msg:4557166
 5:35 pm on Mar 21, 2013 (gmt 0)

set a cookie on the form page,
when the form is submitted, set the cookie value to sent or somesuch - reject all subsiquent form submissions where the cookie value is already 'sent'

topr8




msg:4557171
 5:51 pm on Mar 21, 2013 (gmt 0)

... or record the ip address when a form is submitted, don't allow that ip address to submit the form again for whatever time period you chose.

Gilead




msg:4557185
 6:32 pm on Mar 21, 2013 (gmt 0)

Thanks topr8! I like the second idea better.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved