| 1234567891011121314151617181920212223242526 |
- #limit GET querries
- geo $whitelist {
- default 0;
- 127.0.0.1/32 1;
- 164.132.206.135/32 1;
- }
- map $request_method $request_method_check {
- default 0;
- "GET" 1;
- }
- map $request_method_check:$arg_apiKey $request_check {
- default 0;
- "1:freekey" 1;
- }
- map $whitelist:$request_check $limit_request {
- default 0;
- "0:1" 1;
- }
- map $limit_request $limit {
- 1 $binary_remote_addr;
- 0 "";
- }
|