Skip to content

Instantly share code, notes, and snippets.

@rob-smallshire
Last active March 28, 2022 11:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rob-smallshire/5011631 to your computer and use it in GitHub Desktop.
Save rob-smallshire/5011631 to your computer and use it in GitHub Desktop.
PAC file for routing iPlayer requests over a local SOCKS proxy
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