Page 1 of 1

Xampp Prohobit access to files

PostPosted: 14. October 2014 20:22
by wodoo94
I want to prohobit acces on a couple of files so what I did was I placed all these files in a directory and I named it "tastynoreq" but then when I want to deny the access fin the "tastynoreq" directory it dosen't work i'm using xampp I read that i should use httpd-xampp.conf file I did it and I tried out that code but it dosen't prohobit the access for some reason. I would really appreciate your help

<Directory "C:/xampp/htdocs/tastynoreq/*">
<Files *>
Order allow,deny
Deny from all
</Files>
</Directory>

Re: Xampp Prohobit access to files

PostPosted: 14. October 2014 21:14
by Nobbie
a) "Deny from all" is deprecated (see Apache Doc for "Require" Option)

b) Why do you put files under DocumentRoot, if you dont like them to be accessed? Simply put them somewhere else (C:/tastynoreq or similar). This does not require any further action.