Error for site owner invalid key type как исправить

I can't get the Google reCAPTCHA to work on my Squarespace form. Site Key and Secret Key are both entered correctly. Both domains have been entered as well. Both Client Side integration codes have...

I can’t get the Google reCAPTCHA to work on my Squarespace form.
Site Key and Secret Key are both entered correctly. Both domains have been entered as well.

enter image description here

Both Client Side integration codes have been put into the pages’ Header

enter image description here

And even after waiting 30 or so minutes, and creating a new set of keys and going over the same process by replacing the old codes, I’m still stuck with this error message, even when accessing the page from another medium.

enter image description here

Link to the webpage: https://mydietgoal.com/contact-us

If anyone has any idea how to integrate V3.0 Captcha into Squarespace it would be really appreciated!

Community's user avatar

asked Nov 1, 2018 at 19:59

Christopher Karam's user avatar

Squarespace form blocks do not support reCAPTCHA V3.0 Site or Secret Keys at the moment. Must stick with V2.0 Keys for the time being.

answered Nov 1, 2018 at 22:44

Christopher Karam's user avatar

0

Downgrade to V2. For some reason. it works for me.

answered May 24, 2020 at 9:31

Disapamok's user avatar

1

Also, this error will occur if the version (V2 or V3) you have created on the Google reCAPTCHA admin page here is different than the one you specify in your CDN admin panel (such as WordPress, Squarespace, etc.).

Meaning, if you created a V2 reCAPTCHA in Google reCAPTCHA admin, the keys will be different than if you created a V3. Notice the version on left side. Thus, specifying V3 in the CDN (ie: WordPress) admin panel of a reCAPTCHA plugin on your site, like shown here , will give ‘key type’ error. Notice the version options below the keys. Version created in Google must match plugin settings.

answered May 6, 2019 at 17:24

Hunter Wiley's user avatar

Make sure your website would be on the same domain which is registered for reCaptcha, if your website is on testing server or any other domain for sure it will show you error.

answered Dec 23, 2019 at 7:43

Webperts.com's user avatar

Basically, the Error for Site owner: Invalid Key Type ReCaptcha error means that you are using the wrong key type on your V3 Type ReCaptcha. V2 Keys are not valid for V3 Type ReCaptcha and they aren’t interchangeable at all. Therefore, if you use the V3 ReCaptcha type on your website, you have to use the V3 Key and so on.

Error for site owner: invalid key type

Error for site owner: invalid key type

The Error for Site owner: Invalid Key Type error can be easily fixed by implementing the following solutions and you should go through them in a step-by-step manner and check which ones work for you. Also, you should read through the reasons due to which this error occurs in the first place.

What Causes the Error for site owner: invalid key type Issue with ReCaptcha?

After going through some troubleshooting guides, we concluded that the following are some of the major reasons behind the occurrence of this issue.

  • Using Wrong ReCaptcha Type: Basically, as we explained in the intro, ReCaptcha keys aren’t interchangeable which means that you cannot use a V2 Key Type for a ReCaptcha V3. Therefore, you can try to downgrade your ReCaptcha Key and check to see if that fixes your issue.
  • Domain name Issue: It is possible that you haven’t verified your domain name properly according to the one that you used while registering for Google ReCaptcha. Therefore, we implore you to do so by following the solution below.

Now that you have been made familiar with the two primary reasons behind this issue, we can finally move on towards implementing the solutions.

Fixing the error for site owner: invalid key type ReCaptcha v3 localhost issue:

Solution 1: Downgrade to ReCaptcha V2 Key

