<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          ngx_cookie_limit_req_modulenginx cookie 訪問(wèn)限制模塊

          聯(lián)合創(chuàng)作 · 2023-09-30 19:51

          此模塊不僅限制cookie的訪問(wèn)速率,而且還限制惡意IP偽造cookie的數(shù)量。

          cd redis-4.0**version**/deps/hiredis
          make 
          make install 
          echo /usr/local/lib >> /etc/ld.so.conf
          ldconfig
          
          cd nginx-**version**
          ./configure --add-module=/path/to/this/ngx_cookie_limit_req_module 
          make
          make install

          配置模板

              worker_processes  2;
              events {
                  worker_connections  1024;
              }
              http {
                  include       mime.types;
                  default_type  application/octet-stream;
                  sendfile        on;
                  keepalive_timeout  65;
                  
          cookie_limit_req_zone $http_cookie zone=two:10m rate=30r/s redis=127.0.0.1 block_second=300 cookie_max=5;
          cookie_limit_req zone=two burst=30 nodelay;
          cookie_limit_req_status 403;
          
                  
                  
                  server {
                      listen       80;
                      server_name  localhost;
                      location / {
                          root   html;
                          index  index.html index.htm;
                      }
                      error_page   403 500 502 503 504  /50x.html;
                      location = /50x.html {
                          root   html;
                      }
                  }
              }
             
          瀏覽 18
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評(píng)論
          圖片
          表情
          推薦
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  激情综合婷婷久久 | 91国产网站 | 97色色婷婷五月天 | 人善交精品一区二区三区 | 亚洲婷婷五月天 |