0

How to Block/forbidden web access for particular file

i need support to restrict some file like (.pdf,.js,.css...,etc) for remote user. they will not able to access that particular files on browser..

Apache Add a comment
gibbons
asked Oct 16 2017

Answer

0

refer below example it may help you......

 <Directory /var/www/html/fold/>
           order allow,deny
           allow from all
    <Files ~ "\.(pdf|jpg)">
          deny from 192.168.1.25
    </Files>
    </Directory>
Add a comment
arunkumarak
asked Oct 16 2017
edited Oct 05 2018
Post your Answer