Most of the popular web frameworks do not support V3 keys for now so try to make use of V2 site keys instead. Delete the V3 keys, build up new V2 site keys, enter them into the Contact Form and then check to see if the ReCaptcha box appears up in your Contact Form. In order to revert back to ReCaptcha V2 keys follow up with these steps:

  1. Launch WordPress on your PC and navigate to the “Admin” area.
  2. Select “Contact Form 7” and “Integrations” respectively and from here remove the API keys you had configured previously.
  3. Now locate “Plugins” and click to select the “Add Plugin” option.
  4. Find “Invisible ReCaptcha For WordPress”, and afterward install and activate it.
  5. Now proceed to your ReCaptcha Admin account, choose “ReCaptcha v2 (Invisible)” and generate new keys.
    Regnerate new keys to fix error for site owner: invalid key type
    Regenerating new Keys
  6. Proceed with completing the full form and finally, you will receive both the keys i.e. Site key and Secret key.
    Website keys
    Website Keys
  7. Now copy the site key to the clipboard, open WordPress again and proceed to “Admin -> Settings -> Invisible ReCaptcha” respectively.
  8. In the Site Key field paste the site key you copied previously and go back again to copy the Secret key. Then paste the Secret key in the secret key field.
    Note: You can also specify the badge position at this stage. (The preferred setting is to keep it either bottom-left or inline).
    Adjust Badge Position
    Adjust Badge Position
  9. Choose the “Save” option and afterward, go to the “Contact Forms” tab and here checkmark the option of “Enable Protection For Contact Form 7” and hit the option of “Save Changes”.

Solution 2: Verify Google ReCaptcha Key Versions

This error may also arise if the Google ReCaptcha keys are incompatible with the ones you have specified on your CDN admin panel. If you have specified a V2 ReCaptcha version on your Google ReCaptcha admin page and a V3 key on the CDN admin panel it will most likely give you the key type error. So in order to avoid this error, you must verify beforehand that both key versions are identical to each other.

Solution 3: Validate Domain Name

It is necessary that you must verify if your website exists on the identical domain name as registered for ReCaptcha and is added in the domain section of the Google ReCaptcha page. Or in the other case if a mismatch of domains occurs or your website is currently placed on the testing server you will definitely struggle with this error message.

You can verify this by selecting “Plugins” first and then clicking on the “Settings” under the WP-ReCaptcha option. Here you need to enter both the site and secret keys and finally click on save ReCaptcha changes. Once the settings get saved then check to see whether the error for site owner: invalid key type ReCaptcha localhost problem gets eliminated now.

Solution 4: Edit the Database

If the settings are configured as such that the admins of the website also have to enable the captcha option to login into the website and now they are facing the same error message then you need to make certain changes in the database. You just need to disable this option but prior to that make sure that you have already made up a backup. Run the following command in the database to disable the captcha globally:

UPDATE tblconfiguration SET value = '' where setting = 'CaptchaSetting';

Solution 5: New Key Registration [WordPress]

It is quite probable that your ReCaptcha key isn’t valid anymore so you will need to register a new key. Follow these steps to do so:

  1. Register a new ReCaptcha key from here.
  2. To create a new key press the “Plus (+)” icon.
  3. Now fill in the complete specifications including the Label, Recaptcha type, Domain, and Owner.
    Fill the specifications
    Filling in the Specifications
  4. Now accept the “ReCaptcha Terms Of Services” and click on the “Submit” button.
  5. A new site and secret key will become visible to you now so, place both of these in the plugin settings.
  6. Finally, revisit your ex login page where ReCaptcha is implemented and check to see if you have been able to resolve the error successfully.

Solution 6: Contact Support

If you still aren’t able to resolve the issue then you must contact the ReCaptcha help center. Wait for some time until you receive your reply and check to see if the problem got fixed now.

Follow the above-listed fixes thoroughly to get through this error successfully but if the issue still persists then you may Contact Us and we will further look into the problem for you.

Google ReCaptcha Error for Site owner: Invalid Key Type

Many users said that they often see the ReCaptcha is not working on their web browser and showing Error For Site Owner: Invalid Key Type if you’re one of them and facing the same trouble then this article is for you.

Many users mentioned that this verification system doesn’t work for someone with disabilities. Whereas for some users it takes a lot of time if they have a lot of work every day, and due to this their works get slowed down by distorted image that is difficult to read.

Luckily, many users have managed to fix Google ReCaptcha Error for Site owner: Invalid Key Type by having control on their website’s cPanel and File Manager. 

If in case, it doesn’t work for you then follow the other possible solutions that worked for several other users to get past the error.

But before directly moving to the solutions it is very important to know what is causing the error.

