Error for site owner 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:

<script src="https://www.google.com/recaptcha/api.js"></script>

In my form in HTML I have:

<div class="g-recaptcha" data-sitekey="my public sitekey here"></div>

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?

brasofilo's user avatar

brasofilo

25.3k15 gold badges91 silver badges178 bronze badges

asked Jun 9, 2015 at 14:56

BlessedHIT's user avatar

1

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.

answered Jun 9, 2015 at 17:45

BlessedHIT's user avatar

BlessedHITBlessedHIT

1,8391 gold badge14 silver badges21 bronze badges

4

First of all, the keys are managed at https://www.google.com/recaptcha/admin#list

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.

answered Aug 4, 2016 at 14:32

the's user avatar

thethe

20.8k11 gold badges68 silver badges101 bronze badges

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.

answered Oct 27, 2016 at 12:00

rawraj's user avatar

rawrajrawraj

4314 silver badges8 bronze badges

1

No need to create a new key just clear site data on browser

If you change your site domain then add that domain to existing key (it’s not necessary to a create new one) and save it.

https://www.google.com/recaptcha/admin#list

but google recapture has some data on browser. Clear them then it will work with your new domain
enter image description here

answered Oct 1, 2016 at 1:51

Alupotha's user avatar

AlupothaAlupotha

9,6404 gold badges47 silver badges48 bronze badges

0

I guess the quickest way is just to disable the domain check while you’re developing it
enter image description here

answered Mar 27, 2018 at 16:33

hugronaphor's user avatar

hugronaphorhugronaphor

9388 silver badges23 bronze badges

0

I was using localhost during unit testing when my recaptcha key was registered to 127.0.0.1. So I changed my browser to point to 127.0.0.1 and it started working. Although I was able to add “localhost” to the list of domains in my ReCaptcha Key Settings, I am still unable to unit test using localhost. I have to use the loopback IP address 127.0.0.1.

answered Oct 30, 2015 at 19:02

ttemple's user avatar

ttemplettemple

1,7192 gold badges16 silver badges12 bronze badges

You may have inadvertently used a private key for a public key.

answered May 2, 2016 at 3:47

sanmai's user avatar

sanmaisanmai

28.5k12 gold badges63 silver badges74 bronze badges

1

There is another point must be noted before regenerating keys that resolve 90% issue.

for example your xampp directory is C:xampp
and htdocs folder is C:xampphtdocs

we want to open page called: example-cap.html
and page is showing error:

invalid domain for site key

Use your localhost address in browser address like:

localhost/example-cap.html

this will resolve your issue

Do not use address c:xampphtdocsexample-cap.html
this will generate error

shA.t's user avatar

shA.t

16.5k5 gold badges54 silver badges111 bronze badges

answered Apr 5, 2016 at 15:51

DharmendraSankhla's user avatar

I ran into this issue also and my solution was to verify I was integrating the appropriate client code for the version I had selected.

In my case, I had selected reCAPTCHA v3 but was taking client integration code for v2.

V3 looks like this:

<script src="https://www.google.com/recaptcha/api.js?render=reCAPTCHA_site_key"></script>
<script>
  grecaptcha.ready(function() {
      grecaptcha.execute('reCAPTCHA_site_key', {action: 'homepage'}).then(function(token) {
         ...
      });
  });
</script>

V2 code looks like this:

<html>
  <head>
    <title>reCAPTCHA demo: Simple page</title>
     <script src="https://www.google.com/recaptcha/api.js" async defer></script>
  </head>
  <body>
    <form action="?" method="POST">
      <div class="g-recaptcha" data-sitekey="your_site_key"></div>
      <br/>
      <input type="submit" value="Submit">
    </form>
  </body>
</html>

As for which version you have, this will be what you decided at the start of your reCAPTCHA account setup.
enter image description here

answered Jan 16, 2019 at 19:58

kylestephens's user avatar

1

Try to add domains without http:// and https:// e.g. example.com

Theblockbuster1's user avatar

answered Feb 19, 2019 at 9:35

Nangyial Ahmad's user avatar

For me, I had simply forgotten to enter the actual domain name in the “Key Settings” area where it says Domains (one per line).

answered Jul 15, 2017 at 20:04

Kirk Ross's user avatar

Kirk RossKirk Ross

6,17913 gold badges58 silver badges99 bronze badges

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

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

Clicked on save and captcha started working.

ascripter's user avatar

ascripter

5,52512 gold badges45 silver badges67 bronze badges

