看板 FreeBSD 關於我們 聯絡資訊
※ 引述《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)