[ZendTo] Google recaptcha Proxy

Jules Jules at Zend.To
Thu Mar 16 09:15:07 GMT 2017


Gregg,

These 2 configuration options are not in 4.20 and upwards.
The new Google code posts to an https URL, so you can't proxy it anyway.
I didn't want to potentially break Google's code by removing the https 
security from it.

Cheers,
Jules.


On 16/03/2017 07:30, Gregg Douglas wrote:
> Hi,
>
> The proxy options for the Google reCaptcha are not working -
>
>     recaptchaProxy
>     recaptchaProxyPort
>
>
> In Version 4.20, I had to add the "proxy" option in the Post.php under 
> /opt/zendto/www/ReCaptcha/RequestMethod:
>
>     $options = array(
>                'http' => array(
>                    'header' => "Content-type:
>     application/x-www-form-urlencoded\r\n",
>                    'method' => 'POST',
>                    'content' => $params->toQueryString(),
>                    // Force the peer to validate (not needed in
>     5.6.0+, but still works)
>                    'verify_peer' => true,
>                    // Force the peer validation to use www.google.com
>     <http://www.google.com>
>                    $peer_key => 'www.google.com <http://www.google.com>',
>     *'proxy' => 'server:port',*
>                ),
>            );
>
> Gregg
>
>
> _______________________________________________
> ZendTo mailing list
> ZendTo at zend.to
> http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto

Jules

-- 
Julian Field MEng CEng CITP MBCS MIEEE MACM

'Every morning when I wake,
  Dear Lord, a little prayer I make,
  O please do keep Thy lovely eye
  On all poor creatures born to die

  And every evening at sun-down
  I ask a blessing on the town,
  For whether we last the night or no
  I'm sure is always touch-and-go.

  We are not wholly bad or good
  Who live our lives under Milk Wood,
  And Thou, I know, wilt be the first
  To see our best side, not our worst.

  O let us see another day!
  Bless us all this night, I pray,
  And to the sun we all will bow
  And say, good-bye - but just for now!'
     - Dylan Thomas

www.Zend.To
Twitter: @JulesFM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/zendto/attachments/20170316/f7b8557c/attachment.html 


More information about the ZendTo mailing list