answered Feb 13, 2019 at 11:27

SWQA's user avatar

0

You should set your domain for example: www.abi.wapka.mobi, that is if you are using a wapka site.

Note that if you had a domain with wapka it won’t work, so compare wapka with your site provider and text it.

Shree Krishna's user avatar

answered May 22, 2016 at 4:55

swixz's user avatar

swixzswixz

111 bronze badge

I tried for almost 4 Hours with this and finally figuring it out with guidance from here, I thought I would share my solution with you.

Ok so my domain is an addon domain. I also got “ERROR for site owner: Invalid domain for site key” I had checked that everything was correct almost a thousand times and it looked right to me, until I thought of it in terms of a desktop shortcut.

Solution:

So for an addon domain make sure that the parent url is also in the list of domains i.e:
[ADDON DOMAIN].[PARENT DOMAIN].com .
The addon location will be the folder that you set on your host so when using addon domains ensure to name the root with something logical.

Hope this helps someone else and thanks for the suggestions people.

Naeem Ul Wahhab's user avatar

answered Jul 23, 2017 at 8:20

Dean De Klerk's user avatar

My domain was quite complex. I took the value returned by window.location.host in the developer console and pasted that value in the recaptcha admin white list. Then I cleared the cache and reloaded the page.

answered Feb 27, 2019 at 11:41

Souradeep Nanda's user avatar

Souradeep NandaSouradeep Nanda

3,0962 gold badges30 silver badges44 bronze badges

I had a similar problem due to the fact that I forgot to show the render parameter

<script src='https://www.google.com/recaptcha/api.js?render=SITE_KEY' async defer></script>

answered Nov 22, 2018 at 12:16

Arseniy's user avatar

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


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

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”.


Also Read: How to watch Videos not available in your Country from anywhere

Popular Read: Beginner’s Guide on Why and How to Shop from Amazon


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.

Go to File Manager and Select your Website Public_html folder - Error for Site Owner Invalid Domain for Site Key

Go to File Manager of your website and Select Public_html folder to view its contents

  • Click on wp_content.

Click on wp-content

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

  • Select Plugins.

Click on Plugins - Error for Site Owner Invalid Domain for Site Key

After Selecting wp-content click on Plugins

  • Select login-recaptc

Select login-recaptc Folder

Select login-recaptc Folder

  • Check all the Files in that Folder

Folder Contents - Login-recaptc

Folder Contents of Login-recaptc Folder

  • Delete the Files in the login-recaptc Folder

Delete the Files in the Folder - Error for Site Owner Invalid Domain for Site Key

Select all and Delete the Files in the 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.

No Captcha required now - Note that No Error for Site Owner Invalid Domain for Site Key

Go to your WordPress Login screen. No Captcha required now to Login to your 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.


Popular Read: Beginner’s Guide on Why and How to Shop from AliExpress


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.

Install the Plugin

Install the Login No Captcha reCAPTCHA Plugin

  • Now go to Settings on your Dashboard and then Login noCaptcha.

Go to Settings and then Login NoCaptcha

Go to Settings 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.

Click on the Link to create Security Keys

Click on the Link to create Security Keys

  • 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.

Google Recaptcha Add Site Screen

Select the Version and add your Site’s Domain and click submit on Google Recaptcha Add Site Screen

  • 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.

Copy the Keys

Copy the Keys one by one

Copy the keys and paste them here and hit save

Paste the Keys here and hit save
  • 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.

Example will change into this

Example will change into this

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.


Final Login - No Error for Site Owner Invalid Domain for Site Key

Final Login

Also Read: How to Submit a Website to Baidu Webmaster Tools

Related: How to Create a Baidu Account from Outside China without Chinese Phone Number


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.


*Affiliate Links Disclaimer

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


Содержание

  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

Источник

Гугл Капча помогает бороться со спамом. Все знают, что рекапча — это простая и бесплатная защита от спама. То есть если на ваш сайт или магазин вдруг стали приходить фейковые обращения, заказы и письма, то прежде всего стоит убедиться, что капча для сайта включена и работает.

гугл капча для сайта

Традиционно на данный момент все настраивают именно Google Recaptcha (произносится как «Гугл Рекапча»).

Она бесплатная, простая и всем знакомая.

я не робот гугл рекапча-пример

Поэтому ее и будем использовать для установки на сайт.
Я работаю с WordPress и Opencart, и сейчас рассмотрю процесс установки рекаптчи именно в этих системах.

