Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I have a question about setting proxies in Safari for the Mac. In Network preferences one can configure a Web proxy - HTTP, which has the field: "Bypass proxy settings for these Hosts&Domains". Is there a way to bypass any host or domain, but apply proxy only to one specific host?

EDIT: Found a good link about that - http://nscsysop.hypermart.net/proxypac.html

share|improve this question

2 Answers 2

up vote 1 down vote accepted

You should not use the Web proxy, but to use the Automatic Proxy Configuration, and setup a .pac file. In this file, you specify which domain/hosts you want the proxy.

Check wiki, http://en.wikipedia.org/wiki/Proxy_auto-config, for more information.

A sample may looks like:

function FindProxyForURL(url, host) 
{
  PROXY = "PROXY 127.0.0.1:8000";
  DEFAULT = "DIRECT";

  var domain_list = [
    "blahblahblah.com"
  ];

  for (var i = domain_list.length - 1; i >= 0; i--){
    if (dnsDomainIs(host,domain_list[i])) {return PROXY}
  };
}

The other simple way is to use the Firefox, and install an extension, Autoproxy.

share|improve this answer

Don't know too much about this, but I've used glimmerblocker.org to muck around with the appearance of a few individual sites (via tweaking their css). I know Glimmer Blocker is far more powerful than that, so it might be of some help to you.

share|improve this answer
    
I've been looking for a native way of doing this operation, but thanx for your proposal :) –  Mocialov Boris Feb 19 '12 at 14:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.