Well, there is no exact reason that causes the error, but after investigating we found out some of the very common culprits that trigger the error.

  • When your ReCaptcha Site Key and the ReCaptcha Secret Key doesn’t match.
  • It is also possible if you haven’t verified your domain name exactly according to the one that you used while registering for Google Recaptcha.
  • This mostly takes place when WHMCS is migrated to a different domain name or subdomain.
  • When you don’t enter the email associated with the site to set up the ReCaptcha.

Now that you’re familiar with the reasons for the error, here find out the solutions that worked for many users to solve the error.

How Do I Fix “Google ReCaptcha Error for Site owner: Invalid Key Type”?

Solution 1 – Preliminary Fixes

Before starting with the below given tricky solutions here it is suggested to follow the quick tweaks as this may work for you to solve the internal glitches that cause the error.

1: Update your Google Chrome – Check for the latest updates available and update your browser.

  • Click on the three-dot menu and then launch google chrome
  • Now, click on the Help and then on the About Chrome option

update chromebook

  • Then it will search for updates automatically and install it

2: Disable PROXY & VPN service – The error generally occurs to the users who are connected via a VPN or Proxy. So in this case try disabling the proxy and VPN connection.

3: Scan your Malware & Virus Infection – If your system is infected with a virus or malware infection then this might be the reason for showing the Google ReCaptcha error. So scan your system with a good antivirus program to scan and remove the virus infection. Try using the SpyHunter tool, this performs a deep scan of your system and remove the notorious virus as well as malware infection

4: Reset your Browser – There is a possibility that some of your browser settings are causing the problem, so make sure to reset your current browser to its default settings.

Solution 2 – Downgrade To V2 Key Recaptcha

There is a possibility that the web framework won’t support the V3 keys so downgrading to the V2 keys after that delete the V3 keys then build the latest V2 keys.

 Here follow the steps to do so: 

  • Launch WordPress on your PC and move to the Admin area
  • Select Contact Form 7 and Integrations and then remove the API keys that you have configured previously
  • Now locate plugins and select the add plugins option
  • Find invisible Recaptcha for word press and then install as well as activate it
  • Go to the ReCaptcha Admin account, then select the option “ReCaptcha v2 (Invisible)” and create new keys.

Error for Site owner: Invalid Key Type

  • Fill the form and you’ll see both the keys i.e Site Key and Secret Key

Error for Site owner: Invalid Key Type

  • Copy the site key to the clipboard, open WordPress and then press Admin->Settings->Invisible Recaptcha
  • Go back and copy the Secret key then paste the Secret Key in the secret key field.

Error for Site owner: Invalid Key Type

  • Choose the save option then go to the Contact Forums and enable the protection for Contact Form 7 and then tap on “Save Changes” 

Solution 3 – Generate New Registration Key (WordPress)

  • Register a new Recaptcha key
  • For creating a new keypress on the Plus(+) icon
  • Now fill in the blank spaces including Label, Recaptcha Type, Domain and Owner

Error for Site owner: Invalid Key Type

  • Now accept the terms and conditions and then click on Submit
  • A new site and the secret key will be visible to you. Place them accordingly in the Plugin Settings.
  • Lastly, go back to the previously login page and check if the issue is solved successfully.

Solution 4 – Ensure that your Site is Added to the Domain Section of the Google Recaptcha page

  • Be confirmed that you have put the correct domain on the ReCaptcha page.
  • The domain should be without HTTP:// or https://. For example, Google.com
  • Regenerate the api keys and update them in integration
  • Double-check if you’re using ‘Site Key’ and ‘Secret Key’ below the Google re-captcha settings.
  • Also, keep in mind that both the Site Key and the Secret Key look very similar so it has many chances for you to make the mistake.

Solution 5 – Go to the cPanel of your Website

  • Open the file manager of your website, once you’re on the cPanel of your website.
  • Select the public_html
  • And then click on wp_content
  • Then select Plugins
  • Check all the files present in the folder
  • After that, select login
  • Now go back to the WordPress login page and check if the error is being solved or not
  • And you can log in to your website’s Dashboard now.

Hope this works for you but if not then head to the next potential solution.

Solution 6 – Add Site to Google Recaptcha and Reinstall the Plugin

