Hi
I used to use the following in my .htaccess file to prevent people hotlinking to my downloads
Code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://mydomain.com/.*$ [NC]
RewriteRule .*\.(exe|ocx|dll|zip|rar)$ - [F]
This always used to work fine for me, however a while ago my host moved to a different server, and now if i use the same in my .htaccess file when i (or anyone) tries to access my site you just get directed to the 403 page
At first i thought mabye mod_rewrite wasn't setup on the new server but it's listed under the loaded modules in phpinfo so i guess it must be.
Any ideas?
Thanks
*edit - Arrgh i just checked my error logs and found the following
Quote:
|
[Fri Jun 20 04:23:33 2003] [error] [client ***.***.**.***] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /home/virtual/site31/fst/var/www/html/error_docs/403.html
|
I guess this means it's disabled on the server even though mod_rewrite is on :\
I don't think there's another way to prevent hotlinking with .htaccess is there?
Last edited by Loon : 06-20-2003 at 05:07 AM.
|