<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
<META name=GENERATOR content="MSHTML 8.00.6001.18783"></HEAD>
<BODY>
<DIV style="FONT: 10pt Arial; COLOR: #000000"></DIV>
<DIV style="FONT: 10pt Arial; COLOR: #000000">Thank you very much Greg!</DIV>
<DIV style="FONT: 10pt Arial; COLOR: #000000"> </DIV>
<DIV style="FONT: 10pt Arial; COLOR: #000000">My customer believes with a 
download manager you could stil view the pictures. So someone told him to create 
his image dir above the web dir. But I will try your index.php. Maybe it will be 
enough secure for his website. :-)</DIV>
<DIV style="FONT: 10pt Arial; COLOR: #000000"> </DIV>
<DIV style="FONT: 10pt Arial; COLOR: #000000">Thanks,</DIV>
<DIV style="FONT: 10pt Arial; COLOR: #000000">Lars.</DIV>
<DIV style="FONT: 10pt Arial; COLOR: #000000"> </DIV>
<DIV style="FONT: 10pt Arial; COLOR: #000000"> </DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px" 
id=tobit_blockquote>
  <TABLE 
  style="BORDER-BOTTOM: 0px; BORDER-LEFT: #e0e0e0 1px solid; FONT: 10pt Arial; COLOR: black; BORDER-TOP: #e0e0e0 1px solid; BORDER-RIGHT: #e0e0e0 1px solid" 
  id=tobit_repfor border=0 cellSpacing=0 cellPadding=0 width="99%" cols=3>
    <TBODY>
    <TR borderColorLight=#dfdfdf borderColor=#dfdfdf bgColor=#dfdfdf>
      <TD 
      style="BORDER-BOTTOM: #ffffff 1px solid; PADDING-BOTTOM: 1px; PADDING-LEFT: 4px; PADDING-TOP: 1px" 
      height=22 width=140 colSpan=2>
        <DIV style="FONT: bold 9pt Arial">Original Message     </DIV></TD>
      <TD style="BORDER-BOTTOM: #ffffff 1px solid" align=right>
        <DIV style="FONT: 8pt Arial">
        <DIV style="FONT: 8pt Arial"><STRONG><FONT 
        color=#808080>   processed by 
        David.fx</FONT></STRONG> </DIV></DIV></TD></TR></TBODY></TABLE>
  <TABLE 
  style="BORDER-BOTTOM: #e0e0e0 1px solid; BORDER-LEFT: #e0e0e0 1px solid; FONT: 8pt Tahoma; COLOR: black; BORDER-TOP: 0px; BORDER-RIGHT: #e0e0e0 1px solid" 
  id=tobit_repfor2 border=0 cellSpacing=0 cellPadding=0 width="99%" cols=2>
    <TBODY>
    <TR style="PADDING-BOTTOM: 2px">
      <TD style="BORDER-BOTTOM: #ffffff 1px solid; PADDING-LEFT: 6px" 
      bgColor=#efefef height=18 width=68>
        <DIV style="FONT: 8pt Tahoma">Subject: </DIV></TD>
      <TD style="BORDER-BOTTOM: #efefef 1px solid; PADDING-LEFT: 4px" 
      bgColor=#ffffff>
        <DIV style="FONT: 8pt Tahoma">[BlueOnyx:01753] Re: protecting directory 
        (16-Jul-2009 22:30)</DIV></TD></TR>
    <TR style="PADDING-BOTTOM: 2px">
      <TD style="BORDER-BOTTOM: #ffffff 1px solid; PADDING-LEFT: 6px" 
      bgColor=#efefef height=18 width=68>
        <DIV style="FONT: 8pt Tahoma">From:    </DIV></TD>
      <TD style="BORDER-BOTTOM: #efefef 1px solid; PADDING-LEFT: 4px" 
      bgColor=#ffffff>
        <DIV style="FONT: 8pt Tahoma"><A href="mailto:greg@limo.net">Greg 
        Schiedler <greg@limo.net></A></DIV></TD></TR>
    <TR style="PADDING-BOTTOM: 0px">
      <TD style="PADDING-LEFT: 6px" bgColor=#efefef height=17 width=68>
        <DIV 
        style="FONT: 8pt Tahoma">To:      </DIV></TD>
      <TD style="PADDING-LEFT: 4px" bgColor=#ffffff>
        <DIV style="FONT: 8pt Tahoma"><A 
        href="mailto:blueonyx@blueonyx.it">blueonyx@blueonyx.it</A></DIV></TD></TR></TBODY></TABLE>
  <DIV> </DIV><BR><BR>
  <DIV class=gmail_quote>On Thu, Jul 16, 2009 at 11:51 AM, <SPAN dir=ltr><<A 
  href="mailto:blueonyx@larsi.de">blueonyx@larsi.de</A>></SPAN> wrote:<BR>
  <BLOCKQUOTE 
  style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
  class=gmail_quote><BR>Hello list,<BR><BR>a customer of us wants to secure 
    his images directory. So he planned to put his images dir besides the web 
    dir, so no one could link directly to the images.<BR><BR>Unfortunatly I have 
    no idea, how to do this. His website uses php, but there is no chance to use 
    sessions. So putting the images dir above the web dir should be the easiest 
    solution for him.<BR><BR>Could someone tell me, how to tell apache to use 
    this directory for the images?<BR><BR>Thanks,<BR>Lars.<BR><BR>i have used 
    for years a simple index.php file. You can add additional ../ (Period Period 
    Slash) for the location depending on what level of the directory tree your 
    trying to protect.</BLOCKQUOTE>
  <DIV><BR> </DIV>
  <DIV>As it is shown <A 
  href="http://www.domain.com/images">http://www.domain.com/images</A> 
   will re-direct the browser to <A 
  href="http://www.domain.com/">http://www.domain.com</A> (Location ../ is up 
  one level) </DIV>
  <DIV><BR> </DIV>
  <DIV>Will not protect a direct link to the image but will not allow a 
  directory listing. </DIV>
  <DIV><BR> </DIV>
  <DIV>index.php</DIV>
  <DIV><BR> </DIV>
  <DIV><?php</DIV>
  <DIV><BR> </DIV>
  <DIV>/**</DIV>
  <DIV> * index.php</DIV>
  <DIV> *</DIV>
  <DIV> * Copyright (c) 2003-2009 Limo.Net Internet Services</DIV>
  <DIV> *</DIV>
  <DIV> * This file simply takes any attempt to view source/image files and 
  sends those</DIV>
  <DIV> * people to the home page.</DIV>
  <DIV> *</DIV>
  <DIV> */</DIV>
  <DIV><BR> </DIV>
  <DIV>header("Location:../");</DIV>
  <DIV><BR> </DIV>
  <DIV>/* pretty impressive huh? */</DIV>
  <DIV><BR> </DIV>
  <DIV>?> </DIV></DIV></BLOCKQUOTE></BODY></HTML>