Skip to main content
All CollectionsGeneral WordPress
Google ReCAPTCHA - Invalid Domain for Site Key Error
Google ReCAPTCHA - Invalid Domain for Site Key Error

How to fix Invalid domain for site key when using Google Recaptcha

Justin Catello avatar
Written by Justin Catello
Updated over a week ago

This article is being created with our WPO customers in mind who have issues with Google ReCAPTCHA on their staging site. However, it can be applied for just about any site that is using Google ReCAPTCHA.

If you are using Google ReCAPTCHA on your live site and create a staging site, your URL will change in which when you go to log into your staging site, you might now notice the inability to login due to "Invalid domain for site key" error:

Have no fear! There is an easy fix for this.

Step #1:

After logging in, if you have more than one domain using ReCAPTCHA you may need to select it from the dropdown box at the top:

Step #2:

Select the correct domain, on the right side, click the cogwheel:

Step #3:

Scroll down to the Domains section, you should already see your live domain under this list and have the ability to add a new domain, which you would enter in the full URL of your staging site, example:

Step #4:

Click the + sign to apply this, and finally scroll down and click Save.
โ€‹

If you now go back to your staging site and refresh, you will see you can now once again log into your WordPress admin panel!


If you are still having problems please feel free to click the live chat and we will be more than happy to assist you further!

Did this answer your question?