我的番茄炒蛋
生活如此精彩,挑战无处不在!

导航

 

如何让一个ip比如192.168.1.1 访问http://www.baidu.com/search/error.html时,实际访问的是http://www.google.cn/webhp/error.html ^_^

 

 acl denyip src192.168.1.1/32

#acl baidu urlpath_regex -i^http://www.baidu.com/search/error.html (错误)

 acl baidu url_regex -i^http://www.baidu.com/search/error.html     (正确)
 http_access deny deny_ip baidu
 deny_info http://www.google.cn/webhp/error.htmlbaidu

这样deny_ip这个用户访问http://www.baidu.com/search/error.html就会自动跳转到http://www.google.cn/webhp/error.html,而访问其他页面时不受影响。

posted on 2010-06-07 22:37  bluesky  阅读(649)  评论(0)    收藏  举报