I used the BH IP Deny feature to deny one IP access to one of my add-on domains, then looked in the .htaccess file for that add-on domain and saw the following:
Code:
Options All -Indexes
<Files 403.shtml>
order allow,deny
allow from all
</Files>
deny from 33.33.333.33
I think this means (a) do not list folder contents; (b) allow everybody to see and read the 403.shtml file; (c) do not allow 33.33.333.33 to access files in this folder and its subfolders (where .htaccess lives).
Question 1: Why is 'deny' directive outside the <Files></Files> part?
Question 2: Why is the 403 file specifically allowed but not 402 and 404 files are not specifically allowed?
Question 3: Doesn't the following code have the same effect?:
Code:
<limit GET POST PUT>
order deny,allow
deny from 33.333.33.33
allow from all
</limit>
Question 4: Why did the wizard also add the 'deny from...' directive to the .htaccess in my root or home directory?
and finally,
I tried to block all IPs between 85.0.0.0 and 85.255.0.0 by adding:
but that produced Server 500 errors when attempting to access any of my domains.
Question 5: What is the shortest way to specify all IPs between 85.0.0.0 through 85.255.255.255?