Code Monkey home page Code Monkey logo

Comments (5)

luweijun1992 avatar luweijun1992 commented on June 2, 2024

背景与遇到的问题

我的业务是管理信息系统,一般只有基层工作人员访问,只会使用浏览器正常打开,平时碰到只要匹配到攻击类型中的一般都需要进行封禁,目前系统设置成经过时间30秒,拦截次数超时1次。本想着只要攻击ip有一次匹配到攻击事件的就封禁,但咱系统的逻辑是超过1次,也就是说需要30秒内触发2次才可以封禁。经常会碰到1分钟一次触发或更长时间一次才会触发的慢速攻击,无法有效拦截。

建议的解决方案

建议:拦截次数超过1次改为 拦截次数是1次就拦截,而不是2次才封禁拦截。 如果设置是2,那就是一定时间内2次就拦截。不要用超过。

设置如下试试看:
30秒超过0次
image

from safeline.

zhuanmentiwen avatar zhuanmentiwen commented on June 2, 2024

设置超过不能小于1。。。0次设置不了。。我用的是V3.0.1版本。

from safeline.

luweijun1992 avatar luweijun1992 commented on June 2, 2024

设置超过不能小于1。。。0次设置不了。。我用的是V3.0.1版本。

让官方优化优化。
@Lorna0

from safeline.

luweijun1992 avatar luweijun1992 commented on June 2, 2024

感觉这个应该设置为“大于等于”更加合适;
看下怎么优化

from safeline.

Lorna0 avatar Lorna0 commented on June 2, 2024

3.2 版本中,限频的生效阈值由 “超过 xx 次” 改为 “达到 xx 次”,师傅可以再试一下

from safeline.

Related Issues (20)

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.