Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor: Recaptcha and fsockopen #63

Closed
Gabri opened this issue May 27, 2012 · 3 comments
Closed

minor: Recaptcha and fsockopen #63

Gabri opened this issue May 27, 2012 · 3 comments

Comments

@Gabri
Copy link

Gabri commented May 27, 2012

Hi Chris,

I was having problem using ReCaptcha in comments.
I had a connection time out during the fsockopen.
I thought was something with the hosting service, but it seems not this.
The problem seems to be that www.google.com has an IPv6 address, and fsockopen() tries to connect to it. Also, the IPv6 address on www.google.com doesn't seem to allow connections on port 80.
To make sure the connection to the IPv4 address I added a line "$host = gethostbyname($host);". With this it works.

Not sure it's a real QACMS issue because I think you already using ReCaptcha on the QA website...

@quickapps
Copy link
Owner

Hmm,
QuickApps uses the official PHP plugin (v1.11), and as you mentioned, the official web site seems to work ok (even on localhost).

Googling a bit I found other peole with similar issues. for example:
http://code.google.com/p/recaptcha/issues/detail?id=26

In some hosting providers, fsockopen is sometimes blocked for security reasons:
http://hellowahab.wordpress.com/2012/02/15/recaptcha-cannot-connect-to-host-problem-behind-a-proxy/

All seems to be a hosting server issue :S

@Gabri
Copy link
Author

Gabri commented May 28, 2012

Yes, I think you're right.
I'm awaiting a confirmation from the server hoster and then I close the ticket!
Thanks for your time

@Gabri
Copy link
Author

Gabri commented May 30, 2012

Now it works (with original sources), so no issue
Thanks

@Gabri Gabri closed this as completed May 30, 2012
@botchris botchris modified the milestone: 1.x Sep 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants