# Denying access to files

**URL:** <https://forum.kirupa.com/t/denying-access-to-files/142460>\
**Category:** Uncategorized\
**Created:** [March 29, 2005, 1:08am UTC](https://forum.kirupa.com/t/denying-access-to-files/142460 "2005-03-29T01:08:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eikern](https://avatars.discourse-cdn.com/v4/letter/e/90db22/32.png) [@Eikern](https://forum.kirupa.com/u/Eikern)\
**Post date:** [March 29, 2005, 1:08am UTC](https://forum.kirupa.com/t/denying-access-to-files/142460/1 "2005-03-29T01:08:37Z")

</div>

I have index.php where I include the rest of my files, my question is:  
Can I restrict any user from accessing the files directly? Either through CHMOD or php die/referer?
