自动代理文件格式 Proxy Auto Config

码农软件 · 软件分类 · 协议和规范 · 2019-10-13 15:41:55

软件介绍

自动代理文件格式-PAC,它是微软发明的,1999年就提交到了IETF标准化组织,但后来就没有下文了,好在常见的浏览器 (Firefox,IE,Safari)都实现了对PAC支持。利用PAC我们可以对某些特定站点或移动到特定的网络时选择特定的代理服务器来浏览网页, 这解决了很多时候的不便利。

PAC的语法很简单,下面就是一个例子:

function FindProxyForURL(url, host) {
if (
 shExpMatch(url,"*.mitbbs.com*") ||
 shExpMatch(url,"*.pandora.com*") ||
 shExpMatch(url,"*.popyard.org*") ||
 shExpMatch(url,"*.wordpress.com*") ||
 shExpMatch(url,"*.bullogger.com*")
 )
 {
 return "SOCKS localhost:1080";
 }

 return "DIRECT";
}

把上面的代码保存成一个文本文件,然后配置浏览器使用这个文件。

本文地址:https://codercto.com/soft/d/16675.html

Cracking the Coding Interview

Cracking the Coding Interview

Gayle Laakmann McDowell / CareerCup / 2015-7-1 / USD 39.95

Cracking the Coding Interview, 6th Edition is here to help you through this process, teaching you what you need to know and enabling you to perform at your very best. I've coached and interviewed hund......一起来看看 《Cracking the Coding Interview》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具