[Gllug] Apache - deny image access
Richard Jones
rich at annexia.org
Fri Jul 4 08:17:02 UTC 2003
On Thu, Jul 03, 2003 at 11:33:52PM +0100, Andre Newman wrote:
> > to restrict users from directly gaining access to the directory's
> > contents thus:
> > foobar.com/images/photo1.jpg.
> >
> > Is there any way to do this in Apache or is it done another way? Any
> > ideas?
>
> I saw an Apache config fragment once that only allowed access to image
> filetypes if they were referred from a page on the same server.
Ick! Referer headers aren't reliable. eg. Some AOL-modified versions
of IE don't send them. I'm pretty sure they're optional in the RFCs
too (though I haven't *actually* checked).
Rich.
--
Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj
Merjis Ltd. http://www.merjis.com/ - all your business data are belong to you.
C2LIB is a library of basic Perl/STL-like types for C. Vectors, hashes,
trees, string funcs, pool allocator: http://www.annexia.org/freeware/c2lib/
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list