᤻���
Home Contents KMArticlesMembersSponsorsAbout us

��Ѻ��ا : 2559-05-02 (���� Ẻ����)
�ͺ�����ͺ��
᤻��� (CAPTCHA)
    + ᤻��� (CAPTCHA) . ��� ����׹�ѹ������������ ���� ��÷��ͺ��Ҽ������ͺ�Ѻ����ͧ�������������������ԧ������� ����� CAPTCHA ����Ҩҡ Completely Automated Public Turing test to tell Computers and Humans Apart ������ͧ���¡�ä�Ңͧ����Է����¤���๡�����͹ ���Ѱ����ԡ� �դ.�. 2000 �����ѹ�Ѳ���� Luis von Ahn, Manuel Blum, Nicholas J. Hopper and John Langford
    + ��÷��ͺ�ͧ����ԧ (�ѧ���: Turing test) (���Ըա�÷�� ���ѹ ����ԧ �ʹ�㹻դ.�.1950) ��� ��÷��ͺ��������ö�ͧ����ͧ�ѡ� (Machine) �������ö�Դ�������ǡѺ������������� ���Ըա�÷��ͺ�����餹�ӡ�þ���캷ʹ�����ͺ�Ѻ�����������ҧ����繤���Ф��������� �ҡ���ʹ����������ö�¡������ա�����繤������������ͤ��� �����������ͧ�ѡù�鹼�ҹ��÷��ͺ�ͧ����ԧ ��觨��֧�Ѩ�غѹ���ѧ���������ͧ�ѡ�㴼�ҹẺ���ͺ�����
    + ���ྨ������ԡ�� CAPTCHA �ͧ google.com ��������� reCAPTCHA �������ԡ�ÿ�� ���觡�÷ӧҹ�� 2 ��ǹ ��� ��ǹ���ྨ�Ѻ�Թ�ط�ҡ������ (Input) �����ǹ���ྨ��Ǩ�ͺ����������� (Verify) ����͵�Ǩ�ͺ��ҹ���� �֧��͹حҵ����зӡ��� � ������ �� ����������к� ���͡�ô�ǹ���Ŵ �繵� ��觡����ҹ reCAPTCHA �ͧ google.com ����� Domain name, Server-sided script, reCAPTCHA PHP library ��кѭ�ռ����ͧ google.com
+ http://en.wikipedia.org/wiki/CAPTCHA
+ ����ʴ� reCAPTCHA Ẻ����� plugin
+ reCAPTCHA PHP library ��� verify ���� PHP
+ International e-Learning Conference 2011
+ ������ҧ����� Captcha Ẻ������ѡ��
��鹵͹����Ѻ PHP Webmaster
1. ����� Server ����ͧ�Ѻ PHP
2. Signup recaptcha �ҡ google
3. �Ѵ�͡ public & private key ����� code
4. Dowload recaptchalib.php �ҡ google
5. ��Ѻ ��з��ͺ code ���
6. ��Ѻ input ����繵������ҹ��ͧ���


�ǤԴ����� captcha ��ͧ�ѹ spam

<?php
if (!isset($_POST["d"])) { ?>
<form action="" method="post"><input name="d" /><input type="submit" />
<script type="text/javascript"
src="http://www.google.com/recaptcha/api/challenge?k=TuMSAAAAAAAA">
</script>
<noscript>
<iframe src="http://www.google.com/recaptcha/api/noscript?k=TuMSAAAAAAAA"
height="300" width="500" frameborder="0"></iframe><br>
<textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>
<input type="hidden" name="recaptcha_response_field" value="manual_challenge">
</noscript>
</form>
<?php 
} else {
require_once('recaptchalib.php');
$publickey = "TuMSAAAAAAAA";
$privatekey = "AAAadfSDFasdfddDSOUPaE";
# the response from reCAPTCHA
$resp = null;
# the error code from reCAPTCHA, if any
$error = null;
# was there a reCAPTCHA response?
if ($_POST["recaptcha_response_field"]) {
  $ra = $_SERVER["REMOTE_ADDR"];
  $pcf = $_POST["recaptcha_challenge_field"];
  $prf = $_POST["recaptcha_response_field"];
  $resp = recaptcha_check_answer ($privatekey, $ra, $pcf, $prf);
  if ($resp->is_valid) echo $_POST["d"]; else echo "fail";
}
}
?>
"Imagination is more important than knowledge" - Albert Einstein
Home
Thaiabc.com
Thainame.net
Lampang.net
Nation university
PHP
MySQL
Visual basic.NET
TabletPC
Linux
Online quiz
Download
Search engine
Web ranking
Add website
Blog : Education
Blog : ACLA
Blog : Lampang
Facebook.com
Twitter.com
About us
My dream
Site map
Sponsor
http://goo.gl/72BPC