howto:firefox-proxy
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| howto:firefox-proxy [2025/08/13 22:47] – Wuff | howto:firefox-proxy [2025/11/06 10:44] (current) – Wuff | ||
|---|---|---|---|
| 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: | + | The following firefox addon adds a button to the toolbar to reload the proxy file: |
| - | https:// | + | https:// |
| + | |||
| + | |||
| + | Further info about PAC files: | ||
| + | [[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.1755121642.txt.gz · Last modified: by Wuff