httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noah <>
Subject Re: [users@httpd] Restricting page access
Date Thu, 10 Mar 2005 00:18:39 GMT
On Wed, Mar 09, 2005 at 02:54:54PM -0800, Richard Crawford wrote:
> I tried adapting the solution from the _Apache Cookbook_ that prevents linking 
> of local images by remote sites, but that didn't seem to do the trick.
> Here is the .htaccess file that I created:
> <FilesMatch "\.pdf$">
> SetEnvNoCase Referer "^" local_referer=1
> Order Deny,Allow
> Allow from env=local_referer
> </FilesMatch>

You don't specify a Deny directive here:

<FilesMatch "\.pdf$">
SetEnvNoCase Referer "^" local_referer=1
Order deny,allow
Deny from all
Allow from env=local_referer

<huey> dd of=/dev/fd0 if=/dev/flippy bs=1024
<huey> ^^^ Making Flippy Floppy

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message