reCAPTCHA Error – Blocked Loading Mixed Active Content Updated on December 29, 2020 by Brad Markle 0 Minutes, 53 Seconds to Read This article is intended for developers using reCAPTCHA Library for PHP (recaptcha-php-1.11). Problem When I access my website over SSL, Google Recaptcha doesn’t load. When I access the javascript error console, I see the following error: Blocked loading mixed active content“https://www.google.com/recaptcha/api/challenge?k=KEY-GOES-HERE” [Learn More] What causes this problem? You will see the Blocked loading mixed active content error when accessing your website over https (ssl) but calling Google’s recaptcha using http (no ssl). Your browser is blocking the insecure content which is trying to load over http (no ssl). Solution The solution to this problem is to use SSL when calling the recaptcha_get_html function to create your recaptcha form. If you look at around line 106 of recaptcha-php-1.11/recaptchalib.php, you’ll see the function has an optional ssl parameter: function recaptcha_get_html ($pubkey, $error = null, $use_ssl = false) Changing your code from the red example below to the green example below should fix this error for you: $recaptcha = recaptcha_get_html($publickey); $recaptcha = recaptcha_get_html($publickey,'',true); Share this Article Related Articles How to Edit CSS Using Google Chrome Developer Tools How to Change Nameservers in Google Domains How to Use Google Apps to Host Your Mail How to use Google Web Fonts for your builder Setting up Google Workspace MX Records in cPanel Google Launches Site Kit Plugin for WordPress How to Set up Google My Business Setting a Crawl Delay in Google Webmaster Tools Generating Google API keys How to Add a Google map with a Marker to your website