• 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

    • I agree. I also think Phil stayed too long. They should definitely fire whoever thought all a console platform needed was Call of Duty, Elder Scrolls, and Fallout to survive. Asha and crew are still saying they need more Elder Scrolls and Fallout games. They simply don't get it.
    • Macbook Air is an appealing option, as are plethora of Windows devices with various different CPU's
    • Mozilla highlights Firefox Nova 2026 redesign and more upcoming features with new roadmap by Sayan Sen Last month Mozilla confirmed that Firefox was set to get a major redesign this year. Dubbed "Project Nova", it can already be tested and will roll out to all users later this year.The idea is to keep the browser competitive in a rapidly evolving internet landscape. As such the revamp focuses on improving privacy, usability, performance, accessibility, and customization. Key privacy features including the built-in VPN, private browsing mode, and Enhanced Tracking Protection, will be more visible and easier to manage, while users will have the option to disable AI features entirely through a dedicated kill switch. Additionally, the redesign promises faster page loading, the return of Compact mode, expanded personalization options, and stronger accessibility support. You can find the full details in the dedicated piece linked above. In a new blog post today the company once again reiterated on Nova and also emphasized other new and upcoming features like the settings revamp that is intended to make it easier for users to understand browser settings. In order to make it simpler for users to keep up with such features Mozilla today is launching Firefox roadmap. Hence enthusiasts and interested users will be able to check out what's cooking and also share feedback about the upcoming additions. Alongside the roadmap announcement, Mozilla also highlighted what's new in Firefox 152. One of the biggest additions is the arrival of Tab Groups on Android. The feature, which has already been helping desktop users organize large numbers of tabs, is now beginning to roll out on mobile. Users will be able to group related tabs together, assign names and colors to them, and return to them later. Mozilla says support for iOS will arrive later this year. Firefox 152 also introduces the aforementioned redesigned Settings experience. The company says the changes are meant to make controls easier to find and help users discover features they may not have previously known about. Existing preferences are not changing, though they are now better organized. Another notable addition is the new Blocked Tracker Widget, which provides a visual overview of Firefox's privacy protections by showing how many trackers have been blocked over time and the types of tracking activity the browser has stopped. Looking ahead, Mozilla revealed several upcoming roadmap features. They include customizable keyboard shortcuts, as well as enhanced PDF editing tools that will allow documents to be split, merged, and reorganized directly within Firefox. The company is also working on bringing Multi-Account Containers into the native Firefox experience thus removing the need for a separate extension. Meanwhile Firefox's built-in VPN is set to expand to mobile devices. Mozilla is also developing AI-powered features like Quick Answers, which can provide concise responses to voice queries, and Smart Window, its optional AI browsing experience that is now available without a waitlist. Finally, a new Power Saving Mode is in the works and will help reduce the impact of resource-heavy tabs on mobile devices in order to extend battery life. The video below summarizes the upcoming changes in an easy to understand format: You can find the announcement blog post here on Mozilla's official website.
    • Dead on arrival at that price. Like they missed the mark by multiple hundreds of dollars - this should actually undercut the Macbook Air at $899 if they want any sort of sales / further adoption of WoA
  • Recent Achievements

    • One Year In
      Console General earned a badge
      One Year In
    • One Year In
      Twozo Technologies earned a badge
      One Year In
    • One Month Later
      Twozo Technologies earned a badge
      One Month Later
    • Week One Done
      Twozo Technologies earned a badge
      Week One Done
    • Veteran
      branfont went up a rank
      Veteran
  • Popular Contributors

    1. 1
      +primortal
      513
    2. 2
      +Edouard
      196
    3. 3
      PsYcHoKiLLa
      109
    4. 4
      Steven P.
      89
    5. 5
      Nick H.
      71
  • Tell a friend

    Love Neowin? Tell a friend!