You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Hulslander, Ryan" <Ry...@ps.net> on 2003/05/28 23:05:40 UTC

RE: [users@httpd] Make .txt file not directly accessable, only th rough script

> -----Original Message-----
> From: ldg@ulysium.net [mailto:ldg@ulysium.net] 
> Sent: Wednesday, May 28, 2003 2:40 PM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Make .txt file not directly 
> accessable, only through script

> 
> Of course!
> But I wouldn't do it that way.
> One possibility is to place it outside of the web tree, so 
> it's not directly available for viewing. So trying to access 
> it via a url won't work, because it's not there to be seen, 
> only the php script can fetch it.
> 
> An other possibility could be to put it in a folder that's 
> password protected in some way.

Good ideas!

I took the quick-n-dirty way for right now and just used the "Files"
directive and explicitly named the file in that directory. I'll probably
re-locate it outside of the webtree shortly.

Thanks again!

Ryan

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org