Re: OT: Apache .htaccess question

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

 



On Mon, Nov 29, 2004 at 10:57:56 -0700,
  "Ashley M. Kirchner" <ashley@xxxxxxxxxx> wrote:
> 
>    Looking for some gurus here.  I have the following snippet in my 
> .htaccess file:
> 
> SetEnvIfNoCase Remote_Host "some.domain.com" ref_ok=1
> <FilesMatch "\.(gif|jpe?g|png|css|inc|GIF|JPE?G|PNG|CSS|INC|js)">
>  Order allow,deny
>  Allow from env=ref_ok
> </FilesMatch>
> 
>    ...which effectively prevents anyone from remote linking to any of 
> those files anywhere on my web site (including those in sub-directories) 
> except for 'some.domain.com'.  However, I want to _exclude_ a directory 
> from that blanket matching:

Are you sure you don't want to be checking the referer header instead
on the remote host name?


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux