title: How to disable recaptcha?
body: <p>Obsolite, Old question was like:</p>
  <p>Is there a way to turn off the recaptcha, created using noscript? I used the standard example, but now I have to make it disappear for certain IPs. I know how to get the ip, but I have not figured out how to turn recaptcha off. I have a wild idea to use php(html) to spawn recaptca, so it can be &quot;turned off&quot; easily.</p>
  <p>What it should have been:</p>
  <p>I am trying to turn off recaptcha, created using noscript, standard example was taken.</p>
  <p>Right now the general outline of the code is below, some parts are obviously missing</p>
  <pre><code>&lt;?php
  .......
  require_once('IpChecker.php');
  
  $in_range = check_ip($ip);
  
  if(!$in_range)
  {
     if ($_POST[&quot;recaptcha_response_field&quot;]){......}
  .......
  ?&gt;
  .............
  
  &lt;?php
     if(!$in_range)
     {
        echo recaptcha_get_html($publickey, $error);
     }
  ?&gt;
  </code></pre>
  <p>It does work correctly but I get an annoing php notice, which basically tells that <code>recaptcha_response_field</code> required in the top part, only appears in the bottom part inside <code>recaptcha_get_html($publickey, $error)</code>. I am mainly trying to get rid of annoing php notice.</p>
  <p>UPDATE: I am a moron. Period. There should be a check if the request was a <code>POST</code> at all - <code>if ($_SERVER['REQUEST_METHOD'] === 'POST')</code> and then there should probably be a check <code>if (isset($_POST[&quot;recaptcha_response_field&quot;]))</code></p>
  <p>Given my experience I now see that <code>if ($_POST[&quot;recaptcha_response_field&quot;])</code> is not really correct way to do things</p>