If the above-listed solutions won’t work for you to fix  Google Recaptcha error for the site owner: invalid key type, then try the below-given steps.

  • Login to your WordPress Dashboard you’ll get a notification that your files have been deleted from the login Captcha Plugin it will ask you to re-install the plugin again.
  • Search for login No Captcha reCaptcha
  • Click on install now

Nevertheless, if the above mentioned solutions won’t work for you then contact the support centre.

Solution 7 – Contact Support Centre

Well, if none of the above-listed solutions works for you to solve the error then the only option left is to contact the ReCaptcha Support Center.

And let them know your problem, wait for their reply and check if got help is fixing the error.

Check your Windows PC/Laptop Health

If your Windows PC is running slow, crashing or freezing then scanning your system with the PC Repair Tool will help you to fix various computer problems.

This is a multifunctional tool that just by scanning once detect and fix various PC problems, optimize system resources, prevent file loss, and remove virus and malware and much more.

With this, you can also fix various PC errors like BSOD errors, DLL errors, registry errors and many others. It keeps an eye on the system hardware and optimizes the system performance like a new one.

Get PC Repair Tool, to Keep Your PC Healthy

Final Words:

So, this is all about the Error for site: Invalid Key Type.

Try the solutions listed one by one till you find the one that works for you to get past the Google ReCaptcha error.

It is estimated that one of our solutions managed to fix the error.

Hope the article works for you but if there is anything that I missed out then connect with us on our Facebook Page.

Good Luck..!

Hardeep Kaur

Hardeep has always been a Windows lover ever since she got her hands on her first Windows XP PC. She has always been enthusiastic about technological stuff, especially Artificial Intelligence (AI) computing. Before joining PC Error Fix, she worked as a freelancer and worked on numerous technical projects.

  • MiniTool

  • MiniTool News Center

  • How to Fix the “Error for Site Owner: Invalid Key Type” Issue

By Daisy | Follow |
Last Updated April 25, 2021

google search

When you set the Google Recaptcha key in WordPress, the «Website owner error: Invalid key type» issue may appear. If you want to find some solutions, this post is what you need. This post from MiniTool provides a full guide for you.

Sometimes, you may encounter the “error for site owner: invalid key type” issue. What causes this issue? There are 2 main reasons — the wrong ReCaptcha type and the domain name problem. Next, let’s see how to fix the “error for site owner: invalid domain for site key” issue.

Also see: Fixed: Google Chrome ReCAPTCHA Not Working (2021 Update)

Fix 1: Downgrade to ReCaptcha V2 Key

Most popular web frameworks currently do not support V3 keys, so the first method for you to fix the “error for site owner: invalid key type” issue is to downgrade to the Recaptcha V2 key. Now, let’s see how to do that:

Step 1: Launch WordPress and navigate to the Manage part.

Step 2: Select Contact Form 7 and Integrations, then, remove the API keys.

Step 3: Next, click Plugins to select the Add Plugin option.

Step 4: Find Invisible ReCaptcha For WordPress, and then install and activate it.

Step 5: Now, go to the ReCaptcha Admin account, choose ReCaptcha v2 (Invisible) and generate new keys. Then, you will receive the site key and secret key when you finish the form.

Step 6: Copy the site key to the clipboard, open WordPress again, and go to Admin -> Settings -> Invisible ReCaptcha.

Step 7: In the Site Key field, paste the site key you copied earlier, and then go back again to copy the Secret Key. Then paste the secret key into the secret key field.

Step 8: Select the Save option, then go to the Contact Form tab, then check the Enable Protection for Contact Form 7 option here, and then click the Save Changes option.

Fix 2: Verify Domain Name

You should make sure that your website exists and is the same as the domain name registered for ReCaptcha, and whether it has been added to the domain name section of the Google ReCaptcha page.

You can verify by first selecting Plugins and then clicking Settings under WP-ReCaptcha options. Here, you need to enter the site key and secret key, and finally click Save ReCaptcha changes.

Fix 3: Edit the Database

If the configuration is set so that the site administrator must also enable the verification code option to log in to the site, and now they encounter the same error message, then you need to make some changes in the database.

