› NGINX
› NGINX Trac
› 3rd Party Modules
› Security Advisories
› CHANGES
› OpenResty
› ngx_lua
› Tengine
在线学习资源
› NGINX 开发从入门到精通
NGINX Modules
› ngx_echo
ladyv2
V2EX  ›  NGINX

nginx 有没有什么办法对同一个 IP 下的不同用户(移动大内网!)进行限速?

  •  
  •   ladyv2 · Jun 23, 2016 · 5462 views
    This topic created in 3795 days ago, the information mentioned may be changed or developed.

    目前的 limit req/conn 似乎如果针对 IP 限制,会严重影响移动的宽带用户。。。

    有没有什么办法针对不同用户产生不同指纹,然后根据指纹限速?

    想了下可以把IP和浏览器类型结合起来限速,但是这样似乎还是会有大量的重合,效果不是很好

    12 replies  •  2016-06-24 12:40:55 +08:00
    Tony1ee
    Tony1ee
    Jun 23, 2016 via Android
    1
    不知道能不能结合 UA
    lslqtz
    lslqtz
    Jun 23, 2016
    2
    如果是移动的 IP ,就判断 UA 或者不限速。
    其他往死里限
    lslqtz
    lslqtz
    Jun 23, 2016
    3
    根据 Cookie 也可以?
    New2016
    New2016
    Jun 23, 2016 via iPhone
    4
    你可以结合那个 webrtc 探测本机 ip 来看其本机的内网 ip
    Andy1999
    Andy1999
    Jun 23, 2016 via iPhone
    5
    session
    lfzyx
    lfzyx
    Jun 23, 2016
    6
    nginx 没有这样的模块吧
    wizardoz
    wizardoz
    Jun 23, 2016
    7
    根据帐号比较靠谱吧
    lhbc
    lhbc
    Jun 23, 2016 via Android
    8
    可以针对连接来限速
    fcicq
    fcicq
    Jun 23, 2016
    9
    层级错了? 单连接限速是 nginx 的工作, 多连接限速是 QoS 了.
    ladyv2
    ladyv2
    OP
    Jun 23, 2016
    10
    @lhbc 针对连接限速没有意义啊
    需要限制的是连接数。。。
    snsd
    snsd
    Jun 24, 2016 via iPhone
    11
    @Tony1ee UA 跟宽带运营商应该没啥关系吧?
    ladyv2
    ladyv2
    OP
    Jun 24, 2016
    12
    @snsd 问题是浏览器就这么几种,相同 UA 的用户还是很多的。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2134 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 12:21 · PVG 20:21 · LAX 04:21 · JFK 07:21
    ♥ Do have faith in what you're doing.