Htaccess and videos - X Nations
      
      
Go Back   X Nations > X Nations > General Webmaster Business and Discussions

Reply
 
Thread Tools Display Modes
Old 06-25-2003, 11:46 AM   #1
luke
luke should edit this Edit
Guest
 
Posts: n/a
xBucks: 0 [Check]
Default Htaccess and videos

I'm setting up a bunch of video content underneath one domain and we're trying to use htaccess to allow only certain domains to access it. But when we tried to link to the wmv windows media player opened up and says the file was corrupt. But as soon as we delete the htaccess file, it plays just fine.

Can anyone help?
  Reply With Quote
Old 06-25-2003, 01:22 PM   #2
CX*
CX* should edit this
Citizen X
 
CX*'s Avatar
 
Join Date: Jun 2003
Location: US
Posts: 26
xBucks: 70
Send a message via ICQ to CX*
Default

I have had this problem myself and the great guys at Xamo helped me figure it out...
instead of using the htaccess to list the sites that you are allowing to view the material..
I just had a folder in a website that wasn't taking members hold all my content... if your doing this too.. just make an htpasswd file and create a user and pass.. then read the following :: If this is not what you mean or you need more help let me know ....



When you link to the shared area, just use a link such as:

password@sharedcontentarea.com>http://usernameassword@sharedcontentarea.com

That should allow you to protect it and only allow authenticated users access to this area.
CX* is offline   Reply With Quote
Old 06-25-2003, 01:41 PM   #3
Ronaldo
Ronaldo is only editing this because Chris is a jackass
Xnations Voice of Reason
 
Ronaldo's Avatar
 
Join Date: Sep 2002
Location: Manitoba, Canada
Posts: 1,124
xBucks: 14,513
Send a message via ICQ to Ronaldo
Default

If that advice doesn't help you Luke, drop an email to mike@xamo.com or hit him up on icq-9439118.
Ronaldo is offline   Reply With Quote
Old 06-25-2003, 02:03 PM   #4
luke
luke should edit this Edit
Guest
 
Posts: n/a
xBucks: 0 [Check]
Default

Yeah, but then you have that user/pass that someone could link to or share.

We found a couple things we're gonna try out today.
http://www.21code.com/alfgate/index.php
http://www.hotlinkprotector.com

Thanks.
  Reply With Quote
Old 06-25-2003, 02:19 PM   #5
xamoMike
xamoMike should edit this
Xamo.com
 
xamoMike's Avatar
 
Join Date: Apr 2003
Location: Canada
Posts: 47
xBucks: 805
Send a message via ICQ to xamoMike
Default

Luke,

the problem is that when you use windows media player, it doesnt send the referring URL, so your htacces (mod_rewrite?) code won't work, because your referring URL is blank.

Another solution, is the one colette mentioned. The trick here though is to change the username and password every 5-10 minutes using a script, you could write one in PHP (or have it done for you). That way if your username/password got handed out, its only good for 10 minutes.

The only final way to do it, is the way we do it, and sorry I can't devulge that yet! It's still experimental, but seems to get around all current problems with the type of security needed here. Of course its also harder to implement. Hope it helps!
__________________
<table border=0 cellspacing=0 cellpadding=2><tr><td valign=top><a href=http://www.xamo.com></a></td><td valign=top>
Michael Brown
President, Xamo Entertainment Inc.
</td></tr></table>
xamoMike is offline   Reply With Quote
Old 06-25-2003, 02:23 PM   #6
CX*
CX* should edit this
Citizen X
 
CX*'s Avatar
 
Join Date: Jun 2003
Location: US
Posts: 26
xBucks: 70
Send a message via ICQ to CX*
Default

Mike is the one who told me how to do this... although it didn't work for my problem since im using a php script to serve all the photos and media. I do know quite a few people who are having the same problem and one of them wrote their own script in php to get it to work..

Mike you are the man!!!
CX* is offline   Reply With Quote
Old 06-25-2003, 02:25 PM   #7
xamoMike
xamoMike should edit this
Xamo.com
 
xamoMike's Avatar
 
Join Date: Apr 2003
Location: Canada
Posts: 47
xBucks: 805
Send a message via ICQ to xamoMike
Default

wow fast post.. thanks Colette! Anytime you need PHP help, you know who to bang over the head!!!
__________________
<table border=0 cellspacing=0 cellpadding=2><tr><td valign=top><a href=http://www.xamo.com></a></td><td valign=top>
Michael Brown
President, Xamo Entertainment Inc.
</td></tr></table>
xamoMike is offline   Reply With Quote
Old 06-25-2003, 02:43 PM   #8
luke
luke should edit this Edit
Guest
 
Posts: n/a
xBucks: 0 [Check]
Default

Thanks yall. I will let you know if what we found works or not.
  Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
2013 - xnations.com
All times are GMT -4. The time now is 12:20 AM.
Skin by vBCore.com