Force browsers to use proxy server only for required domainsSolved

Participant
Discussion
3 years ago

Hey guys, can we force the browsers to use proxy only for specific domains? In android policies, I only see the option to exclude domains from the proxy setup. My requirement is just the opposite.

Replies (1)

Marked SolutionPending Review
Hexnode Expert
3 years ago
Marked SolutionPending Review

Hey there, @frida. Thanks for reaching out to us.

You can achieve this using a custom proxy auto-configuration file (PAC file) to define proxy settings on your device(s). You could set a rule that defines a proxy server only for specific domains. For every URL accessed, the FindProxyForURL(url, host) JavaScript function in the .pac file will be executed to determine if any proxy server should be used for that URL.

To configure the proxy settings using a PAC file, set the Proxy type as Automatic when configuring the Global HTTP Proxy policy. In the PAC file URL field, enter the web address of the PAC file.
Hope this helps. Do reach out if you’ve further queries.

Cheers!
Chris Wheeler
Hexnode UEM