The captcha : vista aperto
I input "vista", then I click button login. It's success to login. Should it not succeed to login, because the captcha incomplete.
whether the process is so? or is there a way to fix?
I using library recaptcha. I using codeigniter framework. My library is like this :
class Google_recaptcha
{
function check_captcha($private_key, $remote_ip, $challenge, $response)
{
if (!preg_match('/[^A-Za-z0-9\s]/', $response))
{
$CI =& get_instance();
$CI->load->library('scurl');
$array['site'] = 'http://www.google.com/recaptcha/api/verify';
$array['post'] = 'privatekey='.$private_key.'&remoteip='.$remote_ip.'&challenge='.$challenge.'&response='.$response;
$array['referer'] = '';
$array['method'] = 'POST';
$response = $CI->scurl->scurl($array);
$response = explode("\n", $response);
}
else
$response = array('false');
return $response;
}
}
答案 0 :(得分:0)
不要使用那些旧脚本。尝试reCaptcha。它好多了。只需点击授权而无需输入任有时您必须选择一种图片。通过Google的网络API,您可以控制安全级别。 https://www.google.com/recaptcha/intro/index.html
答案 1 :(得分:0)
这是如此古老的recapcha版本。谷歌不支持。尝试新版本的recapcha。它易于使用表单提交和导航进行导航验证由谷歌运行。 https://www.google.com/recaptcha/intro/index.html
&安培;它还有用于CodeIgniter的reCAPTCHA库 https://github.com/appleboy/CodeIgniter-reCAPTCHA
示例代码 http://www.technicalkeeda.com/php-codeigniter/google-new-recaptcha