Squid修改用户浏览器的User-agent信息
2012-10-20 12:14 游乐场123 阅读(631) 评论(0) 编辑 收藏 举报Well, this depends on squid version.
For 2.5-3.1 you can use just header_replace:
Code:
header_replace User-Agent Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)
For recent 3.1+ you should change the above, to:
Code:
request_header_access User-Agent deny all request_header_replace User-Agent Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)
Regards