Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

htaccess controls?

Ee Maculate
Owner of Fourmile Castle
Join date: 11 Jan 2007
Posts: 919
01-09-2010 04:40
OK.. not technically a scripting query, but I'm guessing I'm asking the most likely crowd.

I have uploaded an mp4 to my server, running linux with apache. I want to restrict streaming of the movie to requests from an SL viewer... ie don't want anybody streaming it onto a webpage or directly onto their PCs.

My guess was that the ip requesting the stream would be one of the Linden Lab ips (http://wiki.secondlife.com/wiki/Simulator_IP_Addresses)... and tried to use a .htaccess file to only allow from those IPs, but with no luck (htaccess is working fine, I can block from other ip addresses).

Any experts on this stuff that can shed some light on what I should be doing instead, or am I trying to do something that won't be possible? Do I need the IP addresses to be referrers?

Not overly bothered about the streaming... but have now spent sufficient time on this problem to be annoyed that I can't do it!

Thanks in advance!
Niall Braveheart
Registered User
Join date: 5 Oct 2008
Posts: 27
01-09-2010 07:48
I may be wrong, but I was under the impression that streaming media was accessed directly via the client and not through the sl servers.

Does htaccess allow you to control access based on the agent type?
If so then that may be another possibility, not just need access to the logs, or reports from your web server to identify what agent type the viewer reports when requesting the media.
Zoha Boa
Registered User
Join date: 12 Mar 2007
Posts: 2,893
01-09-2010 08:35
An audio or video stream isn't streamed from your website to SL (a sim) to the viewer but directly from your website to the Quicktime viewer of the person viewing the movie.

So to give some people only access to it you have to put their IP-numbers in your .htaccess file.
_____________________
ZoHa Islands: SL Real Estate Management since 2007
Looking for land ? You will find it @ ZoHa Islands !

Orange Beach Mall: 50 000 sqm shopping fun



http://slurl.com/secondlife/ZoHa%20Islands/222/227/27
website: http://www.ZoHa-Islands.com
Ee Maculate
Owner of Fourmile Castle
Join date: 11 Jan 2007
Posts: 919
01-09-2010 12:41
Thanks for the replies.... I had a look at my access logs and realised that the streaming wasn't via SL after I'd posted. Oh well...
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
01-09-2010 12:47
does it show a different agent type? you should be able to restrict by that, although you are open to any other user with the same agent (say someone copies your media address to their land...)
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -