Skip to content

Instantly share code, notes, and snippets.

@gingerbeardman
Last active April 17, 2022 20:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gingerbeardman/d02b61f86eadd29a86b3ae42082eee7f to your computer and use it in GitHub Desktop.
Save gingerbeardman/d02b61f86eadd29a86b3ae42082eee7f to your computer and use it in GitHub Desktop.
Example PAC file to route only access to Yahoo! Japan for the website and app
function FindProxyForURL(url, host) {
if (
dnsDomainIs(host, "storage-yahoo.jp") ||
dnsDomainIs(host, "yahooapis.jp") ||
dnsDomainIs(host, "yimg.jp") ||
dnsDomainIs(host, "yahoo.co.jp")
) return "PROXY 12.34.56.78:8888";
return "DIRECT";
}
@gingerbeardman
Copy link
Author

Note: you'll need to change the proxy IP and PORT to something valid 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment