From caea2eef4e1eee7648a2dcd05a41e92e558f436e Mon Sep 17 00:00:00 2001 From: Mitchell Krog Date: Fri, 5 Jul 2019 08:20:24 +0200 Subject: [PATCH] Update Regex Pattern [ci skip] --- bots.d/bad-referrer-words.conf | 36 +++++++++++++++++----------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/bots.d/bad-referrer-words.conf b/bots.d/bad-referrer-words.conf index 89abb1062..e23c62f7d 100644 --- a/bots.d/bad-referrer-words.conf +++ b/bots.d/bad-referrer-words.conf @@ -48,28 +48,28 @@ # BY DEFAULT ALL THE EXAMPLES BELOW ARE COMMENTED OUT AND HENCE NOT ENABLED -# As you can see in the examples below the word "adultgalls" is entered with a preceding \b and an ending \b -# this makes it now "\badultgalls\b". It is crucial to use the word boundaries regex formatting. +# As you can see in the examples below the word "adultgalls" is entered with a preceding (?:\b) and an ending (?:\b) +# this makes it now "(?:\b)adultgalls(?:\b)". It is crucial to use the word boundaries regex formatting. # --------- # EXAMPLES: # --------- -# "~*(?:\b)adultgalls(?:\b|)" 1; -# "~*(?:\b)amateurxpass(?:\b|)" 1; -# "~*(?:\b)bigblackbooty(?:\b|)" 1; -# "~*(?:\b)blacktits(?:\b|)" 1; -# "~*(?:\b)cookie\-law\-enforcement(?:\b|)" 1; -# "~*(?:\b)free\-share\-buttons(?:\b|)" 1; -# "~*(?:\b)free\-social\-buttons(?:\b|)" 1; -# "~*(?:\b)fuck\-paid\-share\-buttons(?:\b|)" 1; -# "~*(?:\b)ilovevitaly(?:\b|)" 1; -# "~*(?:\b)law\-enforcement\-bot(?:\b|)" 1; -# "~*(?:\b)law\-enforcement\-check(?:\b|)" 1; -# "~*(?:\b)share\-buttons\-for\-free(?:\b|)" 1; -# "~*(?:\b)webfuck(?:\b|)" 1; -# "~*(?:\b)xxxrus(?:\b|)" 1; -# "~*(?:\b)zeroredirect(?:\b|)" 1; -# "~*(?:\b|)x22(?:\b|)" 1; (in this string if your own domain name was sex22.com it would be blocked) +# "~*(?:\b)adultgalls(?:\b)" 1; +# "~*(?:\b)amateurxpass(?:\b)" 1; +# "~*(?:\b)bigblackbooty(?:\b)" 1; +# "~*(?:\b)blacktits(?:\b)" 1; +# "~*(?:\b)cookie\-law\-enforcement(?:\b)" 1; +# "~*(?:\b)free\-share\-buttons(?:\b)" 1; +# "~*(?:\b)free\-social\-buttons(?:\b)" 1; +# "~*(?:\b)fuck\-paid\-share\-buttons(?:\b)" 1; +# "~*(?:\b)ilovevitaly(?:\b)" 1; +# "~*(?:\b)law\-enforcement\-bot(?:\b)" 1; +# "~*(?:\b)law\-enforcement\-check(?:\b)" 1; +# "~*(?:\b)share\-buttons\-for\-free(?:\b)" 1; +# "~*(?:\b)webfuck(?:\b)" 1; +# "~*(?:\b)xxxrus(?:\b)" 1; +# "~*(?:\b)zeroredirect(?:\b)" 1; +# "~*(?:\b|)x22(?:\b)" 1; (in this string if your own domain name was sex22.com it would be blocked) # Here is a list of unsanitary words used in referrer strings - used in various injection attacks