You only need to disable this option, but before doing so, make sure you have composed a backup. Run the following command in the database to globally disable the verification code: Update tblconfiguration SET value =» where setting =’CaptchaSetting’; 

Then, check if the “error for site owner: invalid domain for site key” issue has gone.

If all of the solutions are not working, you should try to contact support. Wait for a while until you receive your reply, and then follow the guide given by the support. At last, check if the “error for site owner: invalid key type” problem is resolved.

Final Words

After reading this post, you should know how to fix the error for site owner invalid key type. If you encounter some related issues, you can let us know in the comments. We will reply to you as soon as possible.

About The Author

Daisy

Position: Columnist

She was graduated from the major in English. She has been the MiniTool editor since she was graduated from university. She specializes in writing articles about backing up data & systems, cloning disks, and syncing files, etc. She is also good at writing articles about computer knowledge and computer issues. In daily life, she likes running and going to the amusement park with friends to play some exciting items.

Содержание

  1. Ошибка неверный домен ключа recaptcha как исправить joomla
  2. reCAPTCHA ERROR: Неверный домен для ключа сайта
  3. 17 ответов
  4. Joomla 3.8.1 и CAPTCHA — reCAPTCHA v2 — Joomla 3.x: Установка, обновление и настройка
  5. reCAPTCHA ERROR: Invalid domain for site key
  6. 17 Answers 17
  7. How to Fix “Error for Site Owner Invalid Domain for Site Key”
  8. Published by Anjum on October 23, 2020 October 23, 2020
  9. ERROR FOR SITE OWNER: INVALID DOMAIN FOR SITE KEY
  10. HOW TO FIX THE ERROR “ERROR FOR SITE OWNER: INVALID DOMAIN FOR SITE KEY” ON WORDPRESS LOGIN PAGE
  11. 1- GO TO CPANEL OF YOUR WEBSITE AND OPEN FILE MANAGER TO MAKE CHANGES
  12. 2- ADD SITE TO GOOGLE RECAPTCHA AND RE-INSTALL THE PLUGIN
  13. CONCLUSION

Ошибка неверный домен ключа recaptcha как исправить joomla

reCAPTCHA ERROR: Неверный домен для ключа сайта

Я реализовал свою reCAPTCHA в соответствии с тем, что показано в примере.

У меня есть этот сценарий в теге head :

В моем form в HTML у меня есть:

Но когда я загружаю form , я получаю такую ​​ошибку:

ОШИБКА: неверный домен для ключа сайта

Я подтвердил, что это правильный ключ сайта для моего домена.

Код в настоящее время находится в поддомене, поэтому я подумал, что, возможно, это проблема, поэтому я также добавил поддомен в администратор Google reCAPTCHA, но все равно получаю сообщение об ошибке.

Тот же самый код на 100% работает в другом домене (с ключом, специфичным для этого домена).
В чем может быть проблема?

17 ответов

На случай, если у кого-то есть подобная проблема. Мое решение состояло в том, чтобы удалить ключ, который не работал, и получить новый ключ для моего домена. И это теперь работает со всеми моими поддоменами, без необходимости явно указывать их в области администрирования recaptcha.

У меня была аналогичная проблема из-за того, что я забыл показать параметр рендеринга

Моя область была довольно сложной. Я взял значение, возвращаемое window.location.host в консоли разработчика, и вставил это значение в белый список администратора recaptcha. Затем я очистил кеш и перезагрузил страницу.

У меня были такие же проблемы. Я решил это: зашел на https://www.google.com/recaptcha/admin , щелкнул домен, а затем перешел к ключевым настройкам внизу.

Там я отключил опцию ниже «Проверка имени домена» Проверить происхождение решения reCAPTCHA.

Нажал сохранить и капча заработала.

Я пробовал это почти 4 часа и, наконец, разобравшись с этим под руководством отсюда, я подумал, что поделюсь с вами своим решением.

Итак, мой домен — это дополнительный домен. Я также получил сообщение «ОШИБКА для владельца сайта: недействительный домен для ключа сайта». Я проверил, что все было правильно, почти тысячу раз, и мне это показалось правильным, пока я не подумал об этом с точки зрения ярлыка на рабочем столе.

