raksmart活动促销

分享

写回答

发帖

请问如何批量添加禁止访问ip

互联网出海创业 互联网出海创业 5096 人阅读 | 5 人回复

发表于 2008-10-29 10:29:24 | 显示全部楼层 |阅读模式

lp的后台只能一个一个添加
   怎么批量添加
按下面的帖子的说明添加后 网站不能访问
在.htacces 文件里 应该怎么修改啊
http://bbs.idcspy.com/thread-21279-1-1.html

回答|共 5 个

add.c

发表于 2008-10-29 10:37:17 | 显示全部楼层

http://kb.idcspy.com/Htaccess
RAKSmart

comeasyouare

发表于 2008-10-29 10:39:23 | 显示全部楼层

我按照 这个 写的

Blocking users by IP 根据IP阻止用户访问

order allow,deny

deny from 123.45.6.7

deny from 12.34.5. (整个C类地址)

allow from all
















order allow,deny
deny from 58.14.0.0/15
deny from 58.16.0.0/16
deny from 58.17.0.0/17
deny from 58.17.128.0/17
deny from 58.18.0.0/16
deny from 58.19.0.0/16
deny from 58.20.0.0/16
deny from 58.21.0.0/16
deny from 58.22.0.0/15
deny from 58.24.0.0/15
deny from 58.30.0.0/15
deny from 58.32.0.0/13
deny from 58.40.0.0/15
deny from 58.42.0.0/16
deny from 58.43.0.0/16
deny from 58.44.0.0/14
deny from 58.48.0.0/13
deny from 58.56.0.0/15
deny from 58.58.0.0/16
deny from 58.59.0.0/17
deny from 58.59.128.0/17
deny from 58.60.0.0/14
deny from 58.66.0.0/15
deny from 58.68.128.0/17

象上面一样写 网站不能访问了

add.c

发表于 2008-10-29 10:54:04 | 显示全部楼层

后面添加allow from all

ffnn

发表于 2008-10-29 12:06:37 | 显示全部楼层

只需要一个deny from 就可以了。

comeasyouare

发表于 2008-10-29 14:52:16 | 显示全部楼层

原帖由 ffnn 于 2008-10-29 12:06 PM 发表
只需要一个deny from 就可以了。


不行啊 是不是不能分行啊
  必须在后面跟着写 不能回车分行吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则