Hotlinking of MPEGS?! What can be done! HELP!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jorgie99
    Registered User
    • Mar 2002
    • 23

    #1

    Hotlinking of MPEGS?! What can be done! HELP!

    Hey everyone...

    How do you deal/prevent with hotlinkers that either make links to your mpegs so surfers can right-click and "save as" or have the text ready to cut and paste for the srufers?

    Is there a technological solution other than renaming the files and altering the gallery HTML? (Don't want to get blacklisted for changing HTML)

    Damn asian sites are killing me...

    HELP!

  • Amputate Your Head
    There can be only one
    • Aug 2001
    • 39075

    #2
    format c:
    SIG TOO BIG

    Comment

    • _!2_A_C_E_!2_}{
      Registered User
      • Feb 2002
      • 54

      #3
      .htaccess
      Submit your Galleries!

      EyeSeekYou: Won For Nein For Zero Five Six Five Seven

      Comment

      • Amputate Your Head
        There can be only one
        • Aug 2001
        • 39075

        #4
        Originally posted by _!2_A_C_E_!2_}{
        .htaccess
        doesn't work with video.
        SIG TOO BIG

        Comment

        • Steve
          Confirmed User
          • Feb 2001
          • 6894

          #5
          Can't you deny access to asian IPs/domains with .htaccess?

          Comment

          • DanielJOOO
            So Fucking Banned
            • Mar 2002
            • 703

            #6
            htaccess

            Comment

            • Pipecrew
              Master of Gfy.com
              • Feb 2002
              • 14888

              #7
              I make html redirects and put them in the movie file and fuck the surfer with either popup hell or either a good converting sponsor.

              Comment

              • Amputate Your Head
                There can be only one
                • Aug 2001
                • 39075

                #8
                Originally posted by Steve
                Can't you deny access to asian IPs/domains with .htaccess?
                yes... but you also can't ALLOW anything to access video through htaccess. That's the problem.
                SIG TOO BIG

                Comment

                • Lane
                  Will code for food...
                  • Apr 2001
                  • 8496

                  #9
                  Originally posted by Amputate Your Head

                  doesn't work with video.
                  it does..

                  just block no-referer surfers to the movies

                  Comment

                  • Due
                    Confirmed User
                    • Mar 2001
                    • 3620

                    #10
                    Originally posted by Amputate Your Head

                    doesn't work with video.
                    Yes it does.
                    Just set a cookie from your htaccess.
                    Can't remember the code though.
                    I buy plugs
                    Skype: Due_Global
                    /Due

                    Comment

                    • Amputate Your Head
                      There can be only one
                      • Aug 2001
                      • 39075

                      #11
                      Originally posted by Lane


                      it does..

                      just block no-referer surfers to the movies
                      Lane, if you got the code for that, I could certainly use it....

                      please...
                      SIG TOO BIG

                      Comment

                      • Lane
                        Will code for food...
                        • Apr 2001
                        • 8496

                        #12
                        RewriteEngine on
                        RewriteCond %{HTTP_REFERER} !^http://yourdomain.com.*$ [NC]
                        RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com.*$ [NC]
                        RewriteRule .*[Mm][Pp][Gg]$|.*[Gg][Ii][Ff]$|.*[Mm][Pp][Ee][Gg]$ / [F]


                        do this for each file type
                        it should take care of it

                        Comment

                        • Lane
                          Will code for food...
                          • Apr 2001
                          • 8496

                          #13
                          on the sample code i just gave, it protects for mpg, gif and mpeg for example

                          Comment

                          • Amputate Your Head
                            There can be only one
                            • Aug 2001
                            • 39075

                            #14
                            did that... in fact, I trried 4 or 5 variations of htaccess.... not a single one would allow the movie to come through. (running Apache 1.3.19 Win32)
                            SIG TOO BIG

                            Comment

                            • Due
                              Confirmed User
                              • Mar 2001
                              • 3620

                              #15
                              Originally posted by Lane
                              RewriteEngine on
                              RewriteCond %{HTTP_REFERER} !^http://yourdomain.com.*$ [NC]
                              RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com.*$ [NC]
                              RewriteRule .*[Mm][Pp][Gg]$|.*[Gg][Ii][Ff]$|.*[Mm][Pp][Ee][Gg]$ / [F]


                              do this for each file type
                              it should take care of it
                              That does not help.
                              Movie viewers does not carry refferers.
                              You need cookies to block it
                              I buy plugs
                              Skype: Due_Global
                              /Due

                              Comment

                              • Lane
                                Will code for food...
                                • Apr 2001
                                • 8496

                                #16
                                if you already have hotlink protection and if you have this line:

                                RewriteCond %{HTTP_REFERER} !^$

                                You gotta remove this line!

                                it is allowing no-referer hits to the file.. type-in and right click will be allowed. if you remove that line, it will block that kind of hits...
                                Last edited by Lane; 03-08-2002, 06:46 PM.

                                Comment

                                • Lane
                                  Will code for food...
                                  • Apr 2001
                                  • 8496

                                  #17
                                  nevermind..
                                  Last edited by Lane; 03-08-2002, 06:52 PM.

                                  Comment

                                  • Amputate Your Head
                                    There can be only one
                                    • Aug 2001
                                    • 39075

                                    #18
                                    right.... I can BLOCK access to it easily enough... what I can;t get it to do is ALLOW access to the movies. Something does not crossover from the htaccess scripting to the video viewer and it generates an error box
                                    SIG TOO BIG

                                    Comment

                                    • Lane
                                      Will code for food...
                                      • Apr 2001
                                      • 8496

                                      #19
                                      Originally posted by Amputate Your Head
                                      right.... I can BLOCK access to it easily enough... what I can;t get it to do is ALLOW access to the movies. Something does not crossover from the htaccess scripting to the video viewer and it generates an error box
                                      does it happen on all types of video? or just streaming ones?

                                      Comment

                                      • Amputate Your Head
                                        There can be only one
                                        • Aug 2001
                                        • 39075

                                        #20
                                        Originally posted by Lane


                                        does it happen on all types of video? or just streaming ones?
                                        happens on packaged movies only... streaming is fine.
                                        SIG TOO BIG

                                        Comment

                                        • Lane
                                          Will code for food...
                                          • Apr 2001
                                          • 8496

                                          #21
                                          ok, Due was right, its done with cookies


                                          Add this rule to your .htaccess file in your movie directory:

                                          RewriteEngine on
                                          RewriteOptions inherit
                                          RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*yourdomain.com/ [NC]
                                          RewriteCond %{HTTP_COOKIE} !(^|(.+;)*)id=valid(;.*|$)
                                          RewriteRule /*$ http://www.yourdomain.com/ [L,R]


                                          put this on the page where you have the movies at:

                                          < SCRIPT LANGUAGE="javascript" >
                                          // Calculate the expiration date
                                          var expires = new Date ();
                                          expires.setTime(expires.getTime() + 1 * 60 * 60 * 1000);
                                          document.cookie = "id=valid; path=/" + "; expires=" + expires.toGMTString();
                                          < /SCRIPT >


                                          (remove those extra spaces inside the script tags)
                                          Last edited by Lane; 03-08-2002, 06:59 PM.

                                          Comment

                                          • _!2_A_C_E_!2_}{
                                            Registered User
                                            • Feb 2002
                                            • 54

                                            #22
                                            It didn't show up lane...



                                            NM
                                            Submit your Galleries!

                                            EyeSeekYou: Won For Nein For Zero Five Six Five Seven

                                            Comment

                                            • Amputate Your Head
                                              There can be only one
                                              • Aug 2001
                                              • 39075

                                              #23
                                              told ya....

                                              but NOOOOOO..... don't listen to Amplitude! I'm just a fuckin' monkey!
                                              SIG TOO BIG

                                              Comment

                                              • Lane
                                                Will code for food...
                                                • Apr 2001
                                                • 8496

                                                #24
                                                the problem with that code is, you will not give access to people without javascript or cookies.. and i dont know how the tgp bots would react to this change

                                                Comment

                                                • Amputate Your Head
                                                  There can be only one
                                                  • Aug 2001
                                                  • 39075

                                                  #25
                                                  Originally posted by Lane
                                                  the problem with that code is, you will not give access to people without javascript or cookies.. and i dont know how the tgp bots would react to this change
                                                  yeah...... I know.. I've been round and round on this problem... I finally gave up.... the only thing you can really do, is to use a script that changes the file names and urls every so often. htaccess is shit for protecting vids.
                                                  SIG TOO BIG

                                                  Comment

                                                  • Lane
                                                    Will code for food...
                                                    • Apr 2001
                                                    • 8496

                                                    #26
                                                    and if those hotlinkers iframe your page, the cookie will be sent to the surfers first, and the surfers with browsers that allow third party cookies will have access to the movies..

                                                    Comment

                                                    • Lane
                                                      Will code for food...
                                                      • Apr 2001
                                                      • 8496

                                                      #27
                                                      yea, a script is the best solution i guess

                                                      Comment

                                                      • freeones
                                                        Confirmed User
                                                        • Jul 2001
                                                        • 3406

                                                        #28
                                                        Amputate Your Head is right .htaccess doesn't work for movie files. I've spend all day long on this issue after a bandwith thief stole 15 Mbyte/sec from me ! 150 Gb in 1 day!

                                                        The problem is that when you remove this line from your .htaccess
                                                        RewriteCond %{HTTP_REFERER} !^$

                                                        people can't download the movie any longer with MS Media Player. Yes they are also unable to use "save target as", but the problem is that most people have Media Player connected. I even don't know how to remove the link of mpg files with MediaPlayer in WinXP myself !!

                                                        So what I did was removing the line which I was speaking about above and put this extra tag on top of the .htaccess

                                                        RewriteCond %{HTTP_REFERER} ^$ [NC]
                                                        RewriteCond %{HTTP_USER_AGENT} ^nsplayer.*$ [NC]
                                                        RewriteRule .*\..*$ - [L]

                                                        RewriteCond %{HTTP_REFERER} ^$ [NC]
                                                        RewriteRule .*\..*$ http://www.videotemple.com/hotlinkerssuck.shtml [R,L]

                                                        And it was working for *.wmv files, so I thought I had the solution. After this I was going to change the .htaccesses on one of my other site. On this site I used *.mpg files and you know what ??? ONCE AGAIN IT DIDN'T WORK!!!!

                                                        You know why? Because when MediaPlayer is loading a movie it first gives as referer "nsplayer" which is good, but after that it gives a second referer which is Mozilla , the same as Internet Explorer !! And that is not allowed by the .htaccess

                                                        It was working with *.wmv files because with this files MediaPlayer only gives one referer which is "nsplayer".

                                                        You are still following me ?

                                                        I haven't looked any further yet, but I think that the only solution will be to use a cgi script. And then one in such a way that nobody can detect the place of your movie files. Or you can rename your mpg files to wmv that will still work for the time being, but then visitors need to rename the files which is not very handy.

                                                        Long story and all because those hotlinking monkeys !
                                                        Let me know if you already have found a good solution.

                                                        The new FreeOnes! - AdultFilmStarContent - BabeGalleries and much more! - 1Strike Movies and much more! All powered by Xpressa

                                                        Comment

                                                        • Lane
                                                          Will code for food...
                                                          • Apr 2001
                                                          • 8496

                                                          #29
                                                          Originally posted by freeones

                                                          You know why? Because when MediaPlayer is loading a movie it first gives as referer "nsplayer" which is good, but after that it gives a second referer which is Mozilla , the same as Internet Explorer !! And that is not allowed by the .htaccess

                                                          It was working with *.wmv files because with this files MediaPlayer only gives one referer which is "nsplayer".

                                                          i think you are on the right track.. do you know when exactly the user_agent is sent as mozilla ? before the media player loads? or after?

                                                          Comment

                                                          • Amputate Your Head
                                                            There can be only one
                                                            • Aug 2001
                                                            • 39075

                                                            #30
                                                            from what I can tell, it's after the player loads, but before the movie starts loading.... but I couldn't be 100% on that either... but the player will load... and then lock with the error.
                                                            SIG TOO BIG

                                                            Comment

                                                            • _!2_A_C_E_!2_}{
                                                              Registered User
                                                              • Feb 2002
                                                              • 54

                                                              #31
                                                              Well poop.

                                                              Amp, I agree you are a fucking monkey.

                                                              A really experienced, wise monkey.
                                                              Submit your Galleries!

                                                              EyeSeekYou: Won For Nein For Zero Five Six Five Seven

                                                              Comment

                                                              • freeones
                                                                Confirmed User
                                                                • Jul 2001
                                                                • 3406

                                                                #32
                                                                The problem is that MediaPlayer FIRST gives as referer "nsplayer" and AFTER that "mozilla".

                                                                It's by the way very strange that MediaPlayer gives only 1 referer back when it's loading WMV files. Or maybe it's more strange that it's giving 2 referers for loading a mpg file........

                                                                The new FreeOnes! - AdultFilmStarContent - BabeGalleries and much more! - 1Strike Movies and much more! All powered by Xpressa

                                                                Comment

                                                                • Jayson
                                                                  Confirmed User
                                                                  • Oct 2001
                                                                  • 554

                                                                  #33
                                                                  Its not going to help you for now but in future if you have access to something like PHP and .htaccess isnt going to help you with movies then stick them outside your web area or in a directory and block all access with .htaccess or file permissions and use File IO functions to read the file and then stream it to the browser using the script.

                                                                  You can then check whatever you like in the script such as referers or IP addresses or what have you.

                                                                  If TGP's have problems accepting links for a movie that is say a PHP file its easy enough to make it look like a movie so that shouldnt be an issue either.

                                                                  Jayson
                                                                  Sapphic Cash - We Do It Right

                                                                  Comment

                                                                  • Lane
                                                                    Will code for food...
                                                                    • Apr 2001
                                                                    • 8496

                                                                    #34
                                                                    i was guessing maybe first the browser sends the http request for the movie (where "Mozilla" is sent), and the server responses and tells the browser that its a movie file... and the movie player loads and it connects to the movie url again where the nsplayer is sent as user_agent and no referer is sent..

                                                                    if what i just said is correct,
                                                                    with the htaccess you gotta block all no-ref browser hits, and allow all hits including norefs from nsplayer. but you gotta do these two at the same time. (i am thinking how that could be done)..

                                                                    just an idea....

                                                                    Comment

                                                                    • Jayson
                                                                      Confirmed User
                                                                      • Oct 2001
                                                                      • 554

                                                                      #35
                                                                      Dont you hate it when you get distracted in the middle of a reply and someone else says the same thing and then you look like a dickhead.

                                                                      Anyway, freeones/Lane already pointed out using a script. I have PHP examples if anyone needs them. I use it for some pics and also for zip files and the like.

                                                                      Jayson
                                                                      Last edited by Jayson; 03-08-2002, 07:33 PM.
                                                                      Sapphic Cash - We Do It Right

                                                                      Comment

                                                                      • Sleepy
                                                                        Confirmed User
                                                                        • Nov 2001
                                                                        • 679

                                                                        #36
                                                                        We used a PHP program which creates the link to the video as a sym link. The program then renames the file twice per hour and rotates the video twice per day. We get alot of error traffic from the hotlinkers and send it to our paysites.

                                                                        Comment

                                                                        • Amputate Your Head
                                                                          There can be only one
                                                                          • Aug 2001
                                                                          • 39075

                                                                          #37
                                                                          Originally posted by Sleepy
                                                                          We used a PHP program which creates the link to the video as a sym link. The program then renames the file twice per hour and rotates the video twice per day. We get alot of error traffic from the hotlinkers and send it to our paysites.
                                                                          Talk to me Sleepy.... where can I get a copy of that thing?
                                                                          SIG TOO BIG

                                                                          Comment

                                                                          • RT-
                                                                            Registered User
                                                                            • Jan 2002
                                                                            • 60

                                                                            #38
                                                                            Check this out..

                                                                            Right Click disabled.. view source is encrypted.

                                                                            http://www.coolness.com/streaming/stream5e.html

                                                                            Streaming Real Video but it works with any stream.. embeded or not.

                                                                            Is this what your looking for?
                                                                            - RT

                                                                            Comment

                                                                            • Sleepy
                                                                              Confirmed User
                                                                              • Nov 2001
                                                                              • 679

                                                                              #39
                                                                              Originally posted by Amputate Your Head

                                                                              Talk to me Sleepy.... where can I get a copy of that thing?
                                                                              My icq number is in my profile. We dont sell commercial programs but Im sure I can help you out. I have been using this one for about 6 months. Its a simple and rock solid little program.

                                                                              Comment

                                                                              • jorgie99
                                                                                Registered User
                                                                                • Mar 2002
                                                                                • 23

                                                                                #40
                                                                                Whoa 38 posts!

                                                                                When it comes to bandwidth sucking whores we certainly rally together don't we

                                                                                I see you are all back to the same conclusions I have already drawn

                                                                                The only possible way to combat this is changing the location.

                                                                                Sleepy: About the php script idea - what would the link to the mpeg look like? Would it change also or just internally?

                                                                                Would tgp's accept this? Would TGP software like Brownie accept this?

                                                                                Comment

                                                                                • quiet
                                                                                  we'll miss you our friend. RIP
                                                                                  • Sep 2001
                                                                                  • 25115

                                                                                  #41
                                                                                  Originally posted by Amputate Your Head

                                                                                  yeah...... I know.. I've been round and round on this problem... I finally gave up.... the only thing you can really do, is to use a script that changes the file names and urls every so often. htaccess is shit for protecting vids.
                                                                                  us too. been around this problem a hundred times. still haven't found a good solution, other than changing file names.
                                                                                  we'll miss you our friend. RIP

                                                                                  Comment

                                                                                  • Martin
                                                                                    "Assassins"
                                                                                    • Dec 2001
                                                                                    • 17274

                                                                                    #42
                                                                                    I tell ya what you do... My way makes you $$$ Change the name of your movies in ftp.. Use a find and replace software and change your html on all your pages. Then upload the new html. Then use a .htaccess file to bouce those hot linking scum fuck bags to hell....
                                                                                    Last edited by Martin; 03-09-2002, 07:46 AM.

                                                                                    Comment

                                                                                    • Amputate Your Head
                                                                                      There can be only one
                                                                                      • Aug 2001
                                                                                      • 39075

                                                                                      #43
                                                                                      unless of course you have over 1000 movies to change the names of.
                                                                                      SIG TOO BIG

                                                                                      Comment

                                                                                      • Sleepy
                                                                                        Confirmed User
                                                                                        • Nov 2001
                                                                                        • 679

                                                                                        #44
                                                                                        Originally posted by jorgie99
                                                                                        Whoa 38 posts!

                                                                                        When it comes to bandwidth sucking whores we certainly rally together don't we

                                                                                        I see you are all back to the same conclusions I have already drawn

                                                                                        The only possible way to combat this is changing the location.

                                                                                        Sleepy: About the php script idea - what would the link to the mpeg look like? Would it change also or just internally?

                                                                                        Would tgp's accept this? Would TGP software like Brownie accept this?
                                                                                        Our script just creates a new html page every 30 minutes with a new symbolic link pointing to the video. The video is never altered or changed.

                                                                                        Comment

                                                                                        • Martin
                                                                                          "Assassins"
                                                                                          • Dec 2001
                                                                                          • 17274

                                                                                          #45
                                                                                          Originally posted by Amputate Your Head
                                                                                          unless of course you have over 1000 movies to change the names of.
                                                                                          1000 movies.. Who has 1000 movies?

                                                                                          Comment

                                                                                          • jorgie99
                                                                                            Registered User
                                                                                            • Mar 2002
                                                                                            • 23

                                                                                            #46
                                                                                            You CAN'T change the html on a movie gallery or any tgp gallery for that matter...

                                                                                            that is the whole point... it is easy to find what is being hotlinked and simply change your galleries/path - but that gets you blacklisted... or at least that is what I am assuming - I know a lot of the big tgp's have scripts that check their galleries for altered HTML...

                                                                                            What we need is a script that has a link (php or whatever) tht never changes... so http://www.blah.com/dsafds$2d.php or whatever I don't know php myself... and then try and make it so that link MUST be clicked on from a certain domain - yours.

                                                                                            If it is pasted into a browser it won't work and if you right-click and try and save as from a different domain it won;t work etiher = I don't know if this is possible...

                                                                                            Also I have seen inside some paysites that have mpegs available for download and it seems they use php - if you paste those urls into a browser it doesn't work and if you hotlink to them they don't work either - left or right click - but is this working only because you have LOGIN first then they work?

                                                                                            Can this be done without having someone login?

                                                                                            That would be the solution. Or send them a cookie or use some kind of something in the HTML to only allow access from your domain etc.

                                                                                            Comment

                                                                                            • CamRabbit
                                                                                              Confirmed User
                                                                                              • Mar 2002
                                                                                              • 577

                                                                                              #47
                                                                                              Why not to place links on your tgp galleries to pages with embedded Windows Media Player and encode movies with Windows Media 8 Encoding Utility instead of mpeg files? You can use htaccess protection based on HTTP_REFERER or any other you want

                                                                                              Comment

                                                                                              • jorgie99
                                                                                                Registered User
                                                                                                • Mar 2002
                                                                                                • 23

                                                                                                #48
                                                                                                because the tgp owners want mpegs that their surfers can download and save.

                                                                                                I am starting to think there is no way possible to do this

                                                                                                Comment

                                                                                                • cgiGeek
                                                                                                  Confirmed User
                                                                                                  • Jan 2002
                                                                                                  • 203

                                                                                                  #49
                                                                                                  I need some cash, so I can fix that for you for $50.
                                                                                                  Would have done it for free, but need money sorry.
                                                                                                  Need help dealing with a hacked website? Contact me via icq 163583431 :D
                                                                                                  Premium Bandwidth Managed Servers, 12 Years in business xxxHOSTit.com
                                                                                                  I work for xxxhostit.com

                                                                                                  Comment

                                                                                                  • Snake Doctor
                                                                                                    I'm Lenny2 Bitch
                                                                                                    • Mar 2001
                                                                                                    • 13449

                                                                                                    #50
                                                                                                    What about linking the movie thumbs on the gallery to an html page and having the movie file embedded in the html page.
                                                                                                    Wouldn't htaccess work then?
                                                                                                    sig too big

                                                                                                    Comment

                                                                                                    Working...