Run Test (Detect Random UA strings)

This commit is contained in:
Mitchell Krog 2021-02-05 11:14:21 +02:00 committed by GitHub
parent 9bf4ae4439
commit 3818ef26ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -127,6 +127,10 @@
map $http_user_agent $bad_bot {
default 0;
# Added 2021-02-05
# Regex to detect Random UA Strings
"~*(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9]).{12,}" 3;
# -----------------------------------------------------------------------------------
# START CUSTOM BLACKLISTED USER AGENTS ### DO NOT EDIT OR REMOVE THIS LINE AT ALL ###
# -----------------------------------------------------------------------------------