ANTI-HOTLINKING for videos

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SmokeyTheBear
    ►SouthOfHeaven
    • Jun 2004
    • 28609

    #1

    ANTI-HOTLINKING for videos

    Just finished a little script to protect against video hotlinking.


    http://tools.webspacemania.com/vprotect/1/fudge.wmv

    Basically what the script does is disables videos unless the person linking or hotlinking the video has a banner for the site displayed..

    http://tools.webspacemania.com/vprotect/make.php
    now visit this page you will see a banner.. close it and come back and try the link again and you will notice the video works fine now

    If anyone is interested in the details let me know.

    This is a GREAT move for sponsors, as it allows you to ALLOW your affiliates to hotlink your videos easily AND promote your site while disallowing blatant hotlinking..

    There are many features that can be added to provide even more functionality. such as adding popups if people try to hotlink the videos ( but still allowing the video to be played ) or displaying alternate videos

    Its also built to allow individual banners for each video before they can have access ( so they cant just view the banner once then view all the videos )
    hatisblack at yahoo.com
  • SmokeyTheBear
    ►SouthOfHeaven
    • Jun 2004
    • 28609

    #2
    p.s. its really easy to add to your existing site.

    I thought up the idea while i had my afternoon nap and coded and installed it in less than half an hour. all you gotta do is put it in place
    hatisblack at yahoo.com

    Comment

    • SmokeyTheBear
      ►SouthOfHeaven
      • Jun 2004
      • 28609

      #3
      figure i would bump this as i dont see many people utilizing any sort of hotlink protection for videos
      hatisblack at yahoo.com

      Comment

      • SmokeyTheBear
        ►SouthOfHeaven
        • Jun 2004
        • 28609

        #4
        its actually pretty cool because the end url cannot be detected . well it can but its useless.

        The actual url of the video is in a folder with your ip in it.. so when you view the image it records your ip , it checks ip log , if your not on it you get served a diff video, if you ARE on the list having viewed the banner , then the folder containing the video is renamed to your ip , and then you are sent there.. although if you gotta shitload of people theres a diff way of doing it ( as the folder might get renamed before the last guy has finished watching
        hatisblack at yahoo.com

        Comment

        • SmokeyTheBear
          ►SouthOfHeaven
          • Jun 2004
          • 28609

          #5
          basically your forwarding your videos from one folder to another thus your perm video link always stays the same but the real video link is changing all the time , so if anyone copies it ( the real url ) , it will work for a short time ( or in the above case it would only work for them )
          hatisblack at yahoo.com

          Comment

          • Jace
            FBOP Class Of 2013
            • Jan 2004
            • 35562

            #6
            very nice man!

            I would grab it from you, but my new tours are all using flash video embeds

            Comment

            • Space Monkey
              Registered User
              • Feb 2007
              • 98

              #7
              Can't believe you have gotten more response than this?

              Very nice code, champ. I will be looking into it (and perhaps I cant host it on a site I own? The code that is).

              Comment

              • Brad Mitchell
                Confirmed User
                • Nov 2001
                • 9813

                #8
                Hey that's pretty cool! Send me an email if you are interested in licensing it out.

                Cheers,

                Brad
                President at MojoHost | brad at mojohost dot com | Skype MojoHostBrad
                71 industry awards for hosting and professional excellence since 1999

                Comment

                • SmokeyTheBear
                  ►SouthOfHeaven
                  • Jun 2004
                  • 28609

                  #9
                  Originally posted by Brad Mitchell
                  Hey that's pretty cool! Send me an email if you are interested in licensing it out.

                  Cheers,

                  Brad
                  well i always enjoy sharing my ideas so i'll post some dirty code here for your programmers to clean up for free.

                  If you want something custom i would be happy to create something cool for you for whatever time is costs me.
                  hatisblack at yahoo.com

                  Comment

                  • CaptainHowdy
                    Too lazy to set a custom title
                    • Dec 2004
                    • 94735

                    #10
                    Mad stuff as usual, Smokey!!

                    Comment

                    • TheHatchet
                      Half man... Half Amazing!
                      • Sep 2002
                      • 13958

                      #11
                      Very Nice!!

                      Comment

                      • The Sultan Of Smut
                        Confirmed User
                        • Dec 2004
                        • 4325

                        #12
                        I'm glad you bumped this thread I almost missed it! Awesome job Smokey!

                        Comment

                        • Myst
                          Confirmed User
                          • Feb 2004
                          • 4708

                          #13
                          theres an easier way to do it..
                          make a .htaccess file and redirect all requests to video files to a php script (sending of course the name of the file requested)

                          in the php file check to see if the person is 'allowed' to download the file (cookie, referer, ip, whatever) and use readfile() to let the user download the file if its ok; otherwise u can send em to another file, or a website (header(Location:.... ))
                          ICQ: 298-523-037

                          Comment

                          • Brad Mitchell
                            Confirmed User
                            • Nov 2001
                            • 9813

                            #14
                            I wouldn't recommend posting your code here.. Even if it's dirty, it might have some value - your idea is inevidably worth something to multiple parties. We're always looking for neat tools to give to our clients for free. Shit, I spent 5 digits so that we could give MojoHost clients LinkSentinal (antihotlinking protection created by the makers of ProxyPass)... for free.



                            Brad
                            President at MojoHost | brad at mojohost dot com | Skype MojoHostBrad
                            71 industry awards for hosting and professional excellence since 1999

                            Comment

                            • Myst
                              Confirmed User
                              • Feb 2004
                              • 4708

                              #15
                              Originally posted by Brad Mitchell
                              I wouldn't recommend posting your code here.. Even if it's dirty, it might have some value - your idea is inevidably worth something to multiple parties. We're always looking for neat tools to give to our clients for free. Shit, I spent 5 digits so that we could give MojoHost clients LinkSentinal (antihotlinking protection created by the makers of ProxyPass)... for free.



                              Brad
                              5 digits?
                              ICQ: 298-523-037

                              Comment

                              • Brad Mitchell
                                Confirmed User
                                • Nov 2001
                                • 9813

                                #16
                                Originally posted by Myst
                                5 digits?
                                One Two Three Four Five

                                It's a great product, much more sophisticated than you are anticipating.

                                Brad
                                President at MojoHost | brad at mojohost dot com | Skype MojoHostBrad
                                71 industry awards for hosting and professional excellence since 1999

                                Comment

                                • BV
                                  wtf
                                  • Sep 2001
                                  • 10914

                                  #17
                                  i like to be linkhotted

                                  Comment

                                  • SmokeyTheBear
                                    ►SouthOfHeaven
                                    • Jun 2004
                                    • 28609

                                    #18
                                    Originally posted by Myst
                                    theres an easier way to do it..
                                    make a .htaccess file and redirect all requests to video files to a php script (sending of course the name of the file requested)

                                    in the php file check to see if the person is 'allowed' to download the file (cookie, referer, ip, whatever) and use readfile() to let the user download the file if its ok; otherwise u can send em to another file, or a website (header(Location:.... ))
                                    thats basically what this does , ceptin your method wouldnt really allow affiliates to hotlink your videos..

                                    I invented this method for sponsors so anyone displaying a banner for the appropriate site can display or even embed the videos..
                                    hatisblack at yahoo.com

                                    Comment

                                    • The Sultan Of Smut
                                      Confirmed User
                                      • Dec 2004
                                      • 4325

                                      #19
                                      Originally posted by Brad Mitchell
                                      I wouldn't recommend posting your code here.. Even if it's dirty, it might have some value - your idea is inevidably worth something to multiple parties. We're always looking for neat tools to give to our clients for free. Shit, I spent 5 digits so that we could give MojoHost clients LinkSentinal (antihotlinking protection created by the makers of ProxyPass)... for free.



                                      Brad
                                      Booooooooooooooooooo

                                      Comment

                                      • Myst
                                        Confirmed User
                                        • Feb 2004
                                        • 4708

                                        #20
                                        Originally posted by SmokeyTheBear
                                        thats basically what this does , ceptin your method wouldnt really allow affiliates to hotlink your videos..

                                        I invented this method for sponsors so anyone displaying a banner for the appropriate site can display or even embed the videos..
                                        when the request for the image is called, the ip can be added to the database (or cookie sent, etc); then when the video is called it will see that the ip is allowed to download the file =)
                                        ICQ: 298-523-037

                                        Comment

                                        • SmokeyTheBear
                                          ►SouthOfHeaven
                                          • Jun 2004
                                          • 28609

                                          #21
                                          Originally posted by Myst
                                          when the request for the image is called, the ip can be added to the database (or cookie sent, etc); then when the video is called it will see that the ip is allowed to download the file =)
                                          thats basiclly what im doing in a nutshell..

                                          Not saying its some huge complicated process , but i dont see many people using it.
                                          hatisblack at yahoo.com

                                          Comment

                                          • jmk
                                            Confirmed User
                                            • Sep 2002
                                            • 5391

                                            #22
                                            Originally posted by Myst
                                            5 digits?
                                            not that much for a script that might save just one customer 6 digits (over a few months or less)
                                            And yes he might have been able to find it cheaper but still if something works and is top notch ... don't refrain from paying a fair price.

                                            I think it's actually great of him to try to add value to his services

                                            Comment

                                            • ModelPerfect
                                              Confirmed User
                                              • Nov 2003
                                              • 2862

                                              #23
                                              Cool idea!
                                              Logan
                                              modelperfect [at] gmail.com
                                              http://www.modelperfect.com

                                              (Proudly hosted at www.webair.com )

                                              Comment

                                              • Brad Mitchell
                                                Confirmed User
                                                • Nov 2001
                                                • 9813

                                                #24
                                                Originally posted by jmk
                                                not that much for a script that might save just one customer 6 digits (over a few months or less)
                                                And yes he might have been able to find it cheaper but still if something works and is top notch ... don't refrain from paying a fair price.

                                                I think it's actually great of him to try to add value to his services
                                                Why thank you

                                                Everybody that does MGPs and has video heavy tours could benefit from movie hotlink protection. Saves a ton of headache and bandwidth, we think!

                                                Brad
                                                President at MojoHost | brad at mojohost dot com | Skype MojoHostBrad
                                                71 industry awards for hosting and professional excellence since 1999

                                                Comment

                                                • Calvinguy
                                                  Confirmed User
                                                  • Oct 2002
                                                  • 1752

                                                  #25
                                                  I found that solution on google 4 years ago

                                                  Comment

                                                  • u-Bob
                                                    there's no $$$ in porn
                                                    • Jul 2005
                                                    • 33063

                                                    #26
                                                    Originally posted by SmokeyTheBear
                                                    ..., then the folder containing the video is renamed to your ip , and then you are sent there.. although if you gotta shitload of people theres a diff way of doing it ( as the folder might get renamed before the last guy has finished watching
                                                    using symlinks instead of renaming would solve that problem...

                                                    Comment

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

                                                      #27
                                                      Would something like this work for a guy who just builds movie galleries and gets say 500K unique visitors per day?

                                                      If it can handle that kind of load I'm very interested
                                                      sig too big

                                                      Comment

                                                      • SmokeyTheBear
                                                        ►SouthOfHeaven
                                                        • Jun 2004
                                                        • 28609

                                                        #28
                                                        Originally posted by Lenny2
                                                        Would something like this work for a guy who just builds movie galleries and gets say 500K unique visitors per day?

                                                        If it can handle that kind of load I'm very interested
                                                        i dont think that should be a problem..

                                                        I'll toss the code here sometime today
                                                        hatisblack at yahoo.com

                                                        Comment

                                                        • Brad Mitchell
                                                          Confirmed User
                                                          • Nov 2001
                                                          • 9813

                                                          #29
                                                          Originally posted by Lenny2
                                                          Would something like this work for a guy who just builds movie galleries and gets say 500K unique visitors per day?

                                                          If it can handle that kind of load I'm very interested
                                                          LinkSentinal can certainly handle that load! Or, if you want a host to work with you to put this script into use just give me a call/email/icq

                                                          Brad
                                                          President at MojoHost | brad at mojohost dot com | Skype MojoHostBrad
                                                          71 industry awards for hosting and professional excellence since 1999

                                                          Comment

                                                          • Argoz
                                                            Confirmed User
                                                            • Aug 2002
                                                            • 3006

                                                            #30
                                                            Cool idea!
                                                            rssEVOLUTION : Produce a FULL website with ANY RSS feed(s) in seconds.

                                                            contentSOLUTION : Allowing you to automatically grab articles from article directories,
                                                            import as many text files as you want at once, grab ANY content from ANY RSS feed, and scrape search engines, instantly.

                                                            Comment

                                                            • latinasojourn
                                                              Confirmed User
                                                              • Oct 2003
                                                              • 3191

                                                              #31
                                                              Originally posted by Calvinguy
                                                              I found that solution on google 4 years ago
                                                              are you referring to this? and if so, does this work?:

                                                              http://www.safalra.com/programming/p...nt-hotlinking/

                                                              Comment

                                                              • DirtyDave
                                                                Confirmed User
                                                                • Jul 2003
                                                                • 198

                                                                #32
                                                                I would really appreciate getting that script. I was going to send you a message but I can't seem to see a way to contact you.

                                                                Thanks.
                                                                DelanyDecolleur.com :: Satin and Nylon Nude Glamour Model

                                                                Comment

                                                                • SmokeyTheBear
                                                                  ►SouthOfHeaven
                                                                  • Jun 2004
                                                                  • 28609

                                                                  #33
                                                                  Originally posted by latinasojourn
                                                                  are you referring to this? and if so, does this work?:

                                                                  http://www.safalra.com/programming/p...nt-hotlinking/
                                                                  dunno but thats kind of what im doing but i think he made it alot more complicated.. dont worry ill post the code here when i have a second to write up how t o use it , tonight or tomorrow
                                                                  hatisblack at yahoo.com

                                                                  Comment

                                                                  • SmokeyTheBear
                                                                    ►SouthOfHeaven
                                                                    • Jun 2004
                                                                    • 28609

                                                                    #34
                                                                    http://www.gofuckyourself.com/showthread.php?t=704709
                                                                    hatisblack at yahoo.com

                                                                    Comment

                                                                    • modF
                                                                      Confirmed User
                                                                      • Aug 2002
                                                                      • 1888

                                                                      #35
                                                                      Very nice job Smokey, although I was kinda hoping for a crash at the end of that race... Have I been watching too much youtube?

                                                                      I do things
                                                                      skype:themodF

                                                                      Comment

                                                                      Working...