Forum Moderators: phranque
I have certain folders whose content i don't want any one to read directly from browser. But the content should be accessble only through the system witin the site. how can I achieve that. I tried doing the following
order deny,allow
deny from all
allow from 127.0.0.1
but it is not working. Need assistance.
Anoop
i tried all the options suggested, but still it is not working. Please advice what should be the right solution.
I will explain my requirement. I don't want a user from anywhere on the Internet to access files under specific folder directly, but i need my application to access files under that folder and show them on the browser. To achieve this what is the best way.
Anoop
i tried all the options suggested, but still it is not working. Please advice what should be the right solution.
first, the "what it is" part of the question:
what does "accessble only through the system witin the site" mean?
do you want to access it locally-only using http protocol?
or do you want your server application to access it through the file system and have no http access, local or otherwise?
second, the "doing or not doing" part of the question:
is it allowing "nonlocal" traffic when it shouldn't?
or is it not allowing local traffic when it should?
have you looked for hints in your server logs?
what status code do you get when you request a resource?
i complete and unambiguous description of the problem is a prerequisite to the solution.
no http access for local or otherwise, application should access it through the file system.
second, the "doing or not doing" part of the question:
is it allowing "nonlocal" traffic when it shouldn't?
or is it not allowing local traffic when it should?
when i enable htaccess the access is not allowed for local or non local both.
Anoop
what is your problem with file system access by your server application?
please describe what you are trying to do, how you tried to do it and what happened when you tried that.
Most servers set doc root similar to this:
/home/username/public_html/
Anything under public_html/ is accessible to net, yet you still have priveledges to username/, so move the files to username/protected_folder/