Last active
March 28, 2022 11:42
-
-
Save rob-smallshire/5011631 to your computer and use it in GitHub Desktop.
PAC file for routing iPlayer requests over a local SOCKS proxy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function FindProxyForURL(url, host) | |
{ | |
if (shExpMatch(url, "*.bbc.co.uk/iplayer*") | |
|| shExpMatch(url, "*.bbc.co.uk/mediaselector*") | |
|| shExpMatch(url, "zaphod-live.bbc.co.uk.edgesuite.net/*") | |
|| shExpMatch(url, "bbcfmhds.vo.llnwd.net/*")) | |
{ | |
return "SOCKS 127.0.0.1:8080"; | |
} | |
else | |
{ | |
return "DIRECT"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment