作者ssagit (自分らしく)
看板FreeBSD
标题Re: [问题] 怎知道主机有没有被攻击
时间Wed Mar 26 19:23:44 2008
※ 引述《stric (生命会找到出路)》之铭言:
: 想请问一下 我有租了一台主机
: FreeBSD 5.x+CPanel
: 我有安装了Discuz论坛
: 但这几天 连线速度突然变很慢
: 我就算重新开机也没有用
: 写信去问了主机商
: 主机商的回覆是
: You can not kill pid 11 because its idle, meaning that its not in use. The
: reason that your sites are slow is due to the large amount of live apache
: sessions:
: rebecca# ps auwwx | grep httpd | wc
: 87 1044 8590
: and this server's processor can not handle this:
: 但问题是 我目前论坛在线人数大概也才都70左右
: 想不出怎可能会这样 不知道是不是被攻击
: 请问要怎麽查呢?
我觉得可能不是攻击, 而是被 spider 狂抓,
你可以看看线上用户是不是很多都是相同 ip,
如果是的话, 那就很确定是这情况了....
我的做法是, 把这些 ip 挡下来,
虽然以後在一些搜寻引擎会找不到,
不过我觉得运作得顺比什麽都重要,
我是在 httpd.conf 加上这些设定:
Order allow,deny
Allow from all
# Googlebot
Deny from 66.249.64.0/20
# Yahoo! Slurp
Deny from 74.6.0.0/18
# Yahoo! Slurp China
Deny from 202.160.176.0/20
# msnbot
Deny from 65.55.210.0/24
# Baiduspider+
Deny from 61.135.
# Sosospider+
Deny from 124.115.0.0/24
Deny from 124.115.4.0/24
其中 Yahoo!China、百度、Soso 等强烈建议把它们挡掉,
至於 Yahoo!、Google 则可以考虑部分开放....
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 59.104.123.129
※ 编辑: ssagit 来自: 59.104.123.129 (03/26 19:24)