• Resolved wardcaswell

    (@wardcaswell)


    I have multiple domains that use DNS to land on a single WordPress installation. When I use ReCaptcha v2 for Contact Form 7 for the primary domain, all is well. However, when I test the site coming from an alternate domain, I receive a message “ERROR for site owner: Invalid domain for site key.”

    I don’t see a way to register multiple site keys for each domain. Is there a way to do so?

    Thank you. I have really enjoyed the ReCaptcha v2 for Contact Form 7 solution.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author IQComputing

    (@iqcomputing)

    Hello,

    You should be able to add multiple domains to the same API key via the Google Admin Console. For reference, see the first image in our post on How to Generate Google reCaptcha Keys. On this screen it allows you to add 1 domain and clicking the plus button will allow you to add multiple allowed domains.

    Hopefully this solution works for you but if not please reply back and let us know so we may investigate additional solutions. Thank you for your kind words, stay safe, and have a wonderful rest of your week!

    Thread Starter wardcaswell

    (@wardcaswell)

    Unfortunately that didn’t do it. When I add additional domains on the google ReCaptcha admin console it gives me an additional site key which does not match the single one I can enter in the ReCaptcha v2 for Contact Form 7 settings.

    Plugin Author IQComputing

    (@iqcomputing)

    Hello,

    If you’re getting new reCaptcha keys each time you create a site then I’m afraid to say you’re doing so improperly for this scenario. Hopefully the below instructions can help:

    1) Log into your Google Admin Console.

    2) Browse to the API key that you have set for your website. If you have more than 1 reCaptcha in your Admin Console you may need to click the dropdown next to the “You have ‘x’ site(s)”.

    3) Once you’ve found your specific reCaptcha API, you’ll want to click the Settings gear icon at the top right. This will bring you to your API settings where you can grab your reCaptcha keys and add additional domains to the allow-list.

    4) On the Settings screen you should see a list of domains in an allow-list with an input box to enter additional domains. There should be a plus sign next to this input box. Enter your domain and click the plus sign.

    5) Finally, scroll to the bottom of the page and click the blue “Save” button. This will tell Google to apply your changes and may take up to 5 minutes to be put into place.

    This will tell Google to allow the same reCaptcha keys for multiple domains specified in this allow-list on the Settings page. For further help, we’ve created an Imgur Album of a few screenshots that may help you along your way:

    View post on imgur.com

    Hopefully with the above instructions you’ll be able to add in your additional domains to the allow-list. Should you need further assistance, we suggest reaching out to The Google G Suite Admin Support.

    Thread Starter wardcaswell

    (@wardcaswell)

    That did it! Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘ReCaptcha v2 with multiple domains’ is closed to new replies.