Содержание

  • Первые шаги
  • Настройки
  • Добавление ключей капчи в WordPress
  • Добавление ключей капчи в Opencart
  • Возможные проблемы
  • Выводы и итоги

Первые шаги

Идем сюда https://www.google.com/recaptcha/admin
Если еще нет аккаунта Google — придется создать его.

Далее вам предложат выбрать что поставить: Recaptcha v3 или Recaptcha v2

Создание рекапчи в гугл

Ставьте v3 (капчу третьей версии) — она удобнее для ваших пользователей, в ней не требуется вообще ставить традиционную галочку или кликать по картинкам.

Такая капча не видна для 99% «порядочных» пользователей, а появляется только для тех, кого Гугл посчитает роботом.

Это очень удобно.
Можно отправлять любые формы и не заморачиваться с каптчей.
А вот спам-боты уже столкнутся с защитой.

Кстати, похоже работает и Recaptcha v2 — в режиме «Невидимая рекаптча», но Recaptcha v3 более продвинутая и по заверениям многих владельцев сайта удаляет больше спама, но работает на везде, например, в Opencart 2 и 3 из коробки она не работает.

Recaptcha v2

меняю гугл капчу с v2 на v3

Recaptcha v3

меняю гугл капчу с v2 на v3 готов

Настройки

Итак, выбрали ReCaptcha V3, как-то сверху обозвали свой проект (например, «Гугл Капча 3» или «Мой сайт») и затем вводите свой домен, на который устанавливается каптча.

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

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

ключи гугл капчи

Отсюда их надо будет копировать на сайт.
Можете и сразу себе куда-нибудь скопировать, если не хотите потом возвращаться в настройки.

Жмем «Открыть настройки» и выбираем еще флажок «Разрешить использование Гугл капчи на AMP страницах», может пригодится, если будете использовать формы в AMP (как ускорить сайт с AMP в 10 раз).

гугл капча в ampДалее остается добавить ключи на сайт и подождать до 20-30 минут на обновление данных на стороне Google, если сразу капча не подтянулась.

99% всех шаблонов на WordPress содержит поля, куда можно добавить ключи гугловской капчи.

Чаще всего это:

  1. Плагин Contact Form или Wp Forms.
  2. Собственные настройки шаблона.

Contact Form

Смотрим слева в панели админа — есть плагин Contact Form или нет.
А, вот он!

добавление гугл рекапчи в плагин contact form 7 wordpress

Жмем на «Интеграция» и видим удобные поля для размещения ключей.

ключи гугл капчи contact form wordpress

Вставляем по очереди каждый ключ и сохраняем.

Всё готово.
Теперь во всех формах, которые работают с помощью плагина Contact Form, будет автоматическая невидимая капча.

В WP Forms всё аналогично.

Собственные настройки шаблона

Если нет плагина форм типа Contact Form или подобного, то уточните у разработчика шаблона или сайта: «Куда мне ввести ключе гугл капчи» и вам подскажут.

Вот, например, как это может добавляться в настройках темы:

рекапча гугл в настройках wordpress

Добавляете ключи в соответствующие поля и каптча готова к использованию.

Добавление ключей капчи в Opencart

Тут еще проще, потому что добавление гугловской капчи версии 2 поддерживается на уровне самого движка, не нужны ни специальные темы, ни сторонние модули.

Важно!
Google Recaptcha ver 3 — не работает на Opencart.
Если введете ключи от нее в стандартные поля, то увидите «Ошибка: неверный ключ«.
Возможно, в будущих версиях подружат новую каптчу и опенкарт, а сейчас надо ставить только рекапчу версии 2.

Открываем, например, админку Opencart 3  и ищем слева меню «Расширения», а в нем еще раз подпункт «расширения» — и там в выпадающем списке находим «Капча».

добавление рекапчи гугл в opencart 3

Там внутри будет Google Recaptcha и Basic Captcha.
Нам нужна именно гугловская — если это расширение не активно — активируем его.

Теперь переходим внутри (синяя кнопка редактировать) и вводим ключи. Сохраняем.

Убедитесь что напротив Google Recaptcha есть слово «по умолчанию». Это значит, что будет использоваться именно эта капча.

Если нету этого слова, то открывайте основные «Настройки» магазина.

настройки opencart 3 капчи гугл

И на вкладке опции — в самом низу выберете Google Recaptcha вот так:

капча гугл opencart 3

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

Обычно или сразу, или через несколько минут Google Recaptcha вступает в действие.

Как понять что капча работает:

