Apache限制浏览器类型

Apache限制浏览器类型

<IfModule mod_setenvif.c>; 


# The following directives modify normal HTTP response behavior. 
# The first directive disables keepalive for Netscape 2.x and browsers that 
# spoof it. There are known problems with these browser implementations. 
# The second directive is for Microsoft Internet Explorer 4.0b2 
# which has a broken HTTP/1.1 implementation and does not properly 
# support keepalive when it is used on 301 or 302 (redirect) responses. 

BrowserMatch "Mozilla/2" nokeepalive 
BrowserMatch "MSIE 4.0b2&#59;" nokeepalive downgrade-1.0 force-response-1.0 


# The following directive disables HTTP/1.1 responses to browsers which 
# are in violation of the HTTP/1.0 spec by not being able to grok a 
# basic 1.1 response. 

BrowserMatch "RealPlayer 4.0" force-response-1.0 
BrowserMatch "Java/1.0" force-response-1.0 
BrowserMatch "JDK/1.0" force-response-1.0 

BrowserMatch ^Mozilla IE 
BrowserMatch ^Lynx IE 
BrowserMatch ^Wget/1 IE 
BrowserMatch ^Googlebot IE 
BrowserMatch ^Java1.3.1 IE 
BrowserMatch ^3721AGENT IE 
BrowserMatch ^lwp-request IE 
BrowserMatch ^ApacheBench IE 

<Location />; 
Deny from all 
Allow from env=IE 
</Location>; 
</IfModule>;

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值