Last active
April 17, 2022 20:11
-
-
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
This file contains 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 ( | |
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"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: you'll need to change the proxy IP and PORT to something valid 😅