tags:

views:

31

answers:

2

Hi, Let's say i got a vps hosting with a dedicated ip, can i make a curl php script that receives a url, fetch it, and output it, and make all this as a proxy server, so i can put my vps ip in the proxy settings of the browser.

Is there any way to do that?

Note: Please don't suggest me a web based proxy like glype.

Thanks

+1  A: 

Yes, you could (see Jasper's answer). That would be effectively making your own web-based proxy.

However, given that it's a VPS, I would suggest using a SSH SOCKS proxy, since it'll be easier and will be running through an encrypted tunnel to the VPS.

zebediah49
As pointed out at my answer, I wasn't answering the question, so I removed my answer, leaving a dangling pointer at your answer.
Jasper
+1  A: 

Use Apache with mod_proxy and mod_proxy_http. See the docs.

You can access the proxy through https, effectively encrypting all your traffic between your computer and the VPS.

Artefacto
Thanks, so what port should i put in the settings if i added mod_proxy to htaccess?
David
@David You can't put it in .htaccess It has to be in `httpd.conf` or some file included there. The port is arbitrary.
Artefacto