Slashdot Mirror


Hulu Munging HTML With JS To Protect Content

N!NJA writes "Hulu has started encoding the html that they send to people's browsers, and then decoding it using javascript before rendering it. [...] They then run the character stream through a series of javascript functions to convert it back into plain text before pushing it into your browser using DHTML. That's quite a lot of effort just for fun, so I assume that is to stop screen scrapers from parsing content." I really can't understand all this effort. Boxee displayed the Hulu advertising perfectly. I suspect Alec Baldwin is to blame.

21 of 281 comments (clear)

  1. Dumb question here by dkleinsc · · Score: 4, Insightful

    Couldn't an enterprising screen-scraper also just run it through the same Javascript code? Hulu is forgetting what I like to call the Fundamental Law of DRM: if you make data possible for users to see /hear, it will be possible for a reasonably enterprising user to copy it.

    --
    I am officially gone from /. Long live http://www.soylentnews.com/
    1. Re:Dumb question here by Applekid · · Score: 5, Insightful

      Couldn't an enterprising screen-scraper also just run it through the same Javascript code? Hulu is forgetting what I like to call the Fundamental Law of DRM: if you make data possible for users to see /hear, it will be possible for a reasonably enterprising user to copy it.

      Sure. Except, crappy as the Javascript "encryption" is, now you're in violation of the DMCA by reverse engineering a copy protection mechanism.

      --
      More Twoson than Cupertino
    2. Re:Dumb question here by causality · · Score: 4, Insightful

      Couldn't an enterprising screen-scraper also just run it through the same Javascript code? Hulu is forgetting what I like to call the Fundamental Law of DRM: if you make data possible for users to see /hear, it will be possible for a reasonably enterprising user to copy it.

      I think you left some of that Fundamental Law unstated. This is an approximation of the full version:

      If you make data possible for users to see/hear, it will be possible for a reasonably enterprising user to copy it. Only one such user is needed to make a DRM-free (and ad-free) version available via BitTorrent. Meanwhile, you stand to annoy all of your legitimate/paying/ad-watching users, especially if they understand this Fundamental Law and/or your assumption of bad faith.

      --
      It is a miracle that curiosity survives formal education. - Einstein
    3. Re:Dumb question here by jnetsurfer · · Score: 5, Insightful

      But you're not reverse engineering. They're sending you their code, you're just running it!

  2. Re:Don't they want people to use Hulu? by NeoSkandranon · · Score: 5, Insightful

    They *want* you to go back to watching regular TV, where the ad revenue is greatest.

    --
    If you can't see the value in jet powered ants you should turn in your nerd card. - Dunbal (464142)
  3. Re:Cat & Mouse. by v1 · · Score: 4, Insightful

    It's probably more targeting people like me. I've already considered writing an app to scrape the pages, and download ALL their movies to a large hard drive or two.

    I'm sure it's on a lot of other people's minds too with similar skills.

    I do that from time to time for web archives of images too. Curse that 1000 hit limit on images.google.com!

    --
    I work for the Department of Redundancy Department.
  4. As Long As It Works With Linux by Prototerm · · Score: 4, Insightful

    As long as Hulu continues to work with a Linux-based browser, I'm happy. This is unlike ABC, whose system doesn't support Linux at all.

    Their loss (or perhaps I should say "They're Lost").

    --
    "My country, right or wrong; if right, to be kept right; and if wrong, to be set right." --Senator Carl Schurz (1872)
  5. Re:Can you blame them? by FauxPasIII · · Score: 5, Insightful

    > if they wanted aggregates to link to their content I would think hulu would have provided an API to allow it.

    They did. It's called the hypertext transfer protocol.

    --
    25% Funny, 25% Insightful, 25% Informative, 25% Troll
  6. Re:Don't they want people to use Hulu? by causality · · Score: 4, Insightful

    They *want* you to go back to watching regular TV, where the ad revenue is greatest.

    As you probably know, that cat's not going back into the bag. I wonder whether the inability to admit this and work with it is a special trait of media companies or if it's just true of large organizations in general?

    --
    It is a miracle that curiosity survives formal education. - Einstein
  7. Re:Content Providers' Demands? by maxume · · Score: 5, Insightful

    Hulu is a joint venture of NBC Universal and Fox Entertainment Group. The Hulu management might not precisely be content providers, but the folks holding the purse are.

    --
    Nerd rage is the funniest rage.
  8. Re:Cat & Mouse. by jnetsurfer · · Score: 4, Insightful

    Even still, if they're using javascript to decode the HTML, they're not really protecting themselves. Your app can just run their javascript and still work perfectly.

  9. Re:Cat & Mouse. by koterica · · Score: 5, Insightful

    This is modded as funny, but it is rather insightful. The people who make business decisions (or what they think are business decisions) don't necessarily understand the things they are messing with. In this case, they obfuscate because they are worried about people pirating content.

    Honestly? Hulu is a great service (if you live in the US) but its not a high priority target for piracy. Why go to the effort of ripping a stream with ads in it when the torrent is already out?

  10. Re:I can't understand...Boxee displayed ads perfec by russotto · · Score: 4, Insightful

    These guys do understand that nothing prevents me from plugging my laptop into a TV and running a browser on it? And nothing prevents me from plugging a tuner card into my computer and showing TV on the monitor? So regardless of what they do, they can't make something show on a computer but not on a TV?

    Wait a minute, my assistant is handing me an envelope he says will explain everything.

    (envelope opening noises)

    The note inside says "They're total idiots".

    Yep, that does explain everything.

  11. Brand dilution guys.... by nweaver · · Score: 4, Insightful

    Hulu is a BRAND. It wants to live in its own world and be exclusive.

    So their attitude is "Frak Boxie", as boxie is trying to DESTROY the brand of all the video sites to be replaced by the Boxee brand.

    Why should Hulu play nice?

    --
    Test your net with Netalyzr
  12. Re:Can you blame them? by Anonymous Coward · · Score: 4, Insightful

    Absolutely.

    It's been cute these last 10 years watching companies try to put things on the Internet and monopolize the information they put up. If you don't require user authentication, it's public.

    If you want to piggy back in a web browser, with a public protocol like HTTP, expect people to interact with your server in unintended ways.

    The only way to prevent this is to invent your own propietary protocol, and your own client. And even this doesn't prevent reverse-engineering of the protocol to gain access.

  13. Re:Cat & Mouse. by fprintf · · Score: 4, Insightful

    No, trust me, the freakin' programmers and IT people make it impossible. All us MBAs want to do is output a freakin graph, and you put us through all kinds of process steps, and gates and usability testing, and then decide it will cost $1Million just to make a simple change. No wonder nothing gets done without a multi million dollar budget.

    --
    This post brought to you by your friendly neighborhood MBA.
  14. Re:I can't understand...Boxee displayed ads perfec by MrMarket · · Score: 4, Insightful

    And to anyone complaining about having to dance through proxies to watch Hulu internationally, it's for the same reasons. What benefit does Charmin see from advertising toilet paper to people in the Netherlands?

    This is where the MBA and Marketing guys are falling down on the job. They should be selling regional ads for international viewers... instead of Charmin, they could sell Nokia ads for Dutch viewers, Weetabix in the UK, and Nutella in Italy, etc...

  15. Re:Cat & Mouse. by Zebedeu · · Score: 5, Insightful

    Do you really believe that all of this content is going to get less available over time? Note that this would essentially contradict all of history.

    Yeah, don't bother making copies of those documents at the Great Library of Alexandria.

  16. Re:Cat & Mouse. by MoonBuggy · · Score: 4, Insightful

    The fact of the matter is that Hulu is co-owned by two of these "content providers" so in essence, Hulu *IS* the "content provider"

    I'd be interested to know where the division lies, actually. Their blog posts when Boxee was cut off had a distinctly irritable tone - they were very much making their point that the content providers don't understand the new marketplace they're operating in; basically, they were saying of the content providers the exact same thing most of the posts on this story are saying of them.

    To me, that means they're autonomous to a reasonable degree but the studios have the final say. I would guess that the Hulu team themselves made all the relevant points about how this obfuscation won't work, and were overruled - just because their company is owned by the studios, doesn't mean the employees working there share the same ideas.

  17. Re:Cat & Mouse. by thesolo · · Score: 4, Insightful

    No, trust me, the freakin' programmers and IT people make it impossible.

    Riiiiiight.

    Sorry, but you're wrong. Honestly, we just want to get the code written and have you leave us alone. But we can't do that.

    Instead, we have to follow the rules implemented by management, usually non-IT management. So while the code change itself might be all of 10 minutes, we have to follow Six Sigma, or have all changes go through 3 weeks of requirements gathering, or have to follow some horrible process workflow like the Waterfall model because they read about it in CEO Magazine.

    It's management who make your life more difficult. And oddly enough, almost all of them have MBAs...

  18. Re:Cat & Mouse. by hondo77 · · Score: 4, Insightful

    What about if your internet goes out and there's jack-crap on TV?

    Read a book?

    --
    I live ze unknown. I love ze unknown. I am ze unknown.