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 moduele 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.
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 moduele 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.