Гугл Капча 2 версия: появляется знакомое поле для флажка «я не робот». Можно также использовать невидимую каптчу.
Гугл капча 3 версия: изначально невидимая, но появляется справа внизу плавающий стикер, который имеет смысл отдельно скрыть через css, чтобы не маячил.

Возможные проблемы

Основные трудности, которые я встречал при установке гугловской капчи.

«Неверный ключ домена»
Значит не правильно прописаны ключи.
Или не те, что надо. Или не всё скопировалось. Или не в те поля.
Или просто надо подождать минут 20.
Или вы всё-таки забили на то, что я написал ранее, и всунули Рекаптчу 3 в Opencart :smile:

«Гугл Капча 2 версии часто появляются картинки»
Если вы решили поставить привычную вторую версию рекапчти, иногда можно заметить, что после клика на привычный флажок «Я не робот» вдруг появляются невнятные картинки из серии «найди светофор» или «найди все мосты» и т.п.

В этом случае Google Recaptcha считает, что вы и ваши посетители очень похожи на роботов и предлагает усложненное задание. Это ухудшает конверсии (не забываем 5 простых способов повысить конверсии), поэтому при настройке второй версии каптчи лучше изначально выбрать уровень безопасности как «простой». Это делается в настройках рекаптчи простым перетягиванием ползунка.

настройки уровень безпасности гугл капчи

В версии 3 такой настройки в Google нет, там уровень безопасности от 0 до 1 определяют сами плагины и модули, если в них встроен такой функционал (в WordPress в плагине WP Forms я его встречал, в Opencart не видел).

«Recaptcha не работает»
Установили капчу, а спам всё равно валится? Скорее всего, есть где-то форма, в которую разработчик сайта забыл поставить рекаптчу.
Чаще всего, это происходит в магазинах Opencart, потому что форм много: регистрация, быстрый заказ, обратный звонок, нашли дешевле и т.п. Банально программист мог забыть куда-то что-то дописать.

Как еще вариант, всё таки слишком простые уровни безопасности для каптчи, перетяните ползунок вправо.
Ну и еще как вариант — попробуйте другую версию рекаптчи. Была вторая — поставьте третью. И наоборот. В одном аккаунте Google можно делать много отдельных капч для разных сайтов.

Если ничего не помогло — то на кворк обратитесь, вам за 500р поставят капчу с гарантией результата.

Видео

Вот еще видео как я ставил гугл рекапчу v2 на готовый магазин Opencart 3

Выводы и итоги

Избавиться от спама можно и нужно, причем бесплатно.
Я включал в 30+ магазинах и сайтах Google ReCaptcha как версии V2 так и V3 — результат очень хороший. Спам или пропадал совсем или уменьшался до каких-то эпизодических случаев.

Из минуса Гугл Капчи 3 версии можно отметить, что справа начинает болтаться спойлер — бейдж от Google, в котором расписаны условия конфиденциальности.

Вот так:

значок от google

Чтобы его отключить можно добавить в CSS сайта строчку:

.grecaptcha-badge {display: none !important;}

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

В результате блок визуально не отображается на сайте и не отвлекает посетителей от ценного контента :smile:
Успехов в бизнесе!

Would you like to know how to fix the “Error for Site Owner Invalid Domain for Site Key” error? A lovely day suddenly turns into a frustrating experience when you are unable to access your WordPress Dashboard due to this error message.

Moreover, you are highly frustrated because you need help finding a solution to this problem. 

So, this article will explain What the “Error for Site Owner Invalid Domain for Site Key” error is and present the six best methods to fix it.

What is “Error for Site Owner Invalid Domain for Site Key”?

This error often occurs when you migrate or duplicate your website to a new domain. Still, you forget to change the Site Key and Secret Key on the Login NoCaptcha plugin on the new website, or you do not specify the new domain on your Google ReCaptcha page.

Therefore, your new domain cannot be accessed by the WordPress dashboard; instead, you receive the error message “Error for Site Owner Invalid Domain for Site Key.”

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

Sometimes, you may experience the “error for site owner invalid key type” error. What is the cause of this issue?

There are two main reasons for this – the wrong type of ReCaptcha and the problem with the domain name.

Continuing with this section, we will examine how to resolve the “error for site owner invalid domain for site key” issue with six methods.

Method 1: Downgrade to ReCaptcha V2 Key

The most popular web frameworks are not compatible with V3 keys, so the first thing you can do to resolve the “error for site owner invalid key type” issue is to downgrade to the Recaptcha V2 key.

