Re: image folder outside the root....how to access it ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



A good example of what Dragon talked about is the server scripting used by image-hosting sites like ImageAvenue.com, whose specific goal is to prevent direct access to the files themselves.

Mark

-------- Original Message  --------
Subject: Re:  image folder outside the root....how to  access it ?
From: Dragon <dragon@xxxxxxxxxxxxxxxxxx>
To: users@xxxxxxxxxxxxxxxx
Date: Wednesday, September 26, 2007 01:33:27 PM



Third, putting the image files outside the server root prevents them from being served by Apache directly, this really is what you want to achieve. However, this means that something else has to serve them for Apache and this is generally done via some sort of script file that checks the authentication and then sends the requested image file. Apache can't serve anything it does not know how to get to and putting the files outside of the server root structure will prevent Apache from finding those files.

There are open source applications that do exactly what you want, the files get served by the scripts and are not directly accessible via the web URL space. Do a little searching and you can find examples of this sort of script.

So in summary, Apache by itself cannot do what you want. You have to do some scripting or install an application somebody else wrote that will do it.

Dragon

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux