Tuesday, October 20, 2009

Protect your email address from spam bots using jQuery

It is very useful to leave email address for your site visitors but damn spam bots finds them, and we get only not useful spam emails. But there is good way to protect your email address from spam bots using jQuery.

First step where you want to display your email add with class "myemail" (you can change this) like this:





Thursday, October 1, 2009

Secure your forms with Zend_Captcha captcha Part 2 reCaptcha


In last post I wrote that I would show you how to use reCaptcha service with your Zend Framework application. To use reCaptcha service you need service public key and private key. To get keys go to reCaptcha website and hit "Use reCAPTCHA on your site" red button on the bottom of the page and signup for free account. After sign up login to your reCaptcha account and create new reCaptcha key simply writing your website address. After creating new key you shoud get private and public keys.

To use reCaptcha with your Zend Framework put reCaptcha keys in config file or difine as constants in your bootsrap file like I did.


define('RECAPTCHA_PRIVATE_KEY', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');
define('RECAPTCHA_PUBLIC_KEY', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');