Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Dec 2002
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hotlinking of flashes...

    I just found out that a site is hotlinking flashes from my site 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.

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    NL
    Posts
    421
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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]

  • #3
    New to the CF scene
    Join Date
    Dec 2002
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok, i'll try that now. But also, I just threw in the "stop hotlinking of images" code I found at this here, and while it did stop hotlinking, it also stopped anyone, including myself, from viewing my website.

    Anyone have any idea why?
    Last edited by jokerfmj; 12-13-2002 at 11:06 PM.

  • #4
    New to the CF scene
    Join Date
    Dec 2002
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok, that code does stop hotlinking of flashes, so thanks.

    However, it also blocks everyone, myself included, from my web site...

    Anyone know why this is happening? Is something set wrong on my side?
    Last edited by jokerfmj; 12-13-2002 at 11:06 PM.

  • #5
    New Coder
    Join Date
    Nov 2003
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by MCookie
    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.

  • #6
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,372
    Thanks
    32
    Thanked 286 Times in 280 Posts
    Quote Originally Posted by john2964
    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 would help?
    For every complex problem, there is an answer that is clear, simple, and wrong.

  • #7
    New Coder
    Join Date
    Nov 2003
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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]


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •