PDA

View Full Version : Hotlinking Script with IE


BayouWebmaster
05-02-2003, 02:31 AM
The script to prevent hotlinking doesn't seem to work in Internet Explorer, but does fine in Netscape.

Ideas?

chrisvmarle
05-02-2003, 11:33 AM
What script?
Show some code

Mzzl, Chris

BayouWebmaster
05-02-2003, 07:08 PM
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?www.thefurreddimension.net/.*$ [NC]
RewriteRule \.(gif|jpg)$ - [F]

chrisvmarle
05-02-2003, 07:41 PM
I use almost the same code and I think I know what the problem is...

If an image is viewed correctly (from your site, not hotlinked) it is cached and if you enter the URL to the picture in the addressbar it reads it from the cache.

That's all I know, I'm afraid

Mzzl, Chris

Feyd
05-02-2003, 07:58 PM
Additionally, this code is not browser-code. This is htaccess, this has absolutely nothing in the world to do with the browser looking at it, what the code sends are server commands. The browser is too 'dumb' to even recognize that (unless there are directives in there being sent to the brower).

Also, use this for your domain name instead of what you have (it is more workable and 'smarter')

RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*thefurreddimension.*$ [NC]

You also need to set an entry up for your site by IP address.

RewriteCond %{HTTP_REFERER} !^http://your.ip.add.ress.*$ [NC]

BayouWebmaster
05-02-2003, 09:26 PM
Tried the suggestions and they worked . . . only now ALL of my .jpg and .gif files are blocked

Forget it. I'll figure out something else.

dragon
05-15-2003, 08:26 AM
Of course, I'm new here, but BayouWebmaster, it looks like you have one too many www's in that code.