欢迎您,零度科技专业海外服务器租用
公司电话: 24小时电话: 

当前位置:首页>新闻动态>网络安全

目录导航

squid 3.0 隐藏hearder的设置方法

香港硬防(2G)机房 添加于 2013-08-04   安全设置squidcdn加速

网络安全

squid2.6可以使用header_access来控制显示与隐藏http的header信息,但是在squid3.0版本中这个参数是用不了的,所以如果要在3.0中隐藏http的header信息的话,就需要使用另外一个参数:reply_header_access

此参数的使用和header_access的类似,比如要隐藏VIA头信息,设置如下
reply_header_access Via deny all

如果需要隐藏其他的信息,可以参考上面的例子,把对应的header更改了就行,http的header信息如下

Accept                          HTTP_ACCEPT 
Accept-Charset                  HTTP_ACCEPT-CHARSET 
Accept-Encoding                 HTTP_ACCEPT-ENCODING 
Accept-Language                 HTTP_ACCEPT-LANGUAGE 
Accept-Ranges                   HTTP_ACCEPT-RANGES 
Age                             HTTP_AGE 
Allow                           HTTP_ALLOW 
Authorization                   HTTP_AUTHORIZATION 
Cache-Control                   HTTP_CACHE-CONTROL 
Connection                      HTTP_CONNECTION 
Content-Base                    HTTP_CONTENT-BASE 
Content-Disposition             HTTP_CONTENT-DISPOSITION 
Content-Encoding                HTTP_CONTENT-ENCODING 
Content-Language                HTTP_CONTENT-LANGUAGE 
Content-Length                  HTTP_CONTENT-LENGTH 
Content-Location                HTTP_CONTENT-LOCATION 
Content-MD5                     HTTP_CONTENT-MD5 
Content-Range                   HTTP_CONTENT-RANGE 
Content-Type                    HTTP_CONTENT-TYPE 
Cookie                          HTTP_COOKIE 
Date                            HTTP_DATE 
ETag                            HTTP_ETAG 
Expires                         HTTP_EXPIRES 
From                            HTTP_FROM 
Host                            HTTP_HOST 
If-Match                        HTTP_IF-MATCH 
If-Modified-Since               HTTP_IF-MODIFIED-SINCE 
If-None-Match                   HTTP_IF-NONE-MATCH 
If-Range                        HTTP_IF-RANGE 
Last-Modified                   HTTP_LAST-MODIFIED 
Link                            HTTP_LINK 
Location                        HTTP_LOCATION 
Max-Forwards                    HTTP_MAX-FORWARDS 
Mime-Version                    HTTP_MIME-VERSION 
Pragma                          HTTP_PRAGMA 
Proxy-Authenticate              HTTP_PROXY-AUTHENTICATE 
Proxy-Authentication-Info       HTTP_PROXY-AUTHENTICATION-INFO 
Proxy-Authorization             HTTP_PROXY-AUTHORIZATION 
Proxy-Connection                HTTP_PROXY-CONNECTION 
Public                          HTTP_PUBLIC 
Range                           HTTP_RANGE 
Referer                         HTTP_REFERER 
Request-Range                   HTTP_REQUEST-RANGE 
Retry-After                     HTTP_RETRY-AFTER 
Server                          HTTP_SERVER 
Set-Cookie                      HTTP_SET-COOKIE 
Title                           HTTP_TITLE 
Transfer-Encoding               HTTP_TRANSFER-ENCODING 
Upgrade                         HTTP_UPGRADE 
User-Agent                      HTTP_USER-AGENT 
Vary                            HTTP_VARY 
Via                             HTTP_VIA 
Warning                         HTTP_WARNING 
WWW-Authenticate                HTTP_WWW-AUTHENTICATE 
Authentication-Info             HTTP_AUTHENTICATION-INFO 
X-Cache                         HTTP_X-CACHE 
X-Cache-Lookup                  HTTP_X-CACHE-LOOKUP 
X-Forwarded-For                 HTTP_X-FORWARDED-FOR 
X-Request-URI                   HTTP_X-REQUEST-URI 
X-Squid-Error                   HTTP_X-SQUID-ERROR 
Negotiate                       HTTP_NEGOTIATE 
X-Accelerator-Vary              HTTP_X-ACCELERATOR-VARY 
Other:                          HTTP_OTHER:

本文出自零度科技转载请注明出处:http://www.ldisp.com/a/safe/2013/1743.shtml

上一篇:隐藏或伪装Apache 的版本信息(apache版本信息修改)
下一篇:PHP DDOS攻击的处理办法

 
了解零度?

零度科技主营全球服务器租用,如果您有服务器租用需求请联系

海外服务器租用

推荐香港、美国、韩国。提供站群服务器、高防服务器租用

海外特价服务器

关注零度特价服务器频道,了解全球特价服务器。

0

业务咨询

    技术服务

      特价活动
        全站搜索
        热门搜索:
        会员
        0通知
        客服
        0特价
        搜索
        TOP
        香港高防服务器,远程桌面,韩国服务器,nginx,反向代理