Here is my problem.
I want to restrict access to all pdf file in a particular directory where I am placing the .htaccess file to only be referred to by a particular file.
Here is what I have (which gives me an error 500 message):
Options -Indexes RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://www.myhost.ca/tempdir/adviso.*$ [NC] RewriteRule .*\.pdf$ - [F]
Any help would be greatly appreaciated.
Thanks.
I want to restrict access to all pdf file in a particular directory where I am placing the .htaccess file to only be referred to by a particular file.
Here is what I have (which gives me an error 500 message):
Options -Indexes RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://www.myhost.ca/tempdir/adviso.*$ [NC] RewriteRule .*\.pdf$ - [F]
Any help would be greatly appreaciated.
Thanks.