分节阅读 3(1 / 1)

248.0 202.199.255.0 鞍山师范学院

[ last edited by vishard on 2003-4-4 at 17:25 ]

--------------------------------------------------------------------------------

作者: romano ( 时间: 2003-4-4 05:49 pm)

hao

--------------------------------------------------------------------------------

作者: luis ( 时间: 2003-4-4 06:53 pm)

好,我顶

--------------------------------------------------------------------------------

作者: woofun ( 时间: 2003-4-4 07:23 pm)

明显错误

--------------------------------------------------------------------------------

作者: vishard ( 时间: 2003-4-4 11:26 pm)

quote:

originally posted by woofun at 2003-4-4 07:23 pm:

明显错误

大概是附件(部分大学ip分布表)不准确,现在更新了,谢谢提醒~

--------------------------------------------------------------------------------

作者: vishard ( 时间: 2003-4-4 11:38 pm)

感谢月光大大http://emuch.net/bbs/viewthread.php?tid=2918

--------------------------------------------------------------------------------

作者: kailin ( 时间: 2003-4-6 12:48 pm)

太强了

好我顶啊!

资料来源:清风小木虫专业代理论坛

http://emuch.net/bbs/viewthread.php?tid=3310

--------------------------------------------------------------------------------

本文版权归http://emuch.net与kailin所有,请勿转载

清风小木虫专业代理论坛

http://emuch.net

标题: [推荐]muliproxy和代理脚本的配合使用(建议斑竹置顶)!!! [打印本页]

--------------------------------------------------------------------------------

作者: wzhhui ( 时间: 2003-3-21 11:54 am 标题: [推荐]muliproxy和代理脚本的配合使用(建议斑竹置顶)!!!)

觉得有用就顶一下啦!

安装完multiproxy后,点击托盘的那个multiproxy图标,

选项->代理服务器列表->菜单->文件->导入代理列表,把proxylist.txt导入(论坛每天都有的嘛)

在“通常选项”里注意将默认的超时时间改短一点比方5 s,选择下一个服务用"最快的那一个"。

好了现在multiproxy配置好了,不要关了它,如果要用它上网就开着它ie的代理里可以填127.0.0.1: 8088(这是multiproxy默认端口)。

到此还没有用到自动配置脚本,如果用脚本的话,就不用填代理了,你可以用记事本打

开myproxy.pac研究一下就不难弄懂。记得设置脚本时,参照myproxy.jpg所示来进行。

ok,现在只要你有好的代理列表,上什么网站都不用去更改ie的代理了。

如果上的是教育网ip那么,脚本会判别,从而直接连,如果不是教育网而是外面的(国外)

那么脚本会调用multiproxy返回的端口127.0.0.1:8088来连接。并且multiproxy会自动

选择最快的代理来连接,还可以几个代理一起用(相当于分块下载)。flashget下载时

也可以将代理设为127.0.0.1:8088,速度相当快。

[ last edited by wzhhui on 2003-3-21 at 19:12 ]

--------------------------------------------------------------------------------

作者: wzhhui ( 时间: 2003-3-21 11:55 am 标题: 代理脚本函数详细说明)

1、什么是代理脚本(pac)

一个pac文件其实就是一个文本文件,最简单的格式就是包含一个叫findproxyforurl的

jscript函数,ie通过传入两个变量来调用这个函数,一个是用户浏览的地址url全路经,

一个是这个url中的主机名部分(host)。这个findproxyforurl函数有三种可能的字符串

返回值,一是"direct",就是直接连接,不通过代理;二是"proxy proxyaddr:port",

其中proxyaddr和port分别是代理的地址和代理的端口;三是"socks socksaddr:port",

其中socksaddr和port分别是socks代理的地址和端口,一个自动代理文件可以是多个

选择的组合,其中用分号(;)隔开,如:

function findproxyforurl(url,host)

{

if (host == "www.mydomain.com")

return "direct";

return "proxy myproxy:80;

proxy myotherproxy:8080;

direct";

}

2、下面是代理脚本可能用到的函数和说明:

pac helper functions

dnsdomainis(host, domain) returns true if the host is part of the

specified domain, false otherwise.

isinnet(hostname, resolves the hostname and subnet ip,

subnet mask) returns true if the

hostname is within the subnet specified

by the ip address and the subnet mask,

false otherwise.

isplainhostname(host) returns true if there are no dots in the

hostname, false otherwise.

isresolvable(host) internet explorer tries to resolve the

hostname through dns and returns true if

successful, false otherwise.

localhostordomainis returns true if the host matches (host,

domain) the host portion of the domain,

or if the host matches the host and

domain portions of the domain, false

otherwise. (executed only for urls in

the local domain.)

dnsdomainlevels(host) returns the number of dots in the

hostname.

dnsresolve(host) returns a string containing the ip

address of the specified host.

myipaddress( ) returns a string containing the local

machine’s ip address.

shexpmatch(url, shexp) returns true if the supplied url matches

the specified shell expression, false

otherwise.