You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Harrell, Roger" <rj...@bechtel.com> on 2002/07/19 00:19:10 UTC

Requiring specific referrer for access to a directory

I'm trying to restrict access to a directory to make sure that any access is
only via referral from my site. I've got a lot of image and bandwidth theft
occurring. I've gleaned the below from the docs but any requests get denied
even if referred properly.

SetEnvIf Referer www\.domain\.com intra_site_referrer
SetEnvIf Referer domain\.com intra_site_referrer
<Directory>
   Order Deny, Allow
   Deny from all
   Allow from env=intra_site_referrer
</Directory> 

domain is my domain. I have tried both <Directory> and <Directory /dirname>
What am I missing?

Thanks in advance.

Roger Harrell

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: Requiring specific referrer for access to a directory

Posted by Joshua Slive <jo...@slive.ca>.
On Thu, 18 Jul 2002, Harrell, Roger wrote:
> domain is my domain. I have tried both <Directory> and <Directory /dirname>
> What am I missing?

That should be <Directory /full/unix/path/to/dirname>.

Joshua.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org