Giter Club home page Giter Club logo

ngx_access_log_waf's Introduction

ngx_access_log_waf

通过实时分析nginx 的access log 进行 WAF(Web Application Firewall,简称: WAF) 防预

需求:

  • 通过分析 旧的access-log 中URL的调用频率,对请求URL设定合理调用频率范围,
  • 以星期为波动周期,每分钟为采样单位,使调用范围自动更新,以适应用户增长。

基于以上需求,网上类似的WAF,如ngx_lua_waf 并不合适。

例子

URL: /restful/login
在周一9:30的调用频率是最高的,假定为以下数值:
  - HTTP_status_code_200:100/s, 
  - HTTP_status_code_403:100/s,
那么在下周一的同一时刻,其调用次数也应该在此范围正负 *10%* 侧认为正常。

ngx_access_log_waf's People

Contributors

toontong avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.