The ERROR for site owner: Invalid domain for site key means “your site key is no longer valid”. The error is related to the Google reCAPTCHA service.
Website owners commonly use this service to prevent bots and automated software from interacting with their sites. When you see this error, it generally means that the website’s reCAPTCHA setup is not configured correctly.
Causes of the error
- Incorrect domain: The site key in reCAPTCHA is tied to specific domains. This error will occur if the site key is used on a domain not specified in the reCAPTCHA settings.
- Incorrect site key: If the site key has been incorrectly copied or there’s a typo, it will not match the key stored in the reCAPTCHA system, leading to this error.
- Changes to domain or site key: The update might be delayed if the domain or site key in the reCAPTCHA settings has been recently changed. This can cause an error until the change is fully propagated.
If you are the site owner, double-check your reCAPTCHA settings.
Ensure the site key is correctly copied into your website’s code and that all the domains where the key will be used are correctly listed in the reCAPTCHA settings.
If everything seems fine and you’re still encountering this error, you may want to consider generating a new site key.
How to fix the error
-
Go to the Google reCAPTCHA admin panel.
- Choose the desired site for which the reCAPTCHA is set up.
- Ensure the correct domain(s) are added in the “Domains” section. If the domain where you’re using the reCAPTCHA is missing or incorrect, add or correct it.
- Save the changes.
-
Ensure that your website’s site key matches the key displayed in the reCAPTCHA admin panel for your chosen site.
That’s it.