Warning: is_writeable() [function.is-writeable]: open_basedir restriction in effect. File(/dev/null) is not within the allowed path(s): (/home/ajaxkayn:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/ajaxkayn/public_html/mambots/system/blueflame/bfLog.php on line 180
Warning: is_writeable() [function.is-writeable]: open_basedir restriction in effect. File(/dev/null) is not within the allowed path(s): (/home/ajaxkayn:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/ajaxkayn/public_html/mambots/system/blueflame/bfLog.php on line 180
Warning: is_writeable() [function.is-writeable]: open_basedir restriction in effect. File(/dev/null) is not within the allowed path(s): (/home/ajaxkayn:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/ajaxkayn/public_html/mambots/system/blueflame/bfLog.php on line 180
Warning: is_writeable() [function.is-writeable]: open_basedir restriction in effect. File(/dev/null) is not within the allowed path(s): (/home/ajaxkayn:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/ajaxkayn/public_html/mambots/system/blueflame/bfLog.php on line 180
Warning: is_writeable() [function.is-writeable]: open_basedir restriction in effect. File(/dev/null) is not within the allowed path(s): (/home/ajaxkayn:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/ajaxkayn/public_html/mambots/system/blueflame/bfLog.php on line 180
Warning: is_writeable() [function.is-writeable]: open_basedir restriction in effect. File(/dev/null) is not within the allowed path(s): (/home/ajaxkayn:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/ajaxkayn/public_html/mambots/system/blueflame/bfLog.php on line 180
Warning: is_writeable() [function.is-writeable]: open_basedir restriction in effect. File(/dev/null) is not within the allowed path(s): (/home/ajaxkayn:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/ajaxkayn/public_html/mambots/system/blueflame/bfLog.php on line 180
Warning: is_writeable() [function.is-writeable]: open_basedir restriction in effect. File(/dev/null) is not within the allowed path(s): (/home/ajaxkayn:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/ajaxkayn/public_html/mambots/system/blueflame/bfLog.php on line 180
Warning: is_writeable() [function.is-writeable]: open_basedir restriction in effect. File(/dev/null) is not within the allowed path(s): (/home/ajaxkayn:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/ajaxkayn/public_html/mambots/system/blueflame/bfLog.php on line 180
Warning: is_writeable() [function.is-writeable]: open_basedir restriction in effect. File(/dev/null) is not within the allowed path(s): (/home/ajaxkayn:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/ajaxkayn/public_html/mambots/system/blueflame/bfLog.php on line 180
Warning: is_writeable() [function.is-writeable]: open_basedir restriction in effect. File(/dev/null) is not within the allowed path(s): (/home/ajaxkayn:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/ajaxkayn/public_html/mambots/system/blueflame/bfLog.php on line 180
Warning: is_writeable() [function.is-writeable]: open_basedir restriction in effect. File(/dev/null) is not within the allowed path(s): (/home/ajaxkayn:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/ajaxkayn/public_html/mambots/system/blueflame/bfLog.php on line 180
Warning: is_writeable() [function.is-writeable]: open_basedir restriction in effect. File(/dev/null) is not within the allowed path(s): (/home/ajaxkayn:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/ajaxkayn/public_html/mambots/system/blueflame/bfLog.php on line 180
Warning: is_writeable() [function.is-writeable]: open_basedir restriction in effect. File(/dev/null) is not within the allowed path(s): (/home/ajaxkayn:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/ajaxkayn/public_html/mambots/system/blueflame/bfLog.php on line 180
Warning: is_writeable() [function.is-writeable]: open_basedir restriction in effect. File(/dev/null) is not within the allowed path(s): (/home/ajaxkayn:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/ajaxkayn/public_html/mambots/system/blueflame/bfLog.php on line 180
Warning: is_writeable() [function.is-writeable]: open_basedir restriction in effect. File(/dev/null) is not within the allowed path(s): (/home/ajaxkayn:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/ajaxkayn/public_html/mambots/system/blueflame/bfLog.php on line 180
Warning: is_writeable() [function.is-writeable]: open_basedir restriction in effect. File(/dev/null) is not within the allowed path(s): (/home/ajaxkayn:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/ajaxkayn/public_html/mambots/system/blueflame/bfLog.php on line 180
| Ajax ile captcha doğrulaması yaparak spamları engellemek |
|
|
|
| Yazar Administrator | |
| Çarşamba, 31 Ekim 2007 | |
Captcha Spam botlardan korunmak için en etkili yollardan biri. Şimdi web sitelerimizin ziyaretçilerinin işini biraz kolaylaştırması açısından Ajax yardımı ile bir Captcha doğrulaması yapalım. Bu doğrulamada resimdeki karaktarlerin yanlış girilmesi durumunda form gönderilmeden önce bir uyarı çıkmasını sağlayacağız.
<html> <head> <title>Ajax Captcha</title> <script language="JavaScript"> Burada resim dosyamızın captcha.php tarafından yaratıldığını görebilirsiniz, captcha.php dosyası ile rasgele karakter ve sayıları bir arkaplan resmi üzerine yazdırabiliyoruz. <?php // Session'ı başlatıyoruz session_start(); // Kodun doğruluğunu kontrol ediyoruz if(strtoupper($_GET['code']) != $_SESSION['secret_string']) { echo '0'; // Yanlış } else { echo '1'; // Tamam } ?>
Burada strtoupper() fonksiyonu ile kullanıcının kodunu alıyor ve session'daki değer ile karşılaştırıyoruz. Eğer yanlış ise "0" doğru ise "1" olarak belirtiyor.
Please Enter New Tags Separated By Comma's
Or Close
|
|
| Son Güncelleme ( Perşembe, 01 Kasım 2007 ) |
| Sonraki > |
|---|










