I have not got this yet either. Try a google search for php captcha. There are plenty of free offerings as well as discussions about the pros and cons of this mechanism.
If you decide to implement it, you will not have much difficulty.
If you decide to implement it, you will not have much difficulty.
You can use the capcha from http://www.phpcaptcha.org. Documentation at http://www.phpcaptcha.org/Securimage_Docs/ .
I use it myself for user reviews at ClickShopGuide. It's opensource and fully written in PHP, and can be easily integrated into OpenCart.
In your tpl file, add this code for the image (assuming the 'securimage' runtime directory is installed in your main OpenCart directory):
When you validate the submitted form, do the following:
I use it myself for user reviews at ClickShopGuide. It's opensource and fully written in PHP, and can be easily integrated into OpenCart.
In your tpl file, add this code for the image (assuming the 'securimage' runtime directory is installed in your main OpenCart directory):
Code: Select all
.....
<img src="<?php echo 'securimage/securimage_show.php?sid='.md5(uniqid(time())); ?>" alt="" />
.....
<input type="text" name="code" size="4" maxlength="4" />
.....
Code: Select all
.....
$img = new Securimage();
$code = (isset($_POST['code'])) ? $_POST['code'] : '';
$valid = $img->check( $code );
if (!$valid) {
// there is an error, wrong capcha code submitted
}
....
Last edited by JNeuhoff on Wed Nov 19, 2008 6:31 pm, edited 1 time in total.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
recaptcha seems to be getting more and more popular: http://recaptcha.net/
However, I do find that captcha's are sometimes over kill.
More often that not, all you need is a carefully written question that all humans can read and answer, but won't be obvious to a bot.
Doing this is so much more user friendly than making people type god awful words in, and sometimes getting it wrong. The last thing you want to do is deter customers from ordering on your site.
This is how php.net does it for their comments section, but using math questions.
Best of all, if the bots do eventually catch on to the answer to your question, all you have to do is change the question and answer, you can even rotate them. Easy.
This is something I may look into adding into 0.8, although i've not seen any spambot issues, I am aware of the potential risk.
Good luck!
However, I do find that captcha's are sometimes over kill.
More often that not, all you need is a carefully written question that all humans can read and answer, but won't be obvious to a bot.
Doing this is so much more user friendly than making people type god awful words in, and sometimes getting it wrong. The last thing you want to do is deter customers from ordering on your site.
This is how php.net does it for their comments section, but using math questions.
Best of all, if the bots do eventually catch on to the answer to your question, all you have to do is change the question and answer, you can even rotate them. Easy.
This is something I may look into adding into 0.8, although i've not seen any spambot issues, I am aware of the potential risk.
Good luck!
Yeah that's rapidshare (http://depressedprogrammer.wordpress.co ... tcha-ever/)
On a ticket system I created I used the system font to display an image that contained 5 numbers which the user had to enter into a security field. This never failed me.
On a phpBB forum site, in addition to the regular captcha, because the bots learned to go round the captcha, I added a simple plain text question, which requires a plain text answer. While the captcha might as well not even be there.
You can see what php.net do here -> http://uk3.php.net/manual/add-note.php? ... hpinfo.php
I don't think captcha is even needed, a plain text question/answer that is adjustable in the settings will suffice. (something for 0.
If not I'd recommend implementing recaptcha on a case by case basis.
On a ticket system I created I used the system font to display an image that contained 5 numbers which the user had to enter into a security field. This never failed me.
On a phpBB forum site, in addition to the regular captcha, because the bots learned to go round the captcha, I added a simple plain text question, which requires a plain text answer. While the captcha might as well not even be there.
You can see what php.net do here -> http://uk3.php.net/manual/add-note.php? ... hpinfo.php
I don't think captcha is even needed, a plain text question/answer that is adjustable in the settings will suffice. (something for 0.

If not I'd recommend implementing recaptcha on a case by case basis.
I've got reCaptcha working on one of my non-OpenCart sites. Their PHP instructions are pretty straightforward.
http://recaptcha.net/
My only beef with them is their code doesn't validate xhtml strict.
http://recaptcha.net/
My only beef with them is their code doesn't validate xhtml strict.
Who is online
Users browsing this forum: No registered users and 4 guests