请问怎么用apache屏蔽某个IP访问??

由 toyoq 在 07-10-2003 16:14 发表:

请问怎么用apache屏蔽某个IP访问??

应该怎么修改文件??谢谢了!


由 goodgod 在 07-10-2003 17:10 发表:


用iptable把!!!


由 toyoq 在 07-10-2003 20:36 发表:


可以详细点么?


由 toyoq 在 07-12-2003 16:48 发表:


顶!!!!!!!!!!!!


由 sfatsdu 在 07-12-2003 18:38 发表:


apache 1.3

http://httpd.apache.org/docs/mod/mod_access.html

apache 2.0

http://httpd.apache.org/docs-2.0/mod/mod_access.html

Chinese Document:apache 2.0

http://kajaa.bbs.us/docs/LocalDocs/amiproject.html


nObODy


由 nobody_am 在 07-13-2003 00:24 发表:


用host.allow,和host.deny好像也可以。


解放思想,实事求是!!


由 nobody_am 在 07-13-2003 12:17 发表:


控制方法:

1<directory html="" internal="" var="" www="">   
2  
3order allow,deny   
4  
5allow from .andsky.com   
6  
7</directory>

The order statement can take two argument: order allow,deny and order deny,allow .

order allow,deny :

allows explicitly allowed cilents,denies everyone else;

clients match by both allow and deny are denied

order deny,allow :

denies explicitly denied clients,allows everyone else,

clients matched by both allow and deny are allowed


解放思想,实事求是!!


由 toyoq 在 07-18-2003 00:13 发表:

谢谢

谢谢各位!不过楼上这个怎么弄啊?

比如我要评比12.34.56.78这个IP,应该怎么修改?再一次谢谢!


由 nobody_am 在 07-18-2003 03:06 发表:


1.只允许 12.34.56.01访问,其他的都不允许访问,当然包含12.34.56.78

1<directory html="" internal="" var="" www="">   
2  
3order allow,deny   
4  
5allow from 12.34.56.01   
6  
7</directory>

2.只拒绝12.34.56.78,其他都允许:

1<directory html="" internal="" var="" www="">   
2  
3order deny,allow   
4  
5deny from 12.34.56.78   
6  
7</directory>

注意 : 如果1 变为:

1<directory html="" internal="" var="" www="">   
2  
3order allow,deny   
4  
5allow from 12.34.56.01   
6  
7de</directory>
Published At
Categories with 服务器类
Tagged with
comments powered by Disqus