0

Apache : How do I block directory browsing

i need to block or disable /dir1 directories located from /var/www/html/dir. i ll will not able to access on browser for specific IP' s.

Apache CentOS Add a comment
jack
asked Oct 06 2017

Answer

0

one of the method worked for me that i attached below try it...

<Directory /var/www/html/dir/dir1>
 order allow,deny
 allow from all
 deny from 192.168.1.10 192.168.1.25
</Directory>

after that restart the apache service and check it...

Add a comment
arunkumarak
asked Oct 07 2017
edited Oct 05 2018
Post your Answer