May 19, 2022

Embed reCAPTCHA error: ERROR for site owner: Invalid domain for site key

I built registration form including google reCAPTCHA for my Google Site on sendinblue.com. all the stuff is correct - domain registered to reCAPTCHA, keys added in to form etc.. But after adding html code into my site it still gives the error. After investigations and repeating overcontrolling those domain and keys stuff, their (sendinblue) technician checked my site, where reCAPTCHA is and told next:

"It seems the client is using some custom HTML code embed widget to add the HTML code on their site and the widget is injecting the entire HTML code under an iframe.
 
Please request the client to also register the domain of the source page where the HTML is getting hosted by the widget."

Google Domain service told me that everything with my domain registration is correct. So it looks like I need to add to reCAPTCHA some google own domain - which so-said handles those widgets..?
What I should do to get reCAPTCHA working?
Locked
Informational notification.
This question is locked and replying has been disabled.
Community content may not be verified or up-to-date. Learn more.
Recommended Answer
May 21, 2022
@TheArtefact
Thanks for replays!
You're welcome.
@Perjury & @Steegle
Isn't it strange that I can use...
In short, no: the sendinblue.com developers have told you that the reCAPTACH code will not work in the way Google Sites implements it, so no it's not strange it doesn't work when the developers have said it won't work the way Google Sites implements it.
@Steegle
I need form from Sendinblue for connected e-marketing account there - and I can without problem to use version without reCAPTCHA. Are you suggesting that google mailing system is strong enough to protect me from bots/spammers?
Have you tried to implement it and seen lots of bots/spammers?  I'm guessing that the bots/spammers can detect what kind of sign up form it is and not bother - have a go without the reCAPTCHA and if you find there's a problem then link to the form instead of embedding it in your Google Site as the developers have said it's not going to work in a Google Site.

Original Poster TheArtefact marked this as an answer
Helpful?
All Replies (9)
May 20, 2022
This is a help forum for the Google Sites product (a web site creation tool).
The site at https://www.sendinblue.com/ is not a Google Sites website
In order to contact the best experts to help you with your issue I suggest you look here for a more appropriate help forum:
May 20, 2022
Hello!
As much as I understand it is EXACTLY Google Site problem - everything is correct from Sendinblue and from Google reCaptcha. When you now try and take a look into my problem, you find out that technician from Sendinblue suggested to do something with domains or script in GOOGLE SITE (some kind of widgets coming from Google Site iframe scripting) - where my site is built. Constructive attention will be really welcome. Thank you!
May 20, 2022
This is a help forum for people building websites built using Google Sites website building tool at sites.google.com
The website I see at https://www.sendinblue.com/ was not built using the Google Sites website building tool.
May 20, 2022

Let me try again.
My website is built in Google Sites. It is here: https://www.the-artefact.art/
Next step is that I used registration form built in sendinblue - including Google reCAPTCHA. This is here: https://www.the-artefact.art/Contact
As you can see, reCAPTCHA window gives ERROR message. OF COURSE I asked already help from sendinblue. As they suggested I checked domains registrations in Google reCAPTCHA settings, and keys on there if these are right - and everything is right. And Google Domain Help told me that with my domain (the-artefact.art) is everything correct too.
THEN technician from sendinblue looked in to my contact page, where error occurs (given before) and told:

"It seems the client is using some custom HTML code embed widget to add the HTML code on their site and the widget is injecting the entire HTML code under an iframe.
 
Please request the client to also register the domain of the source page where the HTML is getting hosted by the widget."

So. With this, as much I understand, technician told that in Google Site is something making the problem. There is reference for that: https://recordit.co/aKeWwriKcf - it seems technician shows link like gstatic.com. I already tried to add it to reCAPTCHA settings, but this does not help. And it comes with Google Site. 

I hope I was now better with my bad english.
May 20, 2022
From your original post it appeared that you were talking about the website at https://www.sendinblue.com/ 

Thank you for clarifying that your Site is actually  https://www.the-artefact.art/ which I can see is a Google Site.

When you embed code in a Google Site is added by Google Sites in an iframe (see https://www.steegle.com/google-sites/how-to/insert-custom-code
"Sites displays the embedded code in an iframe so if the code tries to get the URL of the page it will get the iframe URL, not the site's page URL."

We do not have access to the html of the page so I'm not sure that you will be able to make the re-captcha code work on Google Sites.
May 20, 2022
@TheArtefact
It's simply not possible to get the reCAPTCHA code working in an Embed Code box on a Google Site as the EMbed Code is placed in a sandboxed iframe at a URL that is randomised and changes frequently.

I'm not sure what you're trying to achieve but you probably don't need a CAPTCHA for it: why not just use a Google Form and embed that instead?
May 20, 2022
Thanks for replays!

@Perjury & @Steegle
Isn't it strange that I can use in embed iframe reCAPTCHA demo page (fully copy/paste, for example) and everything works like a charm, and I get that demo reCAPTCHA box working even with some cut way, and I even get it to work using open keys from reCAPTHCA developers site, but in the moment I replace it with reCAPTCHA box with my keys it does not work..

@Steegle
I need form from Sendinblue for connected e-marketing account there - and I can without problem to use version without reCAPTCHA. Are you suggesting that google mailing system is strong enough to protect me from bots/spammers?
Recommended Answer
May 21, 2022
@TheArtefact
Thanks for replays!
You're welcome.
@Perjury & @Steegle
Isn't it strange that I can use...
In short, no: the sendinblue.com developers have told you that the reCAPTACH code will not work in the way Google Sites implements it, so no it's not strange it doesn't work when the developers have said it won't work the way Google Sites implements it.
@Steegle
I need form from Sendinblue for connected e-marketing account there - and I can without problem to use version without reCAPTCHA. Are you suggesting that google mailing system is strong enough to protect me from bots/spammers?
Have you tried to implement it and seen lots of bots/spammers?  I'm guessing that the bots/spammers can detect what kind of sign up form it is and not bother - have a go without the reCAPTCHA and if you find there's a problem then link to the form instead of embedding it in your Google Site as the developers have said it's not going to work in a Google Site.

Original Poster TheArtefact marked this as an answer
May 21, 2022
@Steegle

You are right - maybe I am too fearful. Just.. Owner of form suggested it too - strongly. Maybe it became my pointless obsession. I will try without reCAPTCHA and start working with problem, when it occurs.. :)

Thank you!
false
6364367555934838946
true
Search Help Center
true
true
true
true
true
70
false
false
Search
Clear search
Close search
Main menu