Stealing our bandwith

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Twist-R
    Fresh Peossy
    • Apr 2005
    • 26

    #46
    encode the download urls using php scripting IMO.

    also disallow hotlinking from external sites.

    problem solved.

    - News, Reviews, Interviews, Charts, Forums - Pop In & Say Hi.

    Comment

    • Kamal
      Administrator
      • May 2002
      • 28835

      #47
      hotlinking is disallowed, problem is there IS a way to safely bypass this if you know how to.
      www.mjwebhosting.com

      Jib says:
      he isnt worth the water that splashes up into your asshole while you're shitting
      Originally posted by ace_dl
      Guys and Gals, I have to hurry/leaving for short-term vacations.
      I won't be back until next Tuesday, so if Get Carter is the correct answer, I would appreciate of someone else posts a new cap for me

      Comment

      • turban
        Getting Somewhere
        • Jun 2004
        • 127

        #48
        Re: Stealing our bandwith

        Use a script to feed the download to the user. For a start, if they don't have a valid session cookie for the board then don't let them download.

        Although it would mean keeping a transaction log, which wouldn't be too hard, you could keep a tab on the number of downloads to each user. Have a cheeky script that checks the logs for the current sets, every 30 minutes for anything irregular, and email the admins for the bannage.

        Comment

        • frisky
          Gold Gabber
          • Jun 2004
          • 726

          #49
          Re: Stealing our bandwith

          E, check your PM - I sent you a possible solution - what I like to call (even to my work mates) a "frisky Solution"

          It WILL work.

          hehe.
          f.
          frisky Radio - feelin' frisky?
          Now with 70% Less Fat :: http://www.friskyradio.com/frisky_low.m3u

          Comment

          • Paul Louth
            Getting Somewhere
            • Jun 2004
            • 162

            #50
            Re: Stealing our bandwith

            Jesus you guys are thinking way too hard about this, I have implemented a system on 4four that works like a dream:

            First, stick all of your mp3s into a single directory called '00000000'

            Then create a single table in a MySQL database, with two columns, one for the mix name, and one for the mix filename.

            So for example, mix filename would be:

            CraigRichards_LiveAtFlame_2005.mp3

            The mix name would be:

            CraigRichardsLiveAtFlame2005

            Then write a script that takes a single query parameter called 'name', ie:



            (I use ASP.NET, PHP would be fine also)

            Firstly the script checks that the referrer is a valid mercuryserver domain (this stops people copying the hot-link)

            The name parameter is the mix name, the script then uses this to look up the filename.

            Next the script builds the full link to the real file:

            mp3folder = "00000000"

            "http://www.mercuryserver.com/mp3s/" + mp3folder + "/CraigRichards_LiveAtFlame_2005.mp3"

            Once the script has done all the validation it should then redirect to a page which exposes the live-link to the file or redirects to it (redirecting can be problematic for some browsers).

            Now for the clever bit?

            Each day you should run a process on the server to rename the folder 00000000 to a GUID, then get your script to insert the GUID instead of 00000000 when building the link. This means that if anyone steals your links they are only good for one day, which will remove the biggest problem of links sites. Obviously people can still grab it externally for a day, but this is such a small issue compared to having a link live for days.

            There is one issue with this system, and that is that if someone is downloading from you at the time of the folder rename then their download will fail. I personally don?t see this as an issue, as they can just try again. And if you do it when your board is at its quietest then you won?t have too many people hit. At the end of the day it?s a free service, so no one can really complain about it
            soundcloud.com/paullouth
            https://www.facebook.com/waterwalklondon
            www.4four.org

            Comment

            • frisky
              Gold Gabber
              • Jun 2004
              • 726

              #51
              Re: Stealing our bandwith

              Thats a great solution paul... :-)

              but with all due respect all of you are missing the entire point: to make sure no one steals your propietary data/assets - dont make it available to the world. Its just that simple. The solution I sent to -e- makes sure that NO ONE that shouldnt be getting the files gets their filthy paws on them. period. and its simple as cake, if programmed correctly.

              f.
              frisky Radio - feelin' frisky?
              Now with 70% Less Fat :: http://www.friskyradio.com/frisky_low.m3u

              Comment

              • Paul Louth
                Getting Somewhere
                • Jun 2004
                • 162

                #52
                Re: Stealing our bandwith

                Well if it's foolproof please post the details here, I'd be interested in implementing it for 4four

                If it involves streaming from a DB blob or from a file but using a script to feed the data then I wouldn't be interested. As that starts sucking away at server resources (due to the fact that the scripts need to be running for the duration of the download). That's not really acceptable on a busy messageboard, with potentially lots of downloads occuring at once.

                Paul
                soundcloud.com/paullouth
                https://www.facebook.com/waterwalklondon
                www.4four.org

                Comment

                • frisky
                  Gold Gabber
                  • Jun 2004
                  • 726

                  #53
                  Re: Stealing our bandwith

                  Sure, here's a pretty simple solution:

                  Basically the problem is that the files they wish to share are publically accessible thru a hotlink. If youre a good enough hacker - you can spend about 55 seconds and easily get the direct link of the assets here on MN. I wont share how to do this here publically and cause more headaches to them.

                  What you can do to protect yourselves:
                  Put all your download assets in a non-public_html folder. Something that is NOT on the www symlink. When you want to throw them out to a user for download, simply change your code to send an fopen() with that file_path. Simple. Secure. Easy!

                  Thats it. That means that ONLY a person with the proper credentials (ie Auth Token/password) can get the file - and since the file is NOT open to the public - ie, its not in the www folder, there is NO such thing as a direct HTTP link - even for a day!

                  I use this solution on the www.winamp.com website.
                  php rocks!
                  f.
                  frisky Radio - feelin' frisky?
                  Now with 70% Less Fat :: http://www.friskyradio.com/frisky_low.m3u

                  Comment

                  • Paul Louth
                    Getting Somewhere
                    • Jun 2004
                    • 162

                    #54
                    Re: Stealing our bandwith

                    I'm not a PHP expert, but doesn't doing an fopen imply that the script will be live for the duration of the download? It's something I definitely want to avoid.
                    soundcloud.com/paullouth
                    https://www.facebook.com/waterwalklondon
                    www.4four.org

                    Comment

                    • Kamal
                      Administrator
                      • May 2002
                      • 28835

                      #55
                      yo f, sorry I wasnt online much to read your PM but I just got the chance to do it. Actually am not that good with php, am just learning the ropes. I can "tweak" code a bit but no way in hell can I write any of it.

                      So I guess I'm stuck

                      -e-
                      www.mjwebhosting.com

                      Jib says:
                      he isnt worth the water that splashes up into your asshole while you're shitting
                      Originally posted by ace_dl
                      Guys and Gals, I have to hurry/leaving for short-term vacations.
                      I won't be back until next Tuesday, so if Get Carter is the correct answer, I would appreciate of someone else posts a new cap for me

                      Comment

                      Working...