Skip to content

Limiting requests by zone "flood" #181

Open
@extensionsapp

Description

@extensionsapp

Hello.

nginx.conf

limit_req_zone $binary_remote_addr zone=flood:50m rate=90r/s;

ddos.conf

limit_req zone=flood burst=200 nodelay;

domain.conf

    include /etc/nginx/bots.d/ddos.conf;
    ...
    location /images/ {
        rewrite           "^\/images\/(poster|picture)\/(medium|small)\/.*img([0-9]+).*\.jpg$" "/$1/$2/$3.jpg" break;
        root              /var/local/images;
        expires           30d;
        access_log        off;
        autoindex         off;
        add_header        Cache-Control "public, no-transform";
        proxy_cache       cinemacache;
        proxy_cache_valid 404 500 502 503 504 1m;
        proxy_cache_valid any 30d;
        try_files $uri    /poster/no-poster.jpg /poster/small/629951.jpg =404;
    }

And have error /images/. But referrer and URL, it`s my website.

2018/08/28 05:38:12 [error] 2612#2612: *18433 limiting requests, excess: 200.640 by zone "flood", request: "GET /images/poster/medium/img273679-devochka-pol...

The site itself floods?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions