Skip to content

Instantly share code, notes, and snippets.

@everpcpc
Last active Mar 24, 2021
Embed
What would you like to do?
autoproxy.pac
function FindProxyForURL(url, host) {
if ( host=='twitter.com'
||host=='facebook.com'
||host=='wordpress.com'
||host=='bit.ly'
||host=='t.co'
||dnsDomainIs(host,'.twitter.com')
||dnsDomainIs(host,'.facebook.com')
||dnsDomainIs(host,'.akamaihd.net')
||dnsDomainIs(host,'.youtube.com')
||dnsDomainIs(host,'.wordpress.com')
||dnsDomainIs(host,'.blogger.com')
||dnsDomainIs(host,'.blogspot.com')
||dnsDomainIs(host,'.blogspot.jp')
||dnsDomainIs(host,'.appspot.com')
) return 'SOCKS 127.0.0.1:1991';
return 'DIRECT';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment