欧美日日操,日日爱网站,99久久久久久久,日本高清不卡免费,久久免费观看国产精品,秋霞在线观看视频一区二区三区

始創于2000年 股票代碼:831685
咨詢熱線:0371-60135900 注冊有禮 登錄
  • 掛牌上市企業
  • 60秒人工響應
  • 99.99%連通率
  • 7*24h人工
  • 故障100倍補償
您的位置: 網站首頁 > 幫助中心>文章內容

為Windows下的Apache服務器添加防DDoS模塊

發布時間:  2012/7/3 17:55:49
為Windows下的Apache服務器添加防DDoS模塊
為了防HTTP DoS或DDos攻擊,我們可能會對服務器添加很多種防護產品,可能會購買專業的DDoS硬件防火墻,當然,目前并沒有一種很成熟的技術能完全封鎖住DDoS攻擊。但如果對于小型網站服務器來說,Apache的evasive模塊是比較簡單的處理方法,原理也很簡單,判斷一段時間內,某個IP訪問的次數是否過快,如果過快,就返回403錯誤。
但是官方的evasive模塊發布的是源代碼和linux下的RPM壓縮包,雖然可以在windows使用源代碼編譯出這個模塊來,但是由于windows系統本身的原因,幾乎不會在默認的情況下安裝C語言的編譯環境,如果需要安裝這個編譯環境要安裝非常多而繁雜的軟件,操作起來非常不便。但是在LINUX系統下編譯好的文件卻不能在WINDOWS下使用,這是兩個系統核心的區別,肯定不能使用。
我在別的網站找到了WINDOWS下用的編譯好的DLL文件,方便使用WINDOWS系統,同時又是Apache 2.2服務器軟件的站長們使用。
安裝方法:
1、下載附件中的壓縮包,解壓并拷貝mod_dosevasive22.dll到Apache安裝目錄下的modules目錄(當然也可以是其他目錄,需要自己修改路徑)。
2、修改Apache的配置文件http.conf。
添加以下內容
LoadModule dosevasive22_module modules/mod_dosevasive22.dll
DOSHashTableSize 3097
DOSPageCount 3
DOSSiteCount 50
DOSPageInterval 1
DOSSiteInterval 1
DOSBlockingPeriod 10
其中DOSHashTableSize 3097 記錄黑名單的尺寸
DOSPageCount 3 每個頁面被判斷為dos攻擊的讀取次數
DOSSiteCount 50 每個站點被判斷為dos攻擊的讀取部件(object)的個數
DOSPageInterval 1 讀取頁面間隔秒
DOSSiteInterval 1 讀取站點間隔秒
DOSBlockingPeriod 10 被封時間間隔秒
___________________________________________
首先,在 httpd.conf 加入
LoadModule dosevasive22_module modules/mod_dosevasive22.dll
如果需要配置,在 httpd.conf 加入:
<ifmodule dosevasive22_module>
DOSHashTableSize 3097
DOSPageCount 2
DOSSiteCount 50
DOSPageInterval 1
DOSSiteInterval 1
DOSBlockingPeriod 10
</ifmodule>
各參數的配置說明如下:
DOSHashTableSize
?????-
The hash table size defines the number of top-level nodes for each child’s
hash table. Increasing this number will provide faster performance by
decreasing the number of iterations required to get to the record, but
consume more memory for table space. You should increase this if you have
a busy web server. The value you specify will automatically be tiered up to
the next prime number in the primes list (see mod_evasive.c for a list
of primes used).
DOSPageCount
????
This is the threshhold for the number of requests for the same page (or URI)
per page interval. Once the threshhold for that interval has been exceeded,
the IP address of the client will be added to the blocking list.
DOSSiteCount
????
This is the threshhold for the total number of requests for any object by
the same client on the same listener per site interval. Once the threshhold
for that interval has been exceeded, the IP address of the client will be added
to the blocking list.
DOSPageInterval
?????
The interval for the page count threshhold; defaults to 1 second intervals.
DOSSiteInterval
?????
The interval for the site count threshhold; defaults to 1 second intervals.
DOSBlockingPeriod
??????
The blocking period is the amount of time (in seconds) that a client will be
blocked for if they are added to the blocking list. During this time, all
subsequent requests from the client will result in a 403 (Forbidden) and
the timer being reset (e.g. another 10 seconds). Since the timer is reset
for every subsequent request, it is not necessary to have a long blocking
period; in the event of a DoS attack, this timer will keep getting reset.
WHITELISTING IP ADDRESSES
IP addresses of trusted clients can be whitelisted to insure they are never
denied. The purpose of whitelisting is to protect software, scripts, local
searchbots, or other automated tools from being denied for requesting large
amounts of data from the server. Whitelisting should *not* be used to add
customer lists or anything of the sort, as this will open the server to abuse.
This module is very difficult to trigger without performing some type of
malicious attack, and for that reason it is more appropriate to allow the
module to decide on its own whether or not an individual customer should be
blocked.
To whitelist an address (or range) add an entry to the Apache configuration
in the following fashion:
DOSWhitelist 127.0.0.1
DOSWhitelist 127.0.0.*
Wildcards can be used on up to the last 3 octets if necessary. Multiple
DOSWhitelist commands may be used in the configuration.
下載鏈接:下載

本文出自:億恩科技【www.sunshares.net】

服務器租用/服務器托管中國五強!虛擬主機域名注冊頂級提供商!15年品質保障!--億恩科技[ENKJ.COM]

  • 您可能在找
  • 億恩北京公司:
  • 經營性ICP/ISP證:京B2-20150015
  • 億恩鄭州公司:
  • 經營性ICP/ISP/IDC證:豫B1.B2-20060070
  • 億恩南昌公司:
  • 經營性ICP/ISP證:贛B2-20080012
  • 服務器/云主機 24小時售后服務電話:0371-60135900
  • 虛擬主機/智能建站 24小時售后服務電話:0371-60135900
  • 專注服務器托管17年
    掃掃關注-微信公眾號
    0371-60135900
    Copyright© 1999-2019 ENKJ All Rights Reserved 億恩科技 版權所有  地址:鄭州市高新區翠竹街1號總部企業基地億恩大廈  法律顧問:河南亞太人律師事務所郝建鋒、杜慧月律師   京公網安備41019702002023號
      0
     
     
     
     

    0371-60135900
    7*24小時客服服務熱線