[vox-tech] Apache question: preventing direct access to files

Jay Strauss me at heyjay.com
Thu Mar 10 16:51:19 PST 2005


Jay Strauss wrote:
> 
>>
>> #<FilesMatch "\.pdf$">
>> #SetEnvIf Referer "http://152.79.198.7" local_referrer=1
>> #Order Allow, Deny
>> #Deny from all
>> #Allow from env=local_referrer
>> #</FilesMatch>
>>

How about something like:

SetEnvIf Referer 152\.79\.198\.7 let_me_in
<FilesMatch "\.pdf$">
	Order Deny,Allow
	Deny from all
	Allow from env=let_me_in
</FilesMatch>



More information about the vox-tech mailing list