Browse Source

Apache 2.4 Tests (18) - New Test with Modified Vhost and globalblacklist

Mitchell Krog 7 years ago
parent
commit
e76361a624
1 changed files with 6 additions and 6 deletions
  1. 6 6
      globalblacklist2.conf

+ 6 - 6
globalblacklist2.conf

@@ -6229,10 +6229,12 @@ SetEnvIfNoCase Referer ~*zzlgxh\.com spam_ref
 	# NOW ACTIVATE OUR ACCESS CONTROLS USING NEW APACHE 2.4 SYNTAX
 	# NOW ACTIVATE OUR ACCESS CONTROLS USING NEW APACHE 2.4 SYNTAX
 	# Remember to de-activate the module access_compat by running sudo a2dismod access_compat
 	# Remember to de-activate the module access_compat by running sudo a2dismod access_compat
 
 
-<RequireAny>
+#<RequireAny>
  	<RequireAll>
  	<RequireAll>
 
 
 	Require all granted
 	Require all granted
+	Require not env bad_bot
+	Require not env spam_ref
 
 
 	# *************************
 	# *************************
 	# Wordpress Theme Detectors
 	# Wordpress Theme Detectors
@@ -6296,12 +6298,10 @@ Require not ip 54.242.250.203
   
   
 	Include "/etc/apache2/custom.d/blacklist-ips.conf"
 	Include "/etc/apache2/custom.d/blacklist-ips.conf"
 
 
-	Require not env bad_bot
-	Require not env spam_ref
 
 
 	#</RequireAll>
 	#</RequireAll>
 
 
-	#<RequireAny>
+	<RequireAny>
 
 
 	Require env good_ref
 	Require env good_ref
 	Require env good_bot
 	Require env good_bot
@@ -6413,9 +6413,9 @@ Require ip 2a06:98c0::/29
 Require ip 2c0f:f248::/32
 Require ip 2c0f:f248::/32
 # END CLOUDFLARE IP RANGES ### DO NOT EDIT THIS LINE AT ALL ###
 # END CLOUDFLARE IP RANGES ### DO NOT EDIT THIS LINE AT ALL ###
 
 
-	</RequireAll>
+	</RequireAny>
 
 
-</RequireAny>
+</RequireAll>
 
 
 # Re-Test
 # Re-Test
 # End of Blacklist --- rest of your server config will continue after this block if you followed my instructions properly.
 # End of Blacklist --- rest of your server config will continue after this block if you followed my instructions properly.