Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

 

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help.

 
Thread Tools
Old 05-20-2013, 07:42 PM   #1
arena18
Confirmed User
 
arena18's Avatar
 
Industry Role:
Join Date: Jan 2013
Posts: 246
Secure streaming link

How to secure and protect video link from direct downloads...
I am try to make something like this link

Code:
server1.site.com/videos/123/456/789.mp4?key=0457043013fbd9ebae8ae3
Where is key= I can add user session ID, or something else, and in that way protect direct download without the proper key...

Code:
server1.site.com/videos/123/456/789.mp4
But do I make this work with .htaccess? I am on apache web server and I don't know other way to make this!


edit: good example is here this is stream link from vimeo and can be downloaded
Code:
pdl.vimeocdn.com/42891/829/162390948.mp4?aktimeoffset=0&aksessionid=3b9dcceb7a14b3436e0a7bfa0b40126b&token=1369110913_9c3017a9a1bbb77b1ca36c7b7c1eb7
but this you cant download
Code:
pdl.vimeocdn.com/42891/829/162390948.mp4
Also KVS script and pornhub use same techniques to protect videos i think..
arena18 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 05-20-2013, 08:53 PM   #2
evil0x
Registered User
 
Industry Role:
Join Date: May 2013
Posts: 31
you can use flowplayer.
evil0x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 05-20-2013, 10:15 PM   #3
Tent Pitcher
Confirmed User
 
Tent Pitcher's Avatar
 
Industry Role:
Join Date: Nov 2012
Location: New Orleans
Posts: 213
What you are asking does not have a simple answer...if you want to add a session key to the query string like your examples, you will need to employ a bit of Perl or PHP scripting. First, you would probably want to generate a session Id and store it as a cookie on the user's machine, then you will need to access that cookie and append it to the query string when a video is requested. This would require some sort of account management script.

Your best bet is to enlist the help of a PHP or Perl programmer to code something up for you. It isn't difficult if you know what you're doing with that kind of thing.
__________________
Tent Pitcher - Adult Search Engine
Tent Pitcher is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 05-21-2013, 05:47 AM   #4
arena18
Confirmed User
 
arena18's Avatar
 
Industry Role:
Join Date: Jan 2013
Posts: 246
Yes i can make it with php, its not a problem, but example above hmm ...im not sure its a php, i think this can be done via htaccess
arena18 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 05-21-2013, 09:36 PM   #5
Tent Pitcher
Confirmed User
 
Tent Pitcher's Avatar
 
Industry Role:
Join Date: Nov 2012
Location: New Orleans
Posts: 213
Sure, you could do it with .htaccess, the problem is that you only have a couple of options:

1. Allow any "key" matching a specific pattern to access the content

2. Store all of the "keys" in your .htaccess and iterate through them every time a URL is accessed

The Vimeo example you posted is using a unique session Id to track a user around the web site. That user's credentials are tied to that session Id so when that user tries to access a video, all the server needs to do is cross-reference the session Id with the user's permissions to see if they have access to the requested URL or not. This is common practice among larger sites.

I promise you that Vimeo is using cookies and scripting to manage that level of access to their assets. .htaccess is bad ass, just not for that kind of work .

If you know PHP, you can code something up like that in a few lines...let me know if you need a starting point.
__________________
Tent Pitcher - Adult Search Engine
Tent Pitcher is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 05-22-2013, 06:55 AM   #6
arena18
Confirmed User
 
arena18's Avatar
 
Industry Role:
Join Date: Jan 2013
Posts: 246
Im make it with php, and video URL looks like
Code:
site.com/playback?key=98w73987354234&id=54564651
key is encoded(user IP + sessionID)

in php im compare if userIP+sessionid = &_GET['key ']{

Also im limit streem speed to 350kb/s ...

So php is maybe good option , but maybe little slow when you seek video...
arena18 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 05-22-2013, 11:05 AM   #7
Babaganoosh
♥♥♥ Likes Hugs ♥♥♥
 
Babaganoosh's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
I use mod_auth_token - https://code.google.com/p/mod-auth-token/
__________________
I like pie.
Babaganoosh is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 05-22-2013, 09:39 PM   #8
Tent Pitcher
Confirmed User
 
Tent Pitcher's Avatar
 
Industry Role:
Join Date: Nov 2012
Location: New Orleans
Posts: 213
Quote:
Originally Posted by arena18 View Post
Im make it with php, and video URL looks like
Code:
site.com/playback?key=98w73987354234&id=54564651
key is encoded(user IP + sessionID)

in php im compare if userIP+sessionid = &_GET['key ']{

Also im limit streem speed to 350kb/s ...

So php is maybe good option , but maybe little slow when you seek video...
That looks like the correct approach...I am curious to know what you are doing after the authentication though as PHP shouldn't be limiting your streaming speed at all.

The best way to do it is to do your authentication before you print any HTTP headers, then use the "location" directive to redirect the HTTP request to the appropriate video file. This will all be seamless to the user and the only bandwidth limitation will be your server/ISP.

PHP is just the middle-man in the request - it authenticates and redirects accordingly.
__________________
Tent Pitcher - Adult Search Engine
Tent Pitcher is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 06-14-2013, 01:33 PM   #9
nixem
Registered User
 
Industry Role:
Join Date: Feb 2013
Posts: 38
There are a few WP plugins that do this for videos and digital downloads. WPEC is one for digital downloads... id look at that plugin and see what makes it tick... ill do a lil research for ya tonight.
nixem is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 12-02-2013, 03:19 PM   #10
AHarper
Confirmed User
 
Industry Role:
Join Date: Jul 2010
Posts: 846
Quote:
Originally Posted by nixem View Post
There are a few WP plugins that do this for videos and digital downloads. WPEC is one for digital downloads... id look at that plugin and see what makes it tick... ill do a lil research for ya tonight.
Did you find anything?
AHarper is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 12-03-2013, 08:29 PM   #11
CPA-Rush
small trip to underworld
 
Industry Role:
Join Date: Mar 2012
Location: first gen intel 80386/nintendo-gb/arcade/ps1/internet person
Posts: 4,927
late answer but chaturbate has similar thing http://aws.amazon.com .. they use it to block unauthorized users from viewing media on models profiles

any verified model is allowed to upload files directly to amzn cloud and put price for the content
__________________

automatic exchange - paxum , bitcoin,pm, payza

. daizzzy signbucks caution will black-hat black-hat your traffic

ignored forever :zuzana designs
CPA-Rush is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 12-03-2013, 08:40 PM   #12
CPA-Rush
small trip to underworld
 
Industry Role:
Join Date: Mar 2012
Location: first gen intel 80386/nintendo-gb/arcade/ps1/internet person
Posts: 4,927
for example i can access this thumbnail link for 10 minutes

https://cbphotovideo.s3.amazonaws.co...5I24YED36F5HNQ

but i will never be able to access big picture if i'm not authorized... something like

https://cbphotovideo.s3.amazonaws.co...5I24YED36F5HNQ
__________________

automatic exchange - paxum , bitcoin,pm, payza

. daizzzy signbucks caution will black-hat black-hat your traffic

ignored forever :zuzana designs
CPA-Rush is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
 
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.