From 21020b6f56e3f77dba2db88791355faa21bf5a2e Mon Sep 17 00:00:00 2001 From: Mitchell Krog Date: Fri, 5 Jul 2019 08:26:51 +0200 Subject: [PATCH] Update Regex Pattern [ci skip] --- bots.d/custom-bad-referrers.conf | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/bots.d/custom-bad-referrers.conf b/bots.d/custom-bad-referrers.conf index e73d1621d..74f40994d 100644 --- a/bots.d/custom-bad-referrers.conf +++ b/bots.d/custom-bad-referrers.conf @@ -4,8 +4,8 @@ # VERSION INFORMATION # #---------------------- -# Version: V4.2019.08 -# Updated: 2019-06-28 +# Version: V4.2019.09 +# Updated: 2019-07-05 #---------------------- # VERSION INFORMATION # @@ -34,29 +34,29 @@ # ***************************************************************************************** # As you can see in the examples below the domain "someveryveryrandomwebsitenamethatdoesnotexist1\.com" -# is entered with a preceding \b and an ending \b -# this makes it now "\bsomeveryveryrandomwebsitenamethatdoesnotexist1\.com\b". +# is entered with a preceding (?:\b) and an ending (?:\b) +# this makes it now "(?:\b)someveryveryrandomwebsitenamethatdoesnotexist1\.com(?:\b)". # It is crucial to use the word boundaries regex formatting. # --------- # EXAMPLES: # --------- # BY DEFAULT ALL THE EXAMPLES BELOW ARE COMMENTED OUT AND HENCE NOT ENABLED -# "~*(?:\b)someveryveryrandomwebsitenamethatdoesnotexist1\.com(?:\b|)" 1; -# "~*(?:\b)someveryveryrandomwebsitenamethatdoesnotexist2\.com(?:\b|)" 1; -# "~*(?:\b)someveryveryrandomwebsitenamethatdoesnotexist3\.com(?:\b|)" 1; -# "~*(?:\b)some\-veryvery\-randomweb\-sitenamethatdoesnotexist4\.com(?:\b|)" 1; +# "~*(?:\b)someveryveryrandomwebsitenamethatdoesnotexist1\.com(?:\b)" 1; +# "~*(?:\b)someveryveryrandomwebsitenamethatdoesnotexist2\.com(?:\b)" 1; +# "~*(?:\b)someveryveryrandomwebsitenamethatdoesnotexist3\.com(?:\b)" 1; +# "~*(?:\b)some\-veryvery\-randomweb\-sitenamethatdoesnotexist4\.com(?:\b)" 1; # ------------ # MY WHITELIST # ------------ -# "~*(?:\b)mywebsite\.com(?:\b|)" 0; +# "~*(?:\b)mywebsite\.com(?:\b)" 0; # ------------ # MY BLACKLIST # ------------ -# "~*(?:\b)someotherwebsite\.com(?:\b|)" 1; +# "~*(?:\b)someotherwebsite\.com(?:\b)" 1;