Skip to content

Commit b43851a

Browse files
committed
update limiting/blocking user agents
- signed-off-by: trimstray <trimstray@gmail.com>
1 parent ef5b2fe commit b43851a

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

doc/HELPERS.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6538,7 +6538,13 @@ Example 1:
65386538
map $http_user_agent $invalid_ua {
65396539
65406540
default 0;
6541-
"python-requests" 1;
6541+
~*scrapyproject 1;
6542+
~*netcrawler 1;
6543+
~*nmap 1;
6544+
~*sqlmap 1;
6545+
~*slowhttptest 1;
6546+
~*nikto 1;
6547+
~*python-requests 1;
65426548
65436549
}
65446550
@@ -6562,7 +6568,13 @@ Example 1:
65626568
map $http_user_agent $limit_ip_key_by_ua {
65636569
65646570
default "";
6565-
"python-requests" $binary_remote_addr;
6571+
~*scrapyproject binary_remote_addr;
6572+
~*netcrawler binary_remote_addr;
6573+
~*nmap binary_remote_addr;
6574+
~*sqlmap binary_remote_addr;
6575+
~*slowhttptest binary_remote_addr;
6576+
~*nikto binary_remote_addr;
6577+
~*python-requests binary_remote_addr;
65666578
65676579
}
65686580

0 commit comments

Comments
 (0)