Xampp Prohobit access to files

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Xampp Prohobit access to files

Postby wodoo94 » 14. October 2014 20:22

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>
wodoo94
 
Posts: 1
Joined: 14. October 2014 20:16
Operating System: windows

Re: Xampp Prohobit access to files

Postby Nobbie » 14. October 2014 21:14

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.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 171 guests