Serverwide reCAPTCHA VALIDATION FOR WordPress Login page

sufiyanshaikh

Verified User
Joined
Aug 14, 2019
Messages
185
Hello zEitEr,

I thank you for creating the script: https://github.com/poralix/reCaptcha2_validation-free

This is working fine on IPv4 but when a user having IPv6 connects to the server, he gets an error message that the IP is not the same.
I have checked this script on another DA server and is working fine(another hosting company server).
But on the server on which I want to use it, it is creating issues on IPv6.

I have even asked DA support team to check if IPv6 is configured correctly, I got a reply that it is correctly configured.
I will be really thankful if you can provide me solution.

When I 'ping' hostname, it is showing IPv6 correctly.
 
Doesn't seem to work for me too on ip6.
But I'm getting "invalid site key" while I'm fairly sure I copied the correct keys into the config-file.

Had to uninstall everything unfortunatly for the moment.
 
Doesn't seem to work for me too on ip6.
But I'm getting "invalid site key" while I'm fairly sure I copied the correct keys into the config-file.

Had to uninstall everything unfortunatly for the moment.

In your case, it seems your keys were incorrect.
In my case, the IPv6 is not validating
 
Bringing this topic up from the past, has anyone ever got this to work?
Would like to get this handy plugin installed because it seems very helpful.
I gave it a try again this week but after the setup and trying to login to a Wotfpress site, you get send to a notification page but the CONFIRM-button does nothing.
I think I need to do more setting up on the Google API end, but I get lost in the forrest of options there.
I thought it was a simple creation of keys and entering them in the plugin, but it doesn't seem so unfortunately.
 
I thought it was a simple creation of keys and entering them in the plugin, but it doesn't seem so unfortunately.

Actually it is that simple: create keys and copy/paste them to the config file. You might send me a link to your WP site for testing via PM, and I will check it without a fee.
 
But on the server on which I want to use it, it is creating issues on IPv6.

Usually it happens when a site that you protect and a hostname have different configurations of IPs. The both the site and the hostname should have either IPv4+IPv6 or only IPv4. If your sites have IPv4+IPv6, but hostname uses only IPv4, or vice versa sites have only IPv4, but hostname has both IPv4+IPv6 you will definitely get issues with verifying IPs. So either IPv4+IPv6 for sites and the hostname, or only IPv4 for all sites and the hostname. At the same time, you might have different instances of IPv4 and IPv6 for your domain and hostname.

Case 1 - OK:
- domain.com - IPv4+IPv6
- hostname - IPv4+IPv6

Case 2 - OK:
- domain.com - only IPv4
- hostname - only IPv4.

Case 3 - WRONG:
- domain.com - only IPv4
- hostname - IPv4 + IPv6

Case 4 - WRONG:
- domain.com - IPv4 + IPv6
- hostname - only IPv4

I don't have much information about cases when a CDN is used as well as CloudFlare and its alternatives. So if you have issues when proxying requests over CloudFlare, I am ready to help you more.
 
Thank you for replying Alex,
After I started typing a PM, I rechecked the config file and noticed the keys were not entered there. I recall entering them during the install, but I guess I did not do this correctly.
I copied them again into the file and now all seems to work. I'm seeing a captcha and can proceed to the WP-login page.
 
That's good to know the thigs are working now for you. You probably entered the keys in the downloaded version of the file /usr/local/src/

After I started typing a PM, I rechecked the config file and noticed the keys were not entered there. I recall entering them during the install, but I guess I did not do this correctly.
 
  • Like
Reactions: BBM
Back
Top