views:

712

answers:

2

I have some shared server web hosting in the States (I'm from the UK), which allows me to publish PHP and .NET applications. I cannot install my own software onto the remote server, but I'd like to set up a web forwarding proxy for accessing sites that serve different content depending on what country you're from.

My C# and ASP.NET skills are OK, but my PHP is very limited. Are there any solutions that anyone would recommend for this sort of problem? The proxies I've investigated all seem to require installation on the server machine itself, whereas I'm just looking for something that's accessible from a URL.

Obviously, as the requests are coming from the UK, the headers will have to be manipulated by the proxy before forwarding them on. I was going to code my own HTTP handler in C#, but I don't want to reinvent the wheel if there's something out there already ;)

+1  A: 

Although quite old, the Org.Mentalis.Proxy could be a good starting point for an example proxy implementation in C#. You can find it here: http://www.mentalis.org/soft/projects/proxy/

Sergiu Damian
Thank you for the advice, Sergiu. Unfortunately, it appears that the Mentalis Proxy is geared towards installation on a server, but I'm sure the C# code will be a great reference if I write my own implementation.
Dave R.
Sergiu Damian
+1  A: 

maybe this script is helping you? phproxy

Thank you for the link drfuture. It's a shame that phproxy is not being developed any more, but I'll certainly give the script a try.
Dave R.