Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to use Privoxy hosted on my VPS as an HTTP proxy for when I will be travelling to China. However, I don't want just anyone to be able to use it.

I google'd around, and it doesn't look like HTTP proxies typically allow setting username/password protection, and there isn't any field to input this information in Firefox's settings anyway.

But, I think you can filter the people allowed to connect by IP. I will be travelling a lot, thus my IP will change a lot, so is there a way to filter the allowed connections by a dynamic DNS service. I could just update the IP through the DNS service, and then connect to the proxy.

share|improve this question

There are a number of proxy solutions that use usernames/passwords (though these are usually commercial solutions such as Bluecoat/Blueshield). This is usually not done as part of the browser setting, but rather when you try to connect to it (it will usually prompt you). The specific proxy must implement SOCKS5 in order to perform authentication.

For privoxy you can set your server to only allow connections via SSH and secure that with username and password. Look at the answer from John Reese and David Goodwin here:

I also did find a patch (not committed) for privoxy to implment authentication on the project page here: and a method to add basic authentication passing here:

As far as the exact answer to your question. You could fiter by the hostname of your system that is being advertised by DynDns (or whatever dynamic dns service), so that the change in IP is automatically reflected at the proxy. It should work fairly well so long as there are no DNS poisoning attacks against you.

share|improve this answer
@vonhogen: HTTP proxies do support authentication, and it's widely implemented too. – grawity Apr 26 '11 at 4:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .