So I have this one folder that stores all the confidential excel files in it. I dont want people to be able to link/access to it directly, but I have a link on my web site that allows the enables authorized users to download their files from the data.
This is what I have
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?subdo.mysite.net/.*$ [NC]
RewriteRule ^.*$ http://subdo.mysitenet/ [R=301,L]
But for some reason it does not work. Can someone help me on this?