└── config.pac /config.pac: -------------------------------------------------------------------------------- 1 | function FindProxyForURL(url, host) { 2 | // YouTubeのドメインをブロック(youtube.com、youtu.beおよびそのサブドメイン) 3 | if (dnsDomainIs(host, "youtube.com") || 4 | shExpMatch(host, "*.youtube.com") || 5 | dnsDomainIs(host, "youtu.be") || 6 | shExpMatch(host, "*.youtu.be")) { 7 | // 存在しないプロキシを指定 → アクセスをブロック 8 | return "PROXY 127.0.0.1:8080"; 9 | } 10 | // それ以外は直接アクセス 11 | return "DIRECT"; 12 | } 13 | --------------------------------------------------------------------------------