> Selected Proxying <
Well testing the PAC-Script with Internet Explorer 11 (before I was using chrome) in noticed that there some more little details to get it working:
- Add this the Registry:
Code:
Key: HKLM\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\
Value: EnableLegacyAutoProxyFeatures
Type: REG_DWORD
Data: 1
or upload the script on some http server (if the protocol will not be file:// and so this regpatch is not needed)
Here is RegistryWorkshop 4.6 (32/64-bit *Regged*) so with that the registry is gonna be more fun. - file://C:\whatever\PAC_script.js
just C:\whatever\PAC_script.js does just work for chrome but not for IE.
And this a cleaner version for the PAC-Skript:
Code:
function FindProxyForURL(url, host) {
//alert("1_Debug: " + url);
// Block Ads sample
if (
dnsDomainIs( host, '.huluad.com') ||
dnsDomainIs( host, 't2.hulu.com') ||
dnsDomainIs( host, 't2.hulim.com') ||
dnsDomainIs( host, 'ads-v-darwin.hulu.com') ||
dnsDomainIs( host, '.googleadservices.com') ||
dnsDomainIs( host, '.doubleclick.net')
) {
return 'PROXY 127.0.0.2:65535'
}
// Sneak around Geo-ip blocker via Proxy
if (
dnsDomainIs( host, 's.hulu.com' ) ||
dnsDomainIs( host, 'www.funimation.com' ) ||
dnsDomainIs( host, 'wpc.8c48.edgecastcdn.net') ||
dnsDomainIs( host, 'southpark.cc.com' ) ||
dnsDomainIs( host, 'api.utils.watchabc.go.com') ||
dnsDomainIs( host, 'www.dramafever.com' ) ||
dnsDomainIs( host, 'www.logotv.com' ) ||
dnsDomainIs( host, 'media.mtvnservices.com' ) ||
dnsDomainIs( host, 'api.watchabc.go.com' )
) {
return 'PROXY ush-node.proxmate.me:8008'
} else if (
dnsDomainIs( host, 'counter.yadro.ru') ||
dnsDomainIs( host, 'turbik.tv')
) {
return 'PROXY ru-node.proxmate.me:8008'
} else {
return 'DIRECT';
}
}
For debugging Uncomment that
alert( can be useful.
Note the alertboxes only work on IE.
... and for digging deeper
Process Monitor with filter:
Include Process=="iexplore.exe", Include Path constains ".pac"
so you can watch if IE has loaded/reloaded the script.
________________________________________________
And beside proxying sometimes also consider to give
XFF a try. Well doesn't work on yt and hulu.com but it's so simple and fast that it's really worth s try:
- Get Modify Headers for Chrome
- X-Forwarded-For: 213.96.118.62
and that's it. It'll add to all HTTP GET request 'X-Forwarded-For' and the server that block you now might think well that british-ip is just a proxy forwarding traffic for a user with the ip 213.96....
So here I tooked an IP from a spanish proxy.
But you can use any other IP - no data is transmitted to it. Just choose one that'll satisfy Server-GeoIP constains.
You can test the settings here:
https://wtfismyip.com