The following document outlines how to create a custom CAPTCHA page for use with Netacea’s reCAPTCHA solution.
Prerequisites
Please ensure that Netacea has configured and enabled CAPTCHA for your account. Also, ensure that the standard CAPTCHA page has been tested and can be served before implementing a custom CAPTCHA page.
Provided that the above prerequisites have been completed, a custom CAPTCHA page can be created by doing the following:
HTML Page
To create an HTML page that will be used for serving CAPTCHA it may be beneficial to start with the Netacea Template HTML before adding the custom HTML code. The templated page can be seen at the bottom of this document.
Your custom HTML page can be designed per your specific requirements and/or company branding, however, the page must include the following code.
The following scripts should be within the document head element (<head>...</head>):
Please note that certain links within the CAPTCHA page may not work if they are hosted behind the site that is being protected by Netacea.
Netacea CAPTCHA Template
<!DOCTYPEhtml><htmllang="en"><headrunat="server"> <metaname="viewport"content="initial-scale=1.0, width=device-width, maximum-scale=1.0" /> <metahttp-equiv="Cache-Control"content="no-cache, no-store, must-revalidate" /> <metahttp-equiv="Pragma"content="no-cache" /> <metahttp-equiv="Expires"content="0" /> <title>Captcha Page</title> <linkrel="stylesheet"href="https://assets.ntcacdn.net/Mitigations/captcha-1.1.1.css"> <scriptsrc="https://www.recaptcha.net/recaptcha/api.js"asyncdefer></script></head><body> <divclass="wrapper"> <header><!-- header content --> <h1>Help us verify real visitors</h1><!-- End of header content --> </header><!-- statement content --> <p>Please complete to continue</p><!-- End of statement content --><!-- Captcha Form, Do not change--> <formid="frmCaptcha"action=""method="POST"> <divclass="g-recaptcha"data-sitekey="{{CAPTCHA_SITE_KEY}}"data-callback="showButton"></div> <br /> <inputtype="submit"value="Submit"class="btn btnHidden"> <inputtype="hidden"maxlength="40"id="hitid"name="hitid"value="{{TRACKING_ID}}"> </form><!-- End of captcha form --> <divclass="wrapper-values"></div> </div><!-- The following two scripts MUST be at the end of the body --> <scriptsrc="https://assets.ntcacdn.net/Mitigations/fetch-polyfill-3.6.2.js"></script> <scriptsrc="https://assets.ntcacdn.net/Mitigations/submit-captcha-2.1.4.js"></script><!-- End of scripts at the end of body --></body></html>
Once the custom CAPTCHA page has been completed, please provide the completed CAPTCHA HTML page to Netacea. This will be uploaded to our servers and the new page will be used for any CAPTCHA pages served by the Netacea Bot Management solution.