Last active
May 22, 2025 07:32
-
-
Save constb/c31106b1621a2294f8ec9a72a421ebee to your computer and use it in GitHub Desktop.
proxy.pac
This file contains hidden or 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
var proxyDomainsRu = [ | |
// ".whatismyip.com", | |
".ident.me", | |
".nalog.ru", | |
".gosuslugi.ru", | |
".gu-st.ru", | |
".gov.ru", | |
".tomskenergosbyt.ru", | |
".tomrc.ru", | |
".tom.ru", | |
".tomsk.ru", | |
".sberbank.ru", | |
".payecom.ru", | |
".gazprombank.ru", | |
".alfabank.ru", | |
".mirconnect.ru", | |
".securepaymentway.ru", | |
".dzvr.ru", | |
".rsb.ru", | |
".robokassa.ru", | |
".rde.ru", | |
".yandex.ru", | |
".yandex.net", | |
".ya.ru", | |
".yastatic.net", | |
".vk.com", | |
".vk-portal.net", | |
".userapi.com", | |
".mail.ru", | |
".imgsmail.ru", | |
".mradx.net", | |
".tinkoff.ru", | |
".cdn-tinkoff.ru", | |
".hh.ru", | |
".litres.ru", | |
".avito.ru", | |
".avito.st", | |
".kupibilet.ru", | |
".city.travel", | |
".tns-counter.ru", | |
".criteo.com", | |
".yadro.ru", | |
".consensu.org", | |
".adriver.ru", | |
".statad.ru", | |
".demdex.net", | |
".omtrdc.net", | |
".amplitude.com", | |
".addthis.com", | |
".flocktory.com", | |
".moatads.com", | |
".uxfeedback.ru", | |
]; | |
var proxyDomainsAr = [ | |
]; | |
var proxyDomainsCa = [ | |
".1win.pro", | |
".1win.direct", | |
".1win.com", | |
".lucky-star.com", | |
]; | |
var proxyDomainsMx = [ | |
".com.ar", | |
".gob.ar", | |
".bybit.com", | |
".bybit-aws.com", | |
".kucoin.com", | |
".staticimg.com", | |
".okx.com", | |
".intercom.io", | |
".intercomcdn.com", | |
".tronscan.org", | |
".etherscan.io", | |
".telegra.ph", | |
".free.fr", | |
".nnmclub.to", | |
".rutracker.org", | |
".1337x.to", | |
".torrentgalaxy.to", | |
".wonkychickens.org", | |
".nanobytes.org", | |
".bit.ly", | |
".phind.com", | |
".meduza.io", | |
".claude.ai", | |
".anthropic.com", | |
".meta.ai", | |
".gemini.google.com", | |
".supermaven.com", | |
".openai.com", | |
".chatgpt.com", | |
".oaistatic.com", | |
]; | |
var proxyDomainsNl = [ | |
".habr.com", | |
".habrastorage.org", | |
".discord.com", | |
".discordapp.com", | |
".discordapp.net", | |
".discord.gg", | |
".atlassian.com", | |
".atlassian.net", | |
".atl-paas.net", | |
".apple.com", | |
".office365.com", | |
".icloud.com", | |
".icloud-content.com", | |
".me.com", | |
".googleapis.com", | |
".google.com", | |
".gmail.com", | |
".gstatic.com", | |
".x.com", | |
".twimg.com", | |
".whatsapp.com", | |
".whatsapp.net", | |
]; | |
function FindProxyForURL(url, host) { | |
var idx; | |
if (isPlainHostName(host)) return "DIRECT"; | |
if (isInNet(host, "192.168.0.0", "255.255.0.0")) return "DIRECT"; | |
if (!isResolvable(host)) return "SOCKS5 127.0.0.1:22027;SOCKS 127.0.0.1:22027"; | |
host = host.toLowerCase(); | |
if (dnsDomainIs(host, ".constb.tomsk.ru")) return "DIRECT"; | |
for (idx in proxyDomainsRu) { | |
if (dnsDomainIs(host, proxyDomainsRu[idx])) { | |
return "SOCKS5 127.0.0.1:22028;SOCKS 127.0.0.1:22028"; | |
} | |
} | |
for (idx in proxyDomainsAr) { | |
if (dnsDomainIs(host, proxyDomainsAr[idx])) { | |
return "SOCKS5 127.0.0.1:22023;SOCKS 127.0.0.1:22023"; | |
} | |
} | |
for (idx in proxyDomainsCa) { | |
if (dnsDomainIs(host, proxyDomainsCa[idx])) { | |
return "SOCKS5 127.0.0.1:22024;SOCKS 127.0.0.1:22024"; | |
} | |
} | |
for (idx in proxyDomainsMx) { | |
if (dnsDomainIs(host, proxyDomainsMx[idx])) { | |
return "SOCKS5 127.0.0.1:22026;SOCKS 127.0.0.1:22026"; | |
} | |
} | |
for (idx in proxyDomainsNl) { | |
if (dnsDomainIs(host, proxyDomainsNl[idx])) { | |
return "SOCKS5 127.0.0.1:22027;SOCKS 127.0.0.1:22027"; | |
} | |
} | |
return "DIRECT"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment