Welcome! Log In Create A New Profile

Advanced

Re: No referrer header on leacher's site !!

April 06, 2017 07:33AM
Hello There,

I had this same issue and fixed it by the following method.

For example in HTML :
<source src="file.mp4?md5=jobIVRUfgH6USADuWsqJHr818vw&expires=1478192353" type="video/mp4" />

That is what your media stream link would look like.

But if you use JavaScript like the following example :

<script type="text/javascript">
window.onload = MediaReplacement()
function MediaReplacement() {
var _video = "/file.mp4?md5=jobIVRUfgH6USADuWsqJHr818vw&expires=1478192353";

var videoTags = document.getElementsByTagName("source");
videoTags[0].src = _video;
}
</script>
<video width="320" height="240" controls="controls">
<!-- MP4 for Safari, IE9, iPhone, iPad, Android, and Windows Phone 7 -->
<source src="" type="video/mp4" /> <!-- NOTICE HOW I MADE THIS EMPTY BECAUSE JAVASCRIPT WILL INSERT THIS NOW -->
</video>

And you insert your stream link into the page using JavaScript it unlocks the ability to make it hard for their python script to scrape/hotlink/content leech of your web pages.

You can obfuscate JavaScript you can change the var names you can make it incredibly dynamic and difficult breaking their apps completely the more dynamic it is the harder and harder it is for them to obtain your stream links.


Also you should blocked the following two user agents that those apps use.

Kodi
XBMC

(I would suggest making them non case sensitive matches too)

Where I posted in regards to this.
https://forum.nginx.org/read.php?2,270705,270739#msg-270739
https://github.com/C0nw0nk/Nginx-Lua-Secure-Link-Anti-Hotlinking

http://www.networkflare.com/
Subject Author Posted

Re: No referrer header on leacher's site !!

Francis Daly April 04, 2017 04:56PM

Re: No referrer header on leacher's site !!

shahzaib1232 April 06, 2017 03:50AM

Re: No referrer header on leacher's site !!

c0nw0nk April 06, 2017 07:33AM

Re: No referrer header on leacher's site !!

Dmitry S. Polyakov April 06, 2017 07:52AM

Re: No referrer header on leacher's site !!

c0nw0nk April 06, 2017 08:03AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 159
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready