order allow,deny
deny from 1.0.1.0/24
deny from 1.0.2.0/23
deny from 1.0.32.0/19
deny from 1.0.8.0/21
deny from 1.1.0.0/24
allow from all
I am using the above code to block the IP in .htaccess
. But it's not working. If I remove "allow from all"
, then the website gives forbidden for all IP address
.
What is the problem with this ?
The httpd configuration is as follow:
<Directory /var/www/html/foldername/>
Options -Indexes +FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Can anyone help ?