• 0

Stealing Video Bandwidth Thieves


Question

Hi,

I have a video website, and it hosts all the videos on the server. However, there are some websites who are stealing bandwidth by streaming video from my server on theres.

To protect the direct URL of the video files, here's what I got set up.

- The direct URL is stored in the database.

- A PHP file basically takes in the video id, fetches the direct url, and streams the contents.

So, even if the direct URL is not known, the thieves can actually just stream it by calling the php file, with the supplied ID.

Is there any way I can protect and make sure the videos are served only in my domain?

Link to comment
https://www.neowin.net/forum/topic/840812-stealing-video-bandwidth-thieves/
Share on other sites

7 answers to this question

Recommended Posts

  • 0

When a visitor comes to your website give them a video key that is generated unique to each user. Now set up the php video url fetcher to see if this key is present. So when they call the php script directly since the key is not there you know they are directly linking.

  • 0

Hi,

You could try setting access with sessions, where if user tries to visit a video without access tehy are taken to your main webpage instead. Please ntoe this is a quick fix, and is probably exploitable with a bit of effort, but I'm still hungover to think of something better right now. :)

  • 0
Nice, I like that idea. It's a quick fix, but what if people like open the website URL first making it look like a Browser request, and then calls the php script? Then the server will think it's an actual user. Is there any other way?

Not if you keep changing the key every time the page is loaded. In order to set this up have the links to videos in your pages as below...

www.site.com/video?key=HGJYKJHK234kjh234234k?id=dfsdf7dsf8sdf9sdf

Where id identifies the video and key is regenerated every time the page is reloaded. Now when a legit user clicks on a link you can check the key stored as a session or in the database. Also have a time limit on the validity of the key. That way they can not save the key. Now in order for the link to work they will have to load the page every time to get a fresh key.

  • 0

would something like this work?

key.php: stores some random string in a variable (let's say, $key)

fetchurl.php: has a function which fetches the direct url; checks to see if $key is correct.

every_single_page.php: include both key.php and fetchurl.php, then use the function from fetchurl in this page itself. instead of passing the movie id to fetchurl.php via GET.

that way all direct calls to fetchurl won't work, and you also don't have to waste time generating random keys each time.

  • 0
would something like this work?

key.php: stores some random string in a variable (let's say, $key)

fetchurl.php: has a function which fetches the direct url; checks to see if $key is correct.

every_single_page.php: include both key.php and fetchurl.php, then use the function from fetchurl in this page itself. instead of passing the movie id to fetchurl.php via GET.

that way all direct calls to fetchurl won't work, and you also don't have to waste time generating random keys each time.

This can be defeated by requesting the every_single_page.php and then scraping out the url.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • How old is this tip? Seems 15-20 years old? Processor states for the CPU under Windows power options has been a thing for a long, long time. It certainly isn't new or hidden... Also, with laptops it doesn't make any difference what OS you are running, all of them are configured for battery longevity over performance, for obvious reasons.
    • I can't believe Starmer is still there...his party lost so big. He's a stubborn coot, but this is largely unenforceable, so I would imagine he'll be resigning soon. A key here is for parents to buy their kids phones sans Internet access--and set up the Internet at home, where mom and day can, you know, act like parents instead expecting the government to raise their kids.
    • EA launches in-game advertising platform for brands to "connect with audiences" by Pulasthi Ariyasinghe The gaming giant Electronic Arts is exploring more ways to inject real-life brands into its games. Announced today as EA Advertising, the new platform is attempting to make it easier for brands to reach out for deals with the company and put their products inside titles like EA Sports FC, Madden, NHL, Skate, or The Sims. EA revealed that its EA Sports side of the company brings in "hundreds of millions of players across console, PC, and mobile" every year. Fan engagement of these titles was also touted as being "extraordinary," with 23,000 NFL seasons worth of games being played in Madden NFL daily, while EA Sports FC sees over a billion matches a day. “Players come to EA’s games and live experiences every day to play, watch, create and connect,” said David Tinson, Chief Experiences Officer at Electronic Arts. “That gives brands a meaningful opportunity to show up in ways that add value and respect the player experience, while maintaining authenticity in the worlds our teams are building. With EA Advertising, we’re helping brands become part of those moments in ways that are relevant and built for players.” Using the new program EA Advertising, brands will be able to inject their products into games in real-time via dynamic placement. EA says partners will have access to everything from stadium signage in sports games and targeted adverts to in-game content custom-made for the brands. These are described as additions designed to "enhance, not disrupt" experiences. "In these interactive gameplay environments, brands become part of the game itself, reflecting how players engage with advertising in real-world contexts," adds the company "Brands can activate across live environments, tailoring placements to meet campaign objectives, and update campaigns with ongoing optimization informed by aggregated engagement insights." Current real-world brand partnerships EA has built into its games include Visa (EA Sports FC and College Football), Lowe's (EA Sports FC, Madden NFL, and College Football), Red Bull (EA SPORTS FC), Xfinity and Peacock (EA SPORTS FC), and Mountain Dew’s (College Football).
    • Will be surprised if there isn't a new ver of youtube just for labelled educational content
    • UK to ban under-16s from social media following a six-week trial with teenagers by Paul Hill Credit: Pexels A few months ago, Neowin reported that the UK was trialing a social media ban with 300 teenagers for six weeks, that testing has come to an end, and Prime Minister Keir Starmer has announced that the country will ban under-16s from social media. Starmer said that this technology is making children unhappy and making it easier for bullies to harass and abuse them. He continued to talk about the addictive nature of social media, saying that it uses an infinite scroll designed to lock users in for hours. He said this interferes with children doing their homework, reading, playing with friends outside, and going to bed on time. Tackling the idea that nothing can be done about social media, Starmer said: The government’s action won’t stop at social media either, the PM said. It plans to take action on gaming services and livestreaming platforms. Right now, he said, strangers can contact any child unchecked. He said this wouldn’t happen in real life, and the government is going to stop it from happening online, too. The Labour government has overseen the introduction of the Online Safety Act, a big change to the internet which includes age verification on adult websites. This has led to a fair bit of backlash, but overall, the government is pushing ahead with these changes.
  • Recent Achievements

    • Week One Done
      Jeroen Wilms earned a badge
      Week One Done
    • Week One Done
      rolfus earned a badge
      Week One Done
    • One Month Later
      Leroy Jethro Gibbs earned a badge
      One Month Later
    • Conversation Starter
      flexorcist earned a badge
      Conversation Starter
    • One Month Later
      AndreaB earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      511
    2. 2
      +Edouard
      200
    3. 3
      PsYcHoKiLLa
      136
    4. 4
      ATLien_0
      91
    5. 5
      Steven P.
      84
  • Tell a friend

    Love Neowin? Tell a friend!