Apache

How to limit access to a parent folder but allow to access to child folder

  • Put “.htaccess” file inside parent folder with the following content
    [js]order allow,deny
    allow from 127.0.0.1
    deny from all[/js]
  • Put “.htaccess” file inside child folder with the following content
    [js]order allow,deny
    allow from all[/js]

Be the first to comment

Leave a Reply

Your email address will not be published.


*