当前位置:Linux教程 - Apache - apache - Apache能限制浏览器类型吗

apache - Apache能限制浏览器类型吗

Apache能限制浏览器类型吗
2004-04-23 15:18 pm
来自:Linux文档
现载:Www.8s8s.coM
地址:无名

有个家伙一直用离线浏览软件在下我的东西
竟然把流量拉到1.5m
我想制止他这么做
有没有办法啊

另,他每天都不是同一个ip,而且都是在23:00--4:00之间上来(那时我在睡觉)

谢了 不知道大家有什么好办法吗?

我没遇到这个问题 大概不会有办法阻止离线浏览网页吧?没听说过!
如果把软件的链接,链接到ftp服务器上,通过ftp服务器来限制流量,不知可不可以?

SetEnvIf User-Agent ".*MSIE.*"
nokeepalive ssl-unclean-shutdown
downgrade-1.0 force-response-1.0
在httpd.conf里面有这样的一句,这里应该是根据浏览器的不同作不同的设置的,不过我也不是很清楚怎样设?

我搞定了

谢谢各位了
vi httpd.conf

<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;" 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>

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>

只有这些是后来加上去的其他的httpd.conf里面有
这点东西应该看的懂的吧

有哪些软件可以模拟ie登陆啊?
能告诉我么,我试试看

teleprotpro没用的,人家用frontpage下载,其实teleport也可以把标记改成和IE浏览器一样,或者wget也可以啦,只能骗骗菜鸟啦。