| Newbie needs a little help [message #493] |
Wed, 19 July 2006 23:01  |
jumpink Messages: 3 Registered: July 2006 |
|
|
|
I am trying to setup an .htacess file to prevent hotlinking images on my site.
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://www.mysite.com [NC]
RewriteCond %{HTTP_REFERER} !^http://mysite.com [NC]
RewriteRule [^/]+.(gif|jpg)$ - [F]
If I put this file in my root folder, I get a 500 Internal Server Error.
If I put it in my image folder my images do not load I get the x.
I use Earthlink hosting, they say they run on Apache server and .htaccess files are permitted.
In my logs folder I find this:
AuthType Basic
AuthName "Restricted Area"
AuthUserFile /www/htdocs/domains/s3/00542/www.mysite.com/etc/.htpasswd
<Limit GET POST>
require valid-user
Options ExecCGI FollowSymLinks
</Limit>
Any help would be great thanks.
Kevin
|
|
|
|
| Newbie needs a little help [message #501] |
Thu, 20 July 2006 21:08   |
jumpink Messages: 3 Registered: July 2006 |
|
|
|
|
Using hotlink protection generator code gives me the same 500 Internal Server Error.
|
|
|
|
| Newbie needs a little help [message #504] |
Thu, 20 July 2006 23:45  |
jumpink Messages: 3 Registered: July 2006 |
|
|
|
You were correct. I called Earthlink and mod_rewrite for some reason unknown to the techie was not installed on the server.
Do you know of any work around? Thanks
|
|
|