Решение:

Поэтому для дополнительного домена убедитесь, что родительский URL-адрес также находится в списке доменов, например: [ДОБАВИТЬ ДОМЕН]. [РОДИТЕЛЬСКИЙ ДОМЕН] .com. Местоположение надстройки будет папкой, которую вы установили на своем хосте, поэтому при использовании дополнительных доменов убедитесь, что корень имеет логичное имя.

Надеюсь, это поможет кому-то другому, и спасибо за предложения людям.

Что касается меня, я просто забыл ввести фактическое доменное имя в области «Основные настройки», где написано «Домены» (по одному в каждой строке).

Попробуйте добавить домены без http:// и https:// , например example.com

Я также столкнулся с этой проблемой, и моим решением было проверить, что я интегрирую соответствующий клиентский код для выбранной мной версии.

В моем случае я выбрал reCAPTCHA v3, но использовал код интеграции клиента для v2.

V3 выглядит так:

Код V2 выглядит так:

Что касается того, какая у вас версия, это будет то, что вы решили в начале настройки учетной записи reCAPTCHA.

Убедитесь, что вы указали свое доменное имя, и оно не должно заканчиваться путем.

Перед повторным созданием ключей, которые решают проблему на 90%, необходимо отметить еще один момент.

Например, ваш каталог xampp — C: xampp

А папка htdocs — это C: xampp htdocs

Мы хотим открыть страницу с именем: example-cap.html, и на странице отображается ошибка «недопустимый домен для ключа сайта»

ИСПОЛЬЗУЙТЕ СВОЙ ЛОКАЛЬНЫЙ АДРЕС в адресе браузера, например:

Это решит вашу проблему

НЕ ИСПОЛЬЗУЙТЕ АДРЕС c: xampp htdocs example-cap.html, это приведет к ошибке

Возможно, вы случайно использовали закрытый ключ в качестве открытого ключа.

Я использовал localhost во время модульного тестирования, когда мой ключ recaptcha был зарегистрирован на 127.0.0.1. Поэтому я изменил свой браузер на 127.0.0.1, и он начал работать. Хотя мне удалось добавить «localhost» в список доменов в моих настройках ключа ReCaptcha, я все еще не могу выполнить модульное тестирование с использованием localhost. Мне нужно использовать IP-адрес обратной петли 127.0.0.1.

Думаю, самый быстрый способ — просто отключить проверку домена, пока вы его разрабатываете.

У меня были те же проблемы, что и я решил. Я зашел на страницу https://www.google.com/recaptcha/admin и щелкнул домен, а затем перешел к ключевым настройкам внизу.

Там я отключил опцию ниже Проверка доменного имени Проверьте источник решения reCAPTCHA

Нажал на сохранение и капча заработала.

Я думаю, это связано со способом настройки сервера. Я использую общий хостинг, и меня просто без уведомления перевели с Liquidweb на Deluxehosting (так как первый продал свой общий хостинг второму), и у меня возникли такие проблемы со многими проблемами. Я думаю, что в этом случае Google проверяет сервер, но он идентифицируется как имя общего сервера, а не как мой домен. Когда я снимаю флажок «Проверить происхождение», он начинает работать. Надеюсь, это поможет решить проблему на данный момент.

Не нужно создавать новый ключ, просто очистите данные сайта в браузере

Если вы измените домен своего сайта, добавьте этот домен к существующему ключу (создавать новый ключ не обязательно) и сохраните его.

Но у Google recapture есть некоторые данные о браузере. Очистите их, тогда он будет работать с вашим новым доменом

Прежде всего, управление ключами осуществляется на странице https://www.google.com/recaptcha/admin#. список

Я столкнулся с этой ошибкой, потому что я использую один и тот же ключ в нескольких разных доменах, и я забыл добавить один из доменов к ключу.

После добавления моего сайта потребовалась минута или две (скорее всего, из-за кеша), чтобы все снова заработало нормально.

Вы должны установить свой домен, например: www.abi.wapka.mobi , то есть если вы используете сайт wapka.

Обратите внимание, что если у вас есть домен с wapka, он не будет работать, поэтому сравните wapka с вашим провайдером сайта и отправьте текстовое сообщение.

Joomla 3.8.1 и CAPTCHA — reCAPTCHA v2 — Joomla 3.x: Установка, обновление и настройка

Бесплатный плагин вставки модулей Joomla в JoomShopping. Нередко, при разработке интернет-магазина на Joomla JoomShopping бывает нужно вывести информацию из модулей Joomla в карточке товара или в категории. Обычно это делается программным методом прямо в шаблоне магазина.

Вышел релиз Joomla 4.1.4

Доступна к загрузке Joomla 4.1.4. Это релиз с исправлениями ошибок и улучшениями для серий Joomla 4.0.x.

Сбор средств для помощи нашему камраду voland’у

Сообщество Joomla!, объявляется сбор средств для помощи нашему камраду Болотову Сергею, на форуме — voland, создатель бота Ванга, повелитель минусов на форуме )).

reCAPTCHA ERROR: Invalid domain for site key

I have implemented my reCAPTCHA in line with as is shown in the example.

I have this script in the head tag:

In my form in HTML I have:

But when I load the form I get this error:

ERROR: Invalid domain for site key

I have confirmed that this is the correct site key for my domain.

The code is currently in a subdomain so I thought maybe that was the problem so I also added the subdomain to the Google reCAPTCHA admin but still get the error.

The exact same code works 100% in a different domain (with a key specific to that domain).
What could be the problem?

17 Answers 17

In case someone has a similar issue. My resolution was to delete the key that was not working and got a new key for my domain. And this now works with all my sub-domains as well without having to explicitly specify them in the recaptcha admin area.

I ran into this error because I’m using the same key on a few different domains and I had forgotten to add one of the domains to the key.

After adding my site it took a minute or two (most likely because of cache) for things to work normally again.

I had the same problems I solved it. I went to https://www.google.com/recaptcha/admin and clicked on the domain and then went to key settings at the bottom.

There I disabled the the option below Domain Name Validation Verify the origin of reCAPTCHA solution

clicked on save and captcha started working.

I think this has to do with way the server is setup. I am on a shared hosting and just was transferred without notice from Liquidweb to Deluxehosting(as the former sold their share hosting to the latter) and have been having such problems with many issues. I think in this case google is checking the server but it is identifying as shared server name and not my domain. When i uncheck the «verify origin» it starts working. Hope this helps solve the problem for the time being.

Источник

How to Fix “Error for Site Owner Invalid Domain for Site Key”

Published by Anjum on October 23, 2020 October 23, 2020

HOW TO FIX THE ERROR “ERROR FOR SITE OWNER: INVALID DOMAIN FOR SITE KEY” ON WORDPRESS LOGIN PAGE

Last Updated on May 10, 2021 by Anjum

Getting Errors and finding their solutions is a regular thing for every Website Owner”

You should not be surprised if you are facing errors as it is part of operating a website. Some Errors are easier to fix and won’t take much time and effort but there are others that are hard to resolve and you will need a lot of research and hard work to overcome them and fix them.

One such error that bugs a few Site Owners is the “Error for Site Owner: Invalid Domain for Site Key”. This error is first seen when you are trying to login to your WordPress Dashboard.

No matter what you do you will not be able to login from that page as long as the error is still there. You need to remove the error first in order to get back your site’s Dashboard. In order to fix the error you need to understand why this error occurred in the first place

ERROR FOR SITE OWNER: INVALID DOMAIN FOR SITE KEY

The error basically is an error in the Login NoCaptcha Plugin. This error occurs when the reCAPTCHA Site Key and Secret Key don’t match with the ones provided to you on your Google reCAPTCHA account page. The reason could be anything.

For me the reason was that I cloned and duplicated my website and transferred it to a new domain but I didn’t change the Site Key and the Secret Key on my Login NoCaptcha plugin on my new website nor did I add the new domain to my Google reCaptcha page. Hence when I tried to login to the dashboard of my new domain, I got the error “Error for Site Owner: Invalid Domain for Site Key”.

No matter what I did, I just couldn’t get to the Dashboard of my website. I knew that I needed to make some changes from the outside to get back control of my site. Here’s how to fix the error “Error for Site Owner: Invalid Domain for Site Key”.

