Guestbook with security code

6 posts by 4 authors in: Forums > CMS Builder
Last Post: January 21, 2011   (RSS)

Re: [videopixel] Guestbook with security code

By Jason - May 17, 2010

Hi

Currently, the script is only checking to see if something was entered in the random number box, but is not checking to see if it matches the number the server generated. Try adding this line to your error checking:

if (@$_REQUEST['randomNumber']!=@$_REQUEST['check']) { $errorsAndAlerts .= "Please specify/verify the Security Code!\n"; }

Other than that, everything looks good. Nice solution!

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Guestbook with security code

By videopixel - May 17, 2010

Hi Jason,

Thanks man it worked...

Re: [Jason] Guestbook with security code

It seems that this way is not secure anymore... [:(]
(got a lot of spam lately)

Any other way to do this?

http://www.dirkbeckers.be

Re: [videopixel] Guestbook with security code

Hi Videopixel

Try using CAPTCHA http://code.google.com/apis/recaptcha/docs/php.html

There are other postings in this forum on how to integrate CAPTCHA with CMSB. Also the "CMSB Cookbook" has a section, if I remember correctly.

Ragi
--
northernpenguin
Northern Penguin Technologies

"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke

Re: [northernpenguin] Guestbook with security code

Sorry, I didn't see this post until today.

You're right Ragi,

There are detailed instruction on how to implement Captcha code in the CMSB Cookbook http://www.thecmsbcookbook.com

I personally like Captcha Creator because it's a bit more flexible to restyle, but ReCaptcha is good also.

Best,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php