【问题标题】:Make Squid proxy transparent for User-Agent header使 Squid 代理对 User-Agent 标头透明
【发布时间】:2014-03-23 21:16:19
【问题描述】:

当我使用代理服务器(基于 Squid3)时,代理服务器正在更改我的 User-Agent 请求标头。

例如,如果我的浏览器真实代理是:

Mozilla/5.0 (Windows NT 6.3; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0

使用我的代理服务器后,User-Agent 为空 - 由 Squid 代理服务器更改。

这可能是 Squid 服务器不会更改 user-agent 吗?按原样转移。

【问题讨论】:

    标签: proxy squid


    【解决方案1】:

    找到解决方案:

    request_header_access User-Agent allow all
    

    【讨论】:

      【解决方案2】:

      您必须在 /etc/squid3/squid.conf 中使用以下行

      sudo vim /etc/squid3/squid.conf
      
      header_access User-Agent allow all
      #  TAG: header_access
      #       Since squid-3.0 replace with request_header_access or reply_header_access
      #       depending on whether you wish to match client requests or server replies.
      
      :wq
      
      sudo service squid3 restart
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2011-01-30
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-05-03
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多