...

View Full Version : Hotlinking of flashes...



jokerfmj
12-13-2002, 09:28 PM
I just found out that a site is hotlinking flashes from my site (http://www.mudfetish.com/gary) and many other websites out there on it's own site.

I know there are ways to stop hotlinking of images, but are there any ways to stop the hotlinking of flashes?

Hopefully someone can help. :) Thanks in advance.

MCookie
12-13-2002, 09:53 PM
Hi,
try this in your .htaccess:


AuthUserFile /dev/null
AuthGroupFile /dev/null
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.mudfetish.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://mudfetish.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mudfetish.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://mudfetish.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://64.72.132.36/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://64.72.132.36:80/.*$ [NC]
RewriteRule .*\.swf$ http://www.mudfetish.com/gary/ [R,L]

jokerfmj
12-13-2002, 10:01 PM
Ok, i'll try that now. But also, I just threw in the "stop hotlinking of images" code I found at this here (http://wsabstract.com/howto/htaccess10.shtml), and while it did stop hotlinking, it also stopped anyone, including myself, from viewing my website (http://www.mudfetish.com/gary).

Anyone have any idea why?

jokerfmj
12-13-2002, 10:03 PM
Ok, that code does stop hotlinking of flashes, so thanks. :)

However, it also blocks everyone, myself included, from my web site (http://www.mudfetish.com/gary)...

Anyone know why this is happening? Is something set wrong on my side?

john2964
07-12-2006, 02:02 AM
Hi,
try this in your .htaccess:


AuthUserFile /dev/null
AuthGroupFile /dev/null
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.mudfetish.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://mudfetish.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mudfetish.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://mudfetish.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://64.72.132.36/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://64.72.132.36:80/.*$ [NC]
RewriteRule .*\.swf$ http://www.mudfetish.com/gary/ [R,L]


That will not work. It works for images and things, but not .swf files as these files have now referrer when being loaded. Because of this it will make the files not show up on any site even yours.

I also need hot link protection for Flash files, but don't know how to do it.

I am having around 4 - 8 gb's of bandwidth going every 10 days from people stealing it and it is now costing me alot of money.

Arbitrator
07-12-2006, 02:10 PM
That will not work. It works for images and things, but not .swf files as these files have now referrer when being loaded.By "referrer" are you talking about "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"? Maybe this method (http://www.alistapart.com/articles/flashsatay/) would help?

john2964
07-12-2006, 09:40 PM
No, when I meant referring, I mean that there is no referrer. Because of this the HTTP_REFERER stays empty in the following as there is not one so it will not then match http://www.mudfetish.com. Because of that, the flash games will not load on your pages. It is different with images. I could be wrong with this, but I have looked high and low on how to protect my flash files and I had come to believe this was why it didn't work.


RewriteCond %{HTTP_REFERER} !^http://www.mudfetish.com/.*$ [NC]



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum