Preface: This article requires that Contact Form 7 is installed and Google reCAPTCHA is set up.
Step 1 - Create Script Blocker
In the Borlabs Cookie menu, click Script Blocker and then Add New.
Set page and Search phrase
Now you have to select the page on which the form is embedded. In our example, this is the Contact form page. Enter the word /recaptcha/ for Search phrases. This will ensure that only the URLs we are looking for are found. Then click on Scan.
After your site has been scanned and you have clicked Next, you need to set an ID and name for your Script Blocker.
For ID you enter recaptcha and for name Google reCAPTCHA. Set the status to ON.
Now you can create the Script Blocker.
Copy code for Content Blocker
After the Script Blocker is created, you have to copy the code for the Content Blocker to the clipboard. We will need it in a moment to set up a working Content Blocker in the second step.
Step 2 - Create Content Blocker
Now create the Content Blocker. In Borlabs Cookie, click Content Blocker and Add New.
Configure Content Blocker
Now scroll to the Preview Blocked Content field and paste the HTML code provided here.
HTML code for Preview Blocked Content
Now you can save the Content Blocker. Then scroll up and copy the shortcode of the Content Blocker.
Step 3 - Extend page with contact form
Go to the page where the contact form is embedded and paste the Content Blocker shortcode below the shortcode for the contact form. Replace …block this… with Google reCAPTCHA has been loaded. The form can now be submitted once the button has been pressed.
Google reCAPTCHA is now blocked by Borlabs Cookie and is loaded only when the visitor presses the button.