1
Well I have a folder at the root of my site called logs
.
Inside it I will save the logs that custom bugs that mount.
Good need to lock this folder not to be accessed by anyone, just by me via ftp.
But php can create error log files inside.
I found several form to put password in it with htacess, but I do not want by password, I want to block it definitely not to be accessed via browser.
Is there any way to do this with htacess?
I’m using the apache.
I tried to do so:
<Directory "Logs">
Order allow,deny
Deny from all
</Directory>
However there was internal error in the server.
inside that folder will get some logs, I need php to have permission to create the files. if I use the
Deny from all
php will get that permission?– Hugo Borges
@Hugoborges the answer is in accordance with the original question where you say "...not to be accessed by anyone, only by me via ftp". Rephrase p.f. your question.
– SandroMarques
I’m sorry, I forgot to inform you of this situation. I’ve changed my question.
– Hugo Borges
@Hugoborges updated my answer. Check p.f. if it works.
– SandroMarques