Proxy and Captcha

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
4/27/2008 10:04:13 PM
Gravatar
Total Posts 6

Proxy and Captcha

Situation:
My mojoPortal is hosted inside an internal network. To make use of objects of System.Net.WebRequest or System.Net.WebClient, i need to prepare an System.Net.WebProxy object with my credentials.

Problem:
When i use recaptcha, the request cannot reach "recaptcha.net" since it is unable pass through the proxy server. Thus, the page fail to validate.
(it is okay with other captcha(s) in mojoPortal)

Feature suggestion:
Proxy configuration in site settings so that WebProxy object can be used.

 

If there are any other workarounds for this, please kindly let me know too. ^_^

 

4/28/2008 6:58:52 AM
Gravatar
Total Posts 18439

Re: Proxy and Captcha

Hi,

I don't have a proxy environment to test so not sure if this will solve it but, a little googling produced this suggestion for settings in Web.config to setup a default proxy.

<system.net>
<defaultProxy>
<proxy
usessystemdefault = "false"
proxyaddress = "http://123.123.123.123:3128"
bypassonlocal = "true"
/>
</defaultProxy>
</system.net>

System.Net section is near the bottom of the mojoportal Web.config file. Obviously you would put in the address for your own proxy server.

Please let me know if it works or not.

Best,

Joe

4/30/2008 2:09:43 AM
Gravatar
Total Posts 6

Re: Proxy and Captcha

Hi Joe,

Thanks for your prompt reply (as always).

Due to the settings of my development environment, I'm not able to use web.config configurations to setup appropriate proxy settings (my development windows domain is different from the proxy server for some reason). After some googling efforts, i think your suggested method should work fine (sad that i can't test it myself).

Here is a more detailed description of the method.
http://geekswithblogs.net/mnf/archive/2006/03/08/71663.aspx

Hope this is useful to you all.

Alex

 

You must sign in to post in the forums. This thread is closed to new posts.