Block a CIDR by folder?

Is there a way to block a CIDR on a folder?
LVL 3
rocketTendonAsked:
Who is Participating?
 
ramazanyichConnect With a Mentor Commented:
you can do it in .htaccess file, but in that case remove <Directory> lines:

Order Deny,Allow
Deny from 10.1.0.0/16
0
 
ramazanyichCommented:
yes it is possible:
 Deny from 10.1.0.0/16
see http://httpd.apache.org/docs/2.0/mod/mod_access.html for details
0
 
ramazanyichCommented:
more precizely:

 <Directory /your/folder>
Order Deny,Allow
Deny from 10.1.0.0/16
</Directory>
0
 
rocketTendonAuthor Commented:
So then this just goes in the htaccess file?
0
 
dnojcdCommented:
it sholuld be in the httpd.conf :-)
0
All Courses

From novice to tech pro — start learning today.