Browse Source

Apache 2.4 Tests (9) - AllowOverride None / Restructure <RequireAll> Block

Mitchell Krog 8 years ago
parent
commit
c13574808d
1 changed files with 76 additions and 74 deletions
  1. 76 74
      globalblacklist2.conf

+ 76 - 74
globalblacklist2.conf

@@ -65,7 +65,7 @@
 	# Allow Good User-Agent Strings We Know and Trust
 	# ***********************************************
 
-<IfModule mod_setenvif.c>
+#<IfModule mod_setenvif.c>
 
 # START GOOD BOTS ### DO NOT EDIT THIS LINE AT ALL ###
 BrowserMatchNoCase "^(.*?)(\badidxbot\b)(.*)$" good_bot
@@ -6227,89 +6227,22 @@ SetEnvIfNoCase Referer ~*zzbroya\.com\.ua spam_ref
 SetEnvIfNoCase Referer ~*zzlgxh\.com spam_ref
 # END BAD REFERERS ### DO NOT EDIT THIS LINE AT ALL ###
 
-</IfModule>
+#</IfModule>
 
 	# 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
 
-<IfModule mod_authz_core.c>
+#<IfModule mod_authz_core.c>
 
 <RequireAll>
  	#<RequireAll>
 
 	Require all granted
-
-	# *************************
-	# Wordpress Theme Detectors
-	# *************************
-
-# START WP THEME DETECTORS ### DO NOT EDIT THIS LINE AT ALL ###
-Require not ip 104.197.51.76
-Require not ip 108.167.189.81
-Require not ip 109.73.225.87
-Require not ip 13.68.211.181
-Require not ip 142.4.218.201
-Require not ip 149.56.33.22
-Require not ip 158.69.187.171
-Require not ip 158.69.26.58
-Require not ip 162.13.185.20
-Require not ip 173.237.189.235
-Require not ip 173.255.210.133
-Require not ip 185.45.14.186
-Require not ip 192.163.217.239
-Require not ip 192.185.4.40
-Require not ip 192.95.29.139
-Require not ip 192.99.17.79
-Require not ip 198.27.69.229
-Require not ip 198.58.124.46
-Require not ip 199.241.28.124
-Require not ip 212.71.238.108
-Require not ip 37.247.121.179
-Require not ip 37.60.253.215
-Require not ip 45.63.68.250
-Require not ip 45.79.139.191
-Require not ip 50.116.84.148
-Require not ip 52.87.112.125
-Require not ip 66.96.183.60
-Require not ip 89.36.223.188
-# END WP THEME DETECTORS ### DO NOT EDIT THIS LINE AT ALL ###
-
-	# ****************************************
-	# NIBBLER - SEO testing and reporting tool
-	# ****************************************  
-	# See - http://nibbler.silktide.com/
-
-# START NIBBLER ### DO NOT EDIT THIS LINE AT ALL ###
-Require not ip 52.201.238.175
-Require not ip 52.90.20.216
-Require not ip 54.161.247.146
-Require not ip 54.211.214.177
-Require not ip 54.227.194.252
-Require not ip 54.242.239.179
-Require not ip 54.242.250.203
-# END NIBBLER ### DO NOT EDIT THIS LINE AT ALL ###
-
-	# *************************************************
-	# Blacklist IP addresses and IP Ranges Customizable
-	# *************************************************
-
-	# BLACKLIST all your IP addresses and Ranges using the new include file below.
-  	# New Method Uses the include file below so that when pulling future updates your
-  	# Custom Blacklisted IP addresses are automatically now included for you.
-  	# Read Comments inside blacklist-ips.conf for customization tips.
-  	# Updating the main globalblacklist.conf file will not touch your custom include files
-  
-	Include "/etc/apache2/custom.d/blacklist-ips.conf"
-
-	Require not env bad_bot
-	Require not env spam_ref
-
-	#</RequireAll>
-
-	#<RequireAny>
-
+	Require local
 	Require env good_ref
 	Require env good_bot
+	Require not env bad_bot
+	Require not env spam_ref
 
 	# ***********************************************
 	# WHITELISTING AND BLACKLISTING IP ADDRESS RANGES
@@ -6418,9 +6351,78 @@ Require ip 2a06:98c0::/29
 Require ip 2c0f:f248::/32
 # END CLOUDFLARE IP RANGES ### DO NOT EDIT THIS LINE AT ALL ###
 
+	# *************************
+	# Wordpress Theme Detectors
+	# *************************
+
+# START WP THEME DETECTORS ### DO NOT EDIT THIS LINE AT ALL ###
+Require not ip 104.197.51.76
+Require not ip 108.167.189.81
+Require not ip 109.73.225.87
+Require not ip 13.68.211.181
+Require not ip 142.4.218.201
+Require not ip 149.56.33.22
+Require not ip 158.69.187.171
+Require not ip 158.69.26.58
+Require not ip 162.13.185.20
+Require not ip 173.237.189.235
+Require not ip 173.255.210.133
+Require not ip 185.45.14.186
+Require not ip 192.163.217.239
+Require not ip 192.185.4.40
+Require not ip 192.95.29.139
+Require not ip 192.99.17.79
+Require not ip 198.27.69.229
+Require not ip 198.58.124.46
+Require not ip 199.241.28.124
+Require not ip 212.71.238.108
+Require not ip 37.247.121.179
+Require not ip 37.60.253.215
+Require not ip 45.63.68.250
+Require not ip 45.79.139.191
+Require not ip 50.116.84.148
+Require not ip 52.87.112.125
+Require not ip 66.96.183.60
+Require not ip 89.36.223.188
+# END WP THEME DETECTORS ### DO NOT EDIT THIS LINE AT ALL ###
+
+	# ****************************************
+	# NIBBLER - SEO testing and reporting tool
+	# ****************************************  
+	# See - http://nibbler.silktide.com/
+
+# START NIBBLER ### DO NOT EDIT THIS LINE AT ALL ###
+Require not ip 52.201.238.175
+Require not ip 52.90.20.216
+Require not ip 54.161.247.146
+Require not ip 54.211.214.177
+Require not ip 54.227.194.252
+Require not ip 54.242.239.179
+Require not ip 54.242.250.203
+# END NIBBLER ### DO NOT EDIT THIS LINE AT ALL ###
+
+	# *************************************************
+	# Blacklist IP addresses and IP Ranges Customizable
+	# *************************************************
+
+	# BLACKLIST all your IP addresses and Ranges using the new include file below.
+  	# New Method Uses the include file below so that when pulling future updates your
+  	# Custom Blacklisted IP addresses are automatically now included for you.
+  	# Read Comments inside blacklist-ips.conf for customization tips.
+  	# Updating the main globalblacklist.conf file will not touch your custom include files
+  
+	Include "/etc/apache2/custom.d/blacklist-ips.conf"
+
+
+	#</RequireAll>
+
+	#<RequireAny>
+
+
+
 	#</RequireAny>
 
 </RequireAll>
-</IfModule>
+#</IfModule>
 
 # End of Blacklist --- rest of your server config will continue after this block if you followed my instructions properly.