Hi Daniel,
I have tested a lot with this htaccess, but with IE it gives a lot of problems.
I read on a lot forums the problem of IE.
For example IE is not sending a referral when it is opening a flashfile. It is a probel a lot of postings in other forums are about.
So using htaccess with "blocking blank referrers" is almost always giving a problem for IE.
Also verry important some firewalls and proxyservers are blokking this referrer. So people behind such firewalls and proxy's (even using FF, Chrome, Safari Opera etc) are in the risk of being blocked for viewing some content. So I have to figure something out with the advise Harris gave:
Subject: Re: htaccess deeplink protection Quote this post in your reply
Hi Patrick,
Unfortunately, if you have created your own folder inside ATutor/, ATutor's code will not prevent people from accessing to it. We handled deeplinking by storing all our media files inside the content/ folder, and uses get.php to fetch the files from it. get.php will authenticate against the user's id when it fetches the media.
Here are a few suggestions for you to prevent users from accessing your custom folder (ie. ATutor/flashfile/*)
1. Make a .htaccess file inside that folder and redirects all medias back to the login page. This .htacess file is similar to the one you you have posted above.
2. Move the folder you don't want the users to get to above the www/ directory, so then the web users cannot access to it directly. Then, create your own get.php file similar to the one we had, for instance, get_flash.php, and uses this script to fetch all your flash files inside the course. (ie. <a href="get_flash.php?file=flashfile.swf"..>) In this case, even if FF3 shows your link as http ://yourhost/ATutor/get_flash.php?file=flashfile.swf, the user will not be able to go direction to your file because your script will stop before logging in.
Maybe you (already) found some solutions.
Regards Patrick