Answer the question
In order to leave comments, you need to log in
How to change pages on the fly that are given to bots that make too many requests?
Now too active bots and parsers are cut off through limit_req_zone $binary_remote_addr zone=one:10m rate=2r/s;
I want to make sure that the pages are given to them, but with distorted information. Let's say replacing text in a certain block with another.
Or another way - can Nginx add a specific HTTP header to requests from such bots? Then I will change the output at the web application level.
Answer the question
In order to leave comments, you need to log in
limit_req_status + error_page
limit_req_status 403;
error_page 403 = /file.php?bot;
Or another way - can Nginx add a specific HTTP header to requests from such bots? Then I will change the output at the web application level.
proxy_set_header
.
And what's the point of processing requests from bots? Or is it so to speak from the category of annoy?
rate=2r/s
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question