Setup CoreAPI with reCAPTCHA to protect your online forms from abuse

Modified on Fri, 4 Dec at 3:22 AM

In Synergetic 72.38, support for reCAPTCHA has been added to your forms to protect them from abuse from bots and bad actors.

Providing a reCAPTCHA challenge on your forms ensures that the submission is only possible by humans rather than bots running automation or orchestrating fraud.

To enable this security enhancement, please follow the below steps:

  1. Ensure you're logged into your Google account where you want to associate your reCAPTCHA credentials with
  2. Go to reCAPTCHA
  3. Fill out the details, here are some hints on each field
    1. Label - something to remind you about what this reCAPTCHA code is for, e.g. School CoreAPI
    2. reCAPTCHA type - you must choose Challenge V2 and then I'm not a robot checkbox
    3. Domains - click the '+' and then add all the domains where your CoreAPI is hosted. This may only be one domain or many depending on how you're hosting CoreAPI. This ensures your reCAPTCHA credentials can't be used by anyone else on their own websites.
    4. Project - Choose an existing one if you have any, or create a new one for this purpose
  4. Click 'Submit'
  5. Copy the 'public key' and 'private key', you'll need this for your CoreAPI configuration

On your webserver where CoreAPI is hosted, navigate to the location of the CoreAPI XML configuration file and open it in a text editor. The default location is usually with one of the following directories

  1. C:\\inetpub\\wwwroot\\SynergeticCfg\\...
  2. D:\\inetpub\\wwwroot\\SynergeticCfg\\...

Ensure the following XML elements are included under the <CustomSettings> element

  <RecaptchaPublicKey>abcd1234</RecaptchaPublicKey>
  <RecaptchaPrivateKey>wxyz9876</RecaptchaPrivateKey>
  <RecaptchaEnabledFlag>True</RecaptchaEnabledFlag>

Ensure you put your own public key and private key in the relevant elements above.

Restart your CoreAPI's App Pool for the changes to take effect.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article