function FindProxyForURL(url, host) { if (isPlainHostName(host) || dnsDomainIs(host, ".foobar")) return "DIRECT"; else if (isInNet(myIpAddress(), "192.168.99.0", "255.255.0.0")) return "PROXY 192.168.99.2:3128; DIRECT"; else return "DIRECT"; }
Never been to CodeSnippets before?
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
proxy.pac file for Firefox / Mozilla / et. al. (See related posts)
You need to create an account or log in to post comments to this site.
Related Posts
» Lighttpd proxy with Tracd sp... in lighttpd trac tracd proxy vhost
» Clear form with Javascript in xhtml html javascript firefox clear form msie valid
» cannot "apply changes" to re... in apache proxy textdrive instiki
» Sqlite helper library for Mo... in javascript mozilla sqlite xul
» Getting rid of 'port has bee... in firefox portbanning
» Fix Firefox search engine or... in del.icio.us firefox
Snippets (source code soon to be available) developed by Peter Cooper and powered by Ruby On Rails