{"id":289,"date":"2009-10-25T14:01:00","date_gmt":"2009-10-25T06:01:00","guid":{"rendered":"http:\/\/iamfisher.net\/fisher\/2009\/10\/25\/tudouva-pcalieproxy-pal\/"},"modified":"2009-10-25T14:01:00","modified_gmt":"2009-10-25T06:01:00","slug":"tudouva-pcalieproxy-pal","status":"publish","type":"post","link":"https:\/\/iamfisher.net\/fisher\/2009\/10\/25\/tudouva-pcalieproxy-pal\/","title":{"rendered":"tudouva.pcal=&gt;ieproxy.pal"},"content":{"rendered":"<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  \u00a0\u00a0<\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  \u00a0\u00a0 \u00a0function FindProxyForURL(url, host){<\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  \u00a0\u00a0 \u00a0host=host.toLowerCase();<\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  \u00a0\u00a0 \u00a0if (<\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  \u00a0\u00a0 \u00a0dnsDomainIs(host,&quot;<a href=\"http:\/\/youtube.com\">youtube.com<\/a>&quot;)<\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  \u00a0\u00a0 \u00a0||dnsDomainIs(host,&quot;<a href=\"http:\/\/ytimg.com\">ytimg.com<\/a>&quot;)<\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  \u00a0\u00a0 \u00a0||dnsDomainIs(host,&quot;<a href=\"http:\/\/twitter.com\">twitter.com<\/a>&quot;)<\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  \u00a0\u00a0 \u00a0||dnsDomainIs(host,&quot;<a href=\"http:\/\/facebook.com\">facebook.com<\/a>&quot;)<\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  \u00a0\u00a0 \u00a0||dnsDomainIs(host,&quot;<a href=\"http:\/\/fbcddn.net\">fbcddn.net<\/a>&quot;)<\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  \u00a0\u00a0 \u00a0)<\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  \u00a0\u00a0 \u00a0 \u00a0 \u00a0return &quot;PROXY <a href=\"http:\/\/127.0.0.1:8118\">127.0.0.1:8118<\/a>&quot;;<\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  \u00a0\u00a0 \u00a0else<\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  \u00a0\u00a0 \u00a0 \u00a0 \u00a0\/\/return &quot;DIRECT&quot;;<\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  \u00a0\u00a0 \u00a0 \u00a0 \u00a0FindProxyForURL2(url, host);<\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  \u00a0\u00a0 \u00a0}<\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p><\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  function FindProxyForURL2(url, host) {<\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  \u00a0if(isPlainHostName(host)<\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  \u00a0<span class=\"Apple-tab-span\" style=\"white-space:pre\">\t<\/span> || url.substring(0,5) != &quot;http:&quot;\u00a0<\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  \u00a0<span class=\"Apple-tab-span\" style=\"white-space:pre\">\t<\/span> || shExpMatch(url,&quot;http:\/\/localhost:*&quot;)<span class=\"Apple-tab-span\" style=\"white-space:pre\">\t<\/span>\u00a0<\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  \u00a0<span class=\"Apple-tab-span\" style=\"white-space:pre\">\t<\/span> || shExpMatch(url,&quot;http:\/\/127.0.0.1:*&quot;)<\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  \u00a0<span class=\"Apple-tab-span\" style=\"white-space:pre\">\t<\/span> )<\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  \u00a0<span class=\"Apple-tab-span\" style=\"white-space:pre\">\t<\/span> \u00a0return &quot;DIRECT&quot;;\u00a0<\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  \u00a0if(shExpMatch(url, &quot;*.flv*&quot;)\u00a0<\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  \u00a0<span class=\"Apple-tab-span\" style=\"white-space:pre\">\t\t<\/span>|| shExpMatch(url, &quot;*.mp4*&quot;)\u00a0<\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  \u00a0<span class=\"Apple-tab-span\" style=\"white-space:pre\">\t\t<\/span>|| shExpMatch(url, &quot;*.m4v*&quot;)\u00a0<\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  \u00a0<span class=\"Apple-tab-span\" style=\"white-space:pre\">\t\t<\/span>|| shExpMatch(url, &quot;*.f4v*&quot;)<\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  \u00a0<span class=\"Apple-tab-span\" style=\"white-space:pre\">\t\t<\/span>){<\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  \u00a0<span class=\"Apple-tab-span\" style=\"white-space:pre\">\t\t<\/span> if(shExpMatch(url, &quot;*<a href=\"http:\/\/hzplayer0.tudou.com\">hzplayer0.tudou.com<\/a>*&quot;))<\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  \u00a0<span class=\"Apple-tab-span\" style=\"white-space:pre\">\t\t<\/span> <span class=\"Apple-tab-span\" style=\"white-space:pre\">\t<\/span> return &quot;DIRECT&quot;;<\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  \u00a0<span class=\"Apple-tab-span\" style=\"white-space:pre\">\t\t<\/span> else<\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  \u00a0<span class=\"Apple-tab-span\" style=\"white-space:pre\">\t\t<\/span> \u00a0 \u00a0return &quot;PROXY <a href=\"http:\/\/127.0.0.1:9415\">127.0.0.1:9415<\/a>&quot;;<\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  \u00a0<span class=\"Apple-tab-span\" style=\"white-space:pre\">\t\t<\/span> }<\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  \u00a0\u00a0else return &quot;DIRECT&quot;;<\/p><\/blockquote>\n<blockquote class=\"gmail_quote\" style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \"><p>  }<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0\u00a0 \u00a0\u00a0 \u00a0function FindProxyForURL(url, host){ \u00a0\u00a0 \u00a0host=ho [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-289","post","type-post","status-publish","format-standard","hentry","category-default"],"_links":{"self":[{"href":"https:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/posts\/289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/comments?post=289"}],"version-history":[{"count":0,"href":"https:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/posts\/289\/revisions"}],"wp:attachment":[{"href":"https:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/media?parent=289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/categories?post=289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iamfisher.net\/fisher\/wp-json\/wp\/v2\/tags?post=289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}