Follow these steps to do this:

  1. Go to your WordPress dashboard.
  2. Choose Contact Form 7, Integrations, and remove the API keys.
  3. Go to Plugins and click on the Add New option.
Go to Plugins and click on the Add New option
  1. Search, install, and activate the Invisible reCaptcha for the WordPress plugin.
  2. Go to the ReCaptcha Admin account.
  3. Select ReCaptcha v2 (Invisible) and generate new keys. After completing the form, you will receive a site and secret keys.
  4. Copy the site key to the clipboard.
  5. Go to Settings in the WordPress dashboard.
  6. Click on the Invisible reCaptcha option.
  7. Paste the Site Key you copied earlier in the Site Key field.
  8. Go back again to copy the Secret Key.
  9. Paste the Secret Key into the Secret Key field.
Go to Settings in the WordPress dashboard, click on the Invisible reCaptcha option, paste the Site and Secret Keys
  1. Click on the Save Changes option to save changes.
Click on the Save Changes option to save changes
  1. Go to the Contact Forms tab. 
  2. Check the Enable Protection for Contact Form 7 option.
  3. Click the Save Changes option.
Go to the Contact Forms tab, check the Enable Protection for Contact Form 7 option, and click the Save Changes option

Method 2: Reinstall the Plugin and Add Your Site to Google Recaptcha

In this method, if you use the Login No Captcha reCaptcha plugin, you must first go to the cPanel of your website and open the file manager to make changes.

Follow these steps to do this: 

  1. Go to your cPanel.
  2. Open the file manager.
  3. Select the Public_html folder.
  4. Click on the wp_content folder.
  5. Choose the plugins folder, then Login-recaptc folder.
  6. Select all files in Login-recaptc folder and delete them.
  7. Check the WP login page to see if the error has been resolved.

As long as your website is working, the error has been fixed. You should now be able to access your WordPress dashboard, although the error has been resolved by removing your plugin.

As a result, your website has a new issue; you should reinstall the plugin and add a new domain to protect your site from hacking attempts and unwanted threats.

Follow these steps to do this:

  1. Go to your WordPress dashboard.
  2. Go to Plugins and click on the Add New option.
Go to Plugins, then click on the Add New option
  1. Search, install, and activate the Login No Captcha reCaptcha plugin.
  2. Go to Settings and click on  Login NoCaptcha.
  3. Click on the Click here link to create the Site Key and Security for Google Nocaptcha.
Go to Settings, click on Login NoCaptcha, and click on Click here
  1. Go to the Google Recaptcha page and fill out the form, including the label, your site’s Domain, and reCaptcha type.
  2. Check the box next to Accept the reCaptcha terms of service and click on the Submit button.
Check the box next to Accept the reCaptcha terms of service and click on the Submit button

You will be provided a Site Key and Security Key for your website when you click the Submit button.

  1. Copy these keys and paste them into the settings page of the plugin.
  2. Click on the Save Changes button to save your settings.
Copy these keys and paste them into the settings page of the plugin and click on the Save Changes button
  1. Visit your login page, and you will see that the Google reCaptcha security protocol is in place to secure your website.

Method 3: Verify Domain Name

You should confirm that your website exists and has the same domain name registered for ReCaptcha and that it has been included in the domain name section of the Google ReCaptcha page.

You can verify this by following these steps:

  1. Select Plugins, then click Settings under WP-ReCaptcha options. 
  2. Enter the site key and secret key.
  3. Click Save ReCaptcha changes.

Method 4: Edit and Update Settings in the Database

When the site administrator must also enable the verification code option for logging into the site and they encounter the same error message, you need to make some changes to the database.

During this process, you will only need to disable this option; however, ensure that you have backed up your files before proceeding.

Follow these steps to do this:

  1. Run the following command in the database to disable the verification code:
Update tblconfiguration SET value ='' where setting ='CaptchaSetting'; 
  1. Verify that the “error for site owner invalid domain for site key” has been resolved.

Method 5: Disable the Domain Name Validation Verify the origin of reCAPTCHA solution

Follow these steps to use this method:

  1. Go to https://www.google.com/recaptcha/admin
  2. Click on the domain.
  3. Go to key settings at the bottom.
  4. Disabled the option below the Domain Name Validation Verify the origin of reCAPTCHA solution.
  5. Click on the Save button, and the captcha starts working.

Method 6: Contact Support

If none of the methods are working, you should consider contacting support. It would be best if you waited until you received your reply before following the advice provided by customer service. Ensure that the “error for site owner invalid key type” problem has been resolved.

Conclusion

Throughout this article, we have outlined the “Error for Site Owner Invalid Domain for Site Key reCaptcha” error and explained six ways to resolve it.

We are pleased to welcome you to this article; thank you for taking the time to read it. Please feel free to leave any comments or questions in the comments section.

Our articles are regularly posted on Facebook and Twitter, so please follow us for the latest information.

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?

user avatar

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.

user avatar

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.

Unfortunately, on a nice day, suddenly you can not log into your WordPress Dashboard due to the “Error for Site Owner Invalid Domain for Site Key” error. And you are very frustrated because you do not find out any solution to handle this trouble. Don’t worry, in today’s blog, we bring you an easy method to help you resolve this problem without effort. Initially, you need to identify which causes make it appear on your site.

Why you get the error: “Error for Site Owner Invalid Domain for Site Key” on your website

This error commonly appears when you migrate or duplicated your website to a new domain but you forgot to change the Site Key and the Secret key on your Login NoCaptcha Plugin on your new website or you did not add the new domain to your Google reCaptcha page. As a result, you can not log in to the WordPress dashboard of your new domain instead of getting the error “Error for Site Owner: Invalid Domain for Site Key”.

Error For Site Owner: Invalid Domain For Site Key

So, what solutions to address this error? Below, we will give you a detailed tutorial to help you implement and tackle your issue effectively.

How to fix “Error for Site Owner: Invalid Domain for Site Key” error

Now, you need to follow the steps below to address the problem.

Step 1: Go to Cpanel of your website and open file manager to make changes

  • After going to the cPanel of your website, let’s open the File Manager and select the Public_html folder.
  • Then, click on “wp_content” folder
  • Next, select the “plugins” folder > Login-recaptc folder
  • Check all files in “Login-recaptc folder” and delete them
  • Go Back to your WP login page and check if the error is gone.

If your website is working, which means the error is fixed. Now, you can log into your WordPress dashboard. However, the error is gone since you have just removed the login noCaptcha plugin on your site.

So, there is a new issue coming on your website, you need to have the security to protect your site from hacking attempts and unwanted threats by reinstalling the login noCaptcha plugin and adding a new domain on it.

Step 2: Restall the plugin and add your site to Google Recaptcha

Now, it’s time for you to log in to your WordPress dashboard to reinstall the Login no Captcha recaptcha plugin to keep your site secure because it was deleted in the first step.

In order to install the plugin, you simply go to All plugins > Add new and then find the plugin on the search bar. Next, click on the Install button and activate it.

Error For Site Owner: Invalid Domain For Site Key

Then, let’s navigate to Settings > Login Nocaptcha. In the plugin’s settings page, simply click on the “Click here” link to create the Site Key and Security for Google Nocaptcha.

Error For Site Owner Invalid Domain For Site Key 12 E1646878984955

From the Google Recaptcha page, you need to fill out the form including label, your site’s Domain, reCaptcha type.

Error For Site Owner Invalid Domain For Site Key 10

Then, check the box next to “Accept the reCaptcha terms of service” and click on the Submit button.

Error For Site Owner Invalid Domain For Site Key 11

After clicking on “Submit“, you will get the Site Key and Security Key for your new website. Let’s copy these keys and paste them into the settings page of the login noCaptcha plugin.

Error For Site Owner Invalid Domain For Site Key 6 2

Once the Site key and Secret key were pasted in the given space. Don’t forget to click on the “Save Changes” button to save your settings.

Error For Site Owner Invalid Domain For Site Key 9 2 E1646879035380

Now, you can visit your login page and see that your website is secured with the Google reCaptcha security protocols.

The final thoughts

After reading our blog, hopefully, you understood why the error appeared on your site as well as got a useful solution to handle your problem effectively. If your error is not resolved despite implementing all mentioned steps. Don’t hesitate to leave a comment below, we will give you support.

Moreover, you can refer to a list of stunning, SEO-friendly free WordPress Themes on our website.

  • Author
  • Recent Posts

Lt Digital Team (Content &Amp; Marketing)

Welcome to LT Digital Team, we’re small team with 5 digital content marketers. We make daily blogs for Joomla! and WordPress CMS, support customers and everyone who has issues with these CMSs and solve any issues with blog instruction posts, trusted by over 1.5 million readers worldwide.

Lt Digital Team (Content &Amp; Marketing)

Добавить комментарий