Note that there are some explanatory texts on larger screens.

plurals
  1. POSpammers can send their stuff even I have reCAPTCHA
    text
    copied!<p>I have a huge problem with my reCAPTCHA! Spammers can send their ugly stuff even if I have reCAPTCHA "installed" on my website. I have created a own skin to reCAPTCHA and I have readed their wiki to make sure that I did everything right, but unfortunately something went wrong.</p> <p>Here's how I have done it:</p> <p><strong>Form</strong> </p> <pre><code> &lt;!-- reCAPTCHA --&gt; &lt;div class="paddingbottom-5"&gt; &lt;div style="border: 1px solid #d1d1d1; width: 300px;"&gt; &lt;div id="recaptcha_image"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;!-- reCAPTCHA: Textfield --&gt; &lt;input type="text" name="recaptcha_response_field" id="recaptcha_response_field" tabindex="5"&gt; &lt;!-- reCAPTCHA: Reload --&gt; &lt;a href="javascript:Recaptcha.reload()" class="noborder-link"&gt; &lt;img src="'.ICON.'arrow-circle-double-135.png" alt="" class="image-icon-right"&gt; &lt;/a&gt; &lt;/div&gt; </code></pre> <p><strong>Configuration</strong> (is stored below the <code>require_once('configs/required/classes/class.recaptchalib.php');</code> in the same file as the form)</p> <pre><code>$response = recaptcha_check_answer( CAPTCHA_PRIVATE, IPADDRESS_NOHASH, $_POST['recaptcha_challenge_field'], $_POST['recaptcha_response_field'] ); </code></pre> <p><code>CAPTCHA_PRIVATE</code> contains my private key for reCAPTCHA which is linked to the right address (duh). <code>IPADDRESS_NOHASH</code> looks like this: <code>define('IPADDRESS_NOHASH', get_realip());</code>. The function "<code>get_realip()</code>" looks like this:</p> <pre><code>function get_realip() { if(!empty($_SERVER['HTTP_CLIENT_IP'])) { $ip = $_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; } else { $ip = $_SERVER['REMOTE_ADDR']; } return $ip; } </code></pre> <p>I have also this function in JavaScript to apply my custom theme:</p> <pre><code>var RecaptchaOptions = { theme : 'custom', custom_theme_widget: 'recaptcha_widget' }; </code></pre> <p>I have made the class file for reCAPTCHA (class.recaptchalib.php) more prettier (it have now the same structure as the form structure, for an example) and I have also removed everything that belongs to the MailHide API because I don't use that API - only reCAPTCHAs API.</p> <p>What's wrong? Have I missed something?</p> <p>Thanks in advance!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload