2016-08-30 21 views
1

enter image description hereGoogleのrecaptchaを修正するには?

キャプチャ:vistaが

I入力 "ビスタ" アペルト、その後私は、ボタンのログインをクリックしてください。ログインするのは成功です。 captchaが不完全なので、ログインに成功しないといいでしょう。

プロセスがそうであるかどうか? 、または修正する方法がありますか?

私はライブラリrecaptchaを使用しています。私はcodeigniterフレームワークを使用しています。私の図書館は次のようなものです:

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; 
    } 
} 
+1

可能性のある重複した[reCAPTCHAのは、まだフォーム送信したときに一つの単語無効](http://stackoverflow.com/questions/2429759/recaptcha-still-submits-form-when-one-word-invalid) –

答えて

0

これらの古いスクリプトは使用しないでください。 reCaptchaを試してみてください。はるかに良いです。何も入力せずに承認をクリックするだけです。場合によっては、1種類の写真を選択する必要があります。 GoogleのWeb APIからセキュリティレベルを制御できます。 https://www.google.com/recaptcha/intro/index.html

0

これは古いコレクションです。 Googleはサポートしていません。新しいバージョンを試してみてください。フォーム提出&でGoogle検索を実行すると簡単に確認できます。 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

関連する問題