# Htaccess deny all subfolders and files

**URL:** <https://forum.kirupa.com/t/htaccess-deny-all-subfolders-and-files/319717>\
**Category:** Uncategorized\
**Created:** [March 2, 2011, 2:17pm UTC](https://forum.kirupa.com/t/htaccess-deny-all-subfolders-and-files/319717 "2011-03-02T14:17:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lope](https://avatars.discourse-cdn.com/v4/letter/l/43a26b/32.png) [@lope](https://forum.kirupa.com/u/lope)\
**Post date:** [March 2, 2011, 2:17pm UTC](https://forum.kirupa.com/t/htaccess-deny-all-subfolders-and-files/319717/1 "2011-03-02T14:17:50Z")

</div>

is it possible to have 1 htaccesss file to deny access to all subfolders and files inside these subfolders?

obviously without copying this htaccess file to every one of these folders below.
