howto:firefox-proxy
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
howto:firefox-proxy [2025/08/13 22:46] – created Wulf Rajek | howto:firefox-proxy [2025/08/14 15:16] (current) – Wulf Rajek | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Firefox Proxy ====== | + | ====== Firefox/ |
- | To use a proxy for specific sites only, the easiest option is to create a pac file and configure Firefox to use it as automatic proxy configuration. | + | To use a proxy for specific sites only, the easiest option is to create a pac file and configure Firefox/ |
Example pac file: | Example pac file: | ||
Line 9: | Line 9: | ||
return "HTTP 192.168.0.1: | return "HTTP 192.168.0.1: | ||
} | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Possible option to identify network to only use proxy if in home network or private ip range: | ||
+ | < | ||
+ | function FindProxyForURL(url, | ||
+ | var myIP = myIpAddress(); | ||
+ | |||
+ | // Detect by IP range (example: 192.168.1.x) or DNS suffix (example: home.lan) | ||
+ | if ( | ||
+ | isInNet(myIP, | ||
+ | dnsDomainIs(host, | ||
+ | ) { | ||
+ | return "PROXY proxy.example.com: | ||
+ | } | ||
+ | |||
+ | // Otherwise, no proxy | ||
+ | return " | ||
} | } | ||
</ | </ | ||
Line 14: | Line 32: | ||
Store this somewhere and go to about: | Store this somewhere and go to about: | ||
< | < | ||
- | file:/// | + | file:/// |
</ | </ | ||
After making changes to the file, go back to the Firefox proxy configuration URL settings and click reload. | After making changes to the file, go back to the Firefox proxy configuration URL settings and click reload. | ||
+ | Further info: | ||
+ | [[https:// | ||
+ | |||
+ | Chrome/ | ||
+ | These browsers use the system proxy settings and do not have a GUI option to set custom proxies. Proxies and bypass urls need to be set via command line: | ||
+ | < | ||
+ | --proxy-server=" | ||
+ | --proxy-pac-url=" | ||
+ | </ |
howto/firefox-proxy.1755121584.txt.gz · Last modified: by Wulf Rajek