*** j0sh wrote/escribió (Thu, 8 Jul 2004 11:29:15 +0200):
> how can i prevent access to some directories?
> i would that this folders will read only by my php script
I understand you don't want anyone to download your data files through a
web server. If you want to stop access from file system that'd be pretty
difficult since the folder needs to allow access for Apache user or your
PHP scripts won't work.
I'd recommend that you simply move all that stuff outside the web server
tree. For instance, if your web is at
/home/foo/htdocs
create a folder like this
/home/foo/data
If that's impossible (because your web tree is at /home/foo and you can't
access upper levers) then you'd need to handle with Apache configuration.
You can use mod_auth to ask for a password (there needn't be one

, you
can use a Deny directive in a directory container... a long etc.
> can i use mod_rewrite?
I guess so. But I don't think it's worth the effort.
--
--
-- Álvaro G. Vicario - Burgos, Spain
--<!-- ~MESSAGE_AFTER~ -->