HOW TO FIX THE ERROR “ERROR FOR SITE OWNER: INVALID DOMAIN FOR SITE KEY” ON WORDPRESS LOGIN PAGE

Fixing this error is not very tricky if you have control of your website’s cPanel and File Manager. Follow these steps to fix the problem once and for all:

1- GO TO CPANEL OF YOUR WEBSITE AND OPEN FILE MANAGER TO MAKE CHANGES

  • Start by going to the cPanel of your Website.
  • Once you are on your cPanel account, open the File Manager of your Website.
  • Select the Public_html folder.
  • Click on wp_content.

Click on wp-content to see the contents of the folder

  • Select Plugins.
  • Check all the Files in that Folder
  • Delete the Files in the login-recaptc Folder
  • Go back to the WordPress Login Page now and check that the error is fixed for now and you can login to your Website’s Dashboard.

The error is now fixed because you have deleted the login noCaptcha plugin but it has now created a new problem as now your website doesn’t have the security to keep the hacking attempts at bay. Your website is vulnerable to security threats if you don’t have the login noCaptcha installed.

In order to make your website secure again, follow the step 2.

2- ADD SITE TO GOOGLE RECAPTCHA AND RE-INSTALL THE PLUGIN

After going through the above steps to fix the error “Error for Site Owner: Invalid Domain for Site Key”. You need to make your website secure again. Here’s how you can do that:

  • Once you have fixed the error, the first time you will login to your WordPress Dashboard you will get the notification that because there are no files in the login noCaptcha plugin hence it has been deleted. You need to re-install the plugin again. Go to Plugins in your Dashboard and Click on Add New.
  • Search for “Login No Captcha reCAPTCHA”.
  • Select the one as shown in the picture and click on Install Now. After it is installed click on Activate to activate the plugin.
  • Now go to Settings on your Dashboard and then Login noCaptcha.
  • Click on the Link to Create the Site Key and Security Key for this website. Alternatively you can click here to get to the Google reCaptcha website.
  • Once on the Google reCaptcha Website, click on Admin Console if you are not already logged in. You will need to login from your google account to proceed further.
  • For me one of my website was already using the Google reCaptcha so I just had to add another site. For new users the procedure is almost the same. Click on the + sign to register a new website and Fill out the Form.
  • You can choose the recaptcha v2 or v3, its up to you. Add the domain and click Submit.
  • On the next screen, you will see the Site Key and Security key for your new website. Copy the Keys one by one and paste them into your website’s plugin settings of login noCaptcha.
  • After clicking Save Changes, If everything is correct, you will see that the Example at the bottom of the page will change and will be as it should be.

That’s it! The error “Error for Site Owner: Invalid Domain for Site Key” is fixed and your website is secured with the Google reCaptcha security protocols.

CONCLUSION

As mentioned in the error itself that the site key entered in the plugin is invalid for the domain that it is associated with. The problem that I faced and many people faced is that at the sight of an error we tend to panic and once I found out that I couldn’t login to my website’s dashboard the tension peaked.

The first thing one should do when faced with any error is not to panic but do some research and try to understand why that particular error is showing up. After understanding the cause of the error then look for its solution and hopefully every error will be fixed with little effort and in no time.

Same happened here with me and once I got to understand why the error was coming, I was able to figure out the solution and apply it to resolve the error once and for all.

Let us know in comments if the solution has worked for you.

DISCLAIMER : The procedure mentioned here is what worked for me. It might or might not work for you. I have tried to simplify it with step by step instructions with screenshots so that everyone on the same boat can benefit from it. I sincerely hope it works for you.

Follow us on Instagram and Twitter .

Share the Article on Social Media for your friends to benefit:

Happy Reading!

This post was on How to Fix “Error for Site Owner: Invalid Domain for Site Key” on WordPress Login Page.

Read Other Popular Posts on Infinity Folder

Источник

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Error code 3 premier pro
  • Error for site owner invalid domain for site key что делать
  • Error code 2s129 1
  • Error for site owner invalid domain for site key recaptcha перевод
  • Error code 2fd7b735 nba 2k19

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии