Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Request denying in a specific time range

$
0
0
Hi,

I need to block requests that are made in a specific time range as long as it's not an exclusion like in the pseudo code below.

I know that perl module is not allowed to be called inside "if" block and there is no possibility to pass arguments to perl block from location or vice versa.

Any help would be appreciated..

location {
..
if (true){
set $block_request 1
}

perl req_time_control::handler $block_request;

}

R.

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>