I've searched a lot, but all questions I found are about localhost. I know it works on localhost or 127.0.0.1, but I'm trying to test reCaptcha on my machine with vagrant.
My local page IP is 192.168.10.10 and in hosts file (Win8) I have 192.168.10.10 local.page.dev. Tried in reCaptcha settings adding page.dev domain, but no luck - reCapctha just isn't rendered.
Any chance to test it on local machine, but not localhost?
I found changing your $_SERVER['REMOTE_ADDR'] to your registered domain in reCaptcha work fine.
The most easy (and hackish) way is just to insert <?php $_SERVER['REMOTE_ADDR'] = 'yourdomain.com' ?> inside your form, just before your captcha script.
But I think you can also change it in your PHP configuration file too... (Sorry, still learning about web development and PHP)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With