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

Re: avoid user direct accec *.html



Hello "Arthur H. Johnson II" <arthur@linuxbox.nu>,

OK. My situation is:

If I want to avoid user to directly access my .html files, say type the
complete url in the browser, is it possible?

In PHP, I can check the HTTP_REFERER to make sure connections originates
from the same website. If the HTTP_REFERER is empty or not belongs to
the same website, I can redirect the client to another webpage. However,
when it comes to static .html or even .jpg files, is it possible to
configure apache to avoid that situation?

On Mon, 29 Apr 2002 09:05:44 -0400 (EDT)
"Arthur H. Johnson II" <arthur@linuxbox.nu> wrote:

> 
> Not sure I understand your question.
> 
> -- 
> 
> Arthur H. Johnson II
> Senior Systems Engineer
> 
> The Linux Box
> 206 S. Fifth Ave. Suite 150
> Ann Arbor, MI  48104
> 
> tel.  734-761-4689
> fax.  734-769-8938
> pgr.  734-882-0323
> 
> On Mon, 29 Apr 2002, Patrick Hsieh wrote:
> 
> > Hello,
> >
> > In apache, if I want to avoid user directly access .html or .htm file,
> > is it possible?
> >
> > I hope user will always use http://domain.con/dir/ or
> > http://domain.con/dir/index.php, instead of direct access static .html
> > or .htm file(referral access is ok). Is it possible in configuration?
> >
> >
> >

-- 
Patrick Hsieh <pahud@pahud.net>
GPG public key http://pahud.net/pubkeys/pahudatpahud.gpg


--
To UNSUBSCRIBE, email to debian-isp-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: