今天教大家如何配置nginx进行流量限制。
限制每个IP一个线程,每个线程30K/s限制;防治盗链,将盗链的URL显示为指定图片;

在171上测试通过。

下载限制的相关配置

http {
        limit_zone one $binary_remote_addr 10m;
        server {
                location /upload/ {
                      limit_conn one 1;
                      limit_rate 30k;
                }
       }
}

相关文章:

  • 2021-06-30
  • 2022-02-23
  • 2019-09-05
  • 2022-12-23
  • 2021-11-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-08
  • 2020-12-19
  • 2021-11-03
  • 2021-09-26
相关资源
相似解决方案