Created
December 16, 2011 20:30
-
-
Save du-song/1487841 to your computer and use it in GitHub Desktop.
relatively short PAC file for bypassing GFW and blocking ads on iPhone.
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) { | |
var p = "PROXY example.server:1989"; | |
if (shExpMatch(host, "*twitter.com*")) return p; | |
if (shExpMatch(host, "*t.co")) return p; | |
if (shExpMatch(host, "*bit.ly")) return p; | |
if (shExpMatch(host, "*j.mp")) return p; | |
if (shExpMatch(host, "*facebook.com*")) return p; | |
if (shExpMatch(host, "*facebook.net*")) return p; | |
if (shExpMatch(host, "*fbcdn.net")) return p; | |
if (shExpMatch(host, "*twimg.com")) return p; | |
if (shExpMatch(host, "*twitpic.com")) return p; | |
if (shExpMatch(host, "*yfrog.com")) return p; | |
if (shExpMatch(host, "*img.ly")) return p; | |
if (shExpMatch(host, "*cl.ly")) return p; | |
if (shExpMatch(host, "*campl.us")) return p; | |
if (shExpMatch(host, "*wp.com")) return p; | |
if (shExpMatch(host, "*wordpress.com")) return p; | |
if (shExpMatch(host, "*posterous.com")) return p; | |
if (shExpMatch(host, "*delicious.com")) return p; | |
if (shExpMatch(host, "*.static.flickr.com")) return p; | |
if (shExpMatch(host, "*google.co.uk")) return p; | |
if (shExpMatch(host, "*google.com.tw")) return p; | |
if (shExpMatch(host, "*googleusercontent.com")) return p; | |
if (shExpMatch(host, "*groups.google.com")) return p; | |
if (shExpMatch(host, "*doc.google.com")) return p; | |
if (shExpMatch(host, "*spreadsheets.google.com")) return p; | |
if (shExpMatch(host, "*vimeo.com")) return p; | |
if (shExpMatch(host, "*youtube.com")) return p; | |
if (shExpMatch(host, "*ytimg.com")) return p; | |
if (shExpMatch(host, "*googlevideo.com")) return p; | |
if (shExpMatch(host, "*tumblr.com")) return p; | |
if (shExpMatch(host, "*blogspot.com")) return p; | |
if (shExpMatch(host, "*blogger.com")) return p; | |
if (shExpMatch(host, "*foursquare.com")) return p; | |
if (shExpMatch(host, "*feedproxy.google.com")) return p; | |
if (shExpMatch(host, "*feeds.feedburner.com")) return p; | |
if (shExpMatch(host, "*upload.wikimedia.org")) return p; | |
if (shExpMatch(host, "*dropbox.com*")) return p; | |
if (shExpMatch(host, "*appspot.com*")) return p; | |
if (shExpMatch(host, "*imdb.com")) return p; | |
if (shExpMatch(host, "*code.google.com")) return p; | |
if (shExpMatch(host, "*android.com")) return p; | |
if (shExpMatch(host, "*thehitlistapp.com")) return p; | |
var b = "PROXY 203.208.39.104:80"; | |
if (shExpMatch(host, "*fusionads.net*")) return b; | |
if (shExpMatch(host, "*mobclix.com*")) return b; | |
if (shExpMatch(host, "*iadsdk.apple.com*")) return b; | |
if (shExpMatch(host, "*ad-maker.info*")) return b; | |
if (shExpMatch(host, "*admob.com*")) return b; | |
if (shExpMatch(host, "*adwhirl.com*")) return b; | |
if (shExpMatch(host, "*tapjoyads.com*")) return b; | |
if (shExpMatch(host, "*doubleclick.net*")) return b; | |
if (shExpMatch(host, "*googlesyndication.com*")) return b; | |
return "DIRECT"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment