Home » Htaccess Tools » Questions regarding htaccess » Newbie needs a little help
Newbie needs a little help [message #493] Wed, 19 July 2006 23:01 Go to next message
jumpink  is currently offline 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 #494] Thu, 20 July 2006 14:27 Go to previous messageGo to next message
andreas  is currently offline andreas
Messages: 239
Registered: January 2005
Location: Denmark

Site Admin
Please try the hotlink protection generator
Newbie needs a little help [message #501] Thu, 20 July 2006 21:08 Go to previous messageGo to next message
jumpink  is currently offline 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 #502] Thu, 20 July 2006 21:44 Go to previous messageGo to next message
andreas  is currently offline andreas
Messages: 239
Registered: January 2005
Location: Denmark

Site Admin
Please post your code. Maybe your host doesnt have mod_rewrite enabled.
Newbie needs a little help [message #504] Thu, 20 July 2006 23:45 Go to previous message
jumpink  is currently offline 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
Previous Topic:Foreign IPs
Next Topic:A challenge: Changing _ to -
Goto Forum:
  


Current Time: Sat May 17 07:41:22 CEST 2008

Powered by: FUDforum 2.7.7.
Copyright ©2001-2007 FUD Forum Bulletin Board Software