RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?mysite.com [NC]
RewriteRule \.(zip|rar|doc|xls)$ http://www.mysite.com/accessdenied.gif [NC,R,L]
I'm running Apache. I have some files that are made available for downloading using the Downloads module. What I'd like to do is block downloading unless they are actually on the site, and downloading from the links there, not from a link outside the website. Is there a way to do this?
Edited by mesteele101 on Jul 09, 2011 - 08:14 PM.
