The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > Web Apps
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 08-20-2008, 01:51 AM
What's Jailbreak?
 
Join Date: Jul 2008
Device + Firmware: Iphone 2.0
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
mp4 videos Streaming quicktime w/ .htaccess?

So I have mp4 videos uploaded on my web hosting service. To be safe, I have given the directory where they are located your standard username & password protection using .htaccess.

The problem is, iPhone's Safari won't stream the mp4s with the authentication in place. It streams it perfectly without the .htaccess authentication, but consistently get "movie could not be played" errors with.

They stream perfectly in every computer-based browser I throw at it regardless.

it's something about the iphone that when you try to access a video when you are logged into a pass protected area, the mp4 wont play... the phone doesnt carry your user/pass.

anyone know the fix? or another way around this?

bump,... anyone ? this is driving me nuts ive been trying to figure this out for hours!

Last edited by Persius; 08-20-2008 at 01:51 AM.. Reason: Automerged Doublepost
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #2  
Old 08-20-2008, 02:29 AM
iPhoneaholic
 
Join Date: Sep 2007
Device + Firmware: iPhone 3GS, 3G & 2G
Operating System: OSX 10.5.x & Windows XP
Posts: 365
Thanks: 14
Thanked 63 Times in 52 Posts

In order to make this work, I had to add this to my .htaccess file. This will lower your security level in that someone having a complete path to a particular media file could access it without a password, but I never found another work around.

(see attachment)
Attached Files
File Type: txt htaccess (add leading .).txt (483 Bytes, 233 views)

Last edited by DaveiPhone; 08-20-2008 at 02:34 AM..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #3  
Old 08-20-2008, 03:07 AM
What's Jailbreak?
 
Join Date: Jul 2008
Device + Firmware: Iphone 2.0
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

Quote:
Originally Posted by DaveiPhone View Post
In order to make this work, I had to add this to my .htaccess file. This will lower your security level in that someone having a complete path to a particular media file could access it without a password, but I never found another work around.

(see attachment)
the problem is i need them to be protected, any other way around this ?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #4  
Old 08-20-2008, 10:34 AM
iPhoneaholic
 
Join Date: Sep 2007
Device + Firmware: iPhone 3GS, 3G & 2G
Operating System: OSX 10.5.x & Windows XP
Posts: 365
Thanks: 14
Thanked 63 Times in 52 Posts

They are still protected this way. You still need to login to the server, and you can use many tricks to make it nearly impossible to guess a path. My security point is that if you know the EXACT path to a particular file, you can get to it without needing to login first. Most pay sites for example, are the same. There are relatively few sites that are secure once you know an interior path. But they still, for example, couldn't get a directory listing.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #5  
Old 08-21-2008, 12:36 PM
biswajitghosh's Avatar
What's Jailbreak?
 
Join Date: Feb 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts

Its still not ready for 1.2.0.2 firmware.It crashes in between.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #6  
Old 08-21-2008, 10:48 PM
iPhoneaholic
 
Join Date: Sep 2007
Device + Firmware: iPhone 3GS, 3G & 2G
Operating System: OSX 10.5.x & Windows XP
Posts: 365
Thanks: 14
Thanked 63 Times in 52 Posts

Huh? I've been using this for months, never a crash.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #7  
Old 09-03-2008, 04:40 PM
What's Jailbreak?
 
Join Date: Jul 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts

Why do they need to be protected? As long as you don't tell anyone the file path or the file name, people won't find it.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #8  
Old 09-27-2008, 09:11 AM
Green Apple
 
Join Date: Sep 2008
Device + Firmware: 3G - 2.1 and 2G 2.0.1
Operating System: XP/Vista/OSX 10.5.2/GutsyGibbon
Posts: 42
Thanks: 0
Thanked 4 Times in 3 Posts
Send a message via AIM to dapaintballer331

I have a fix.
Instead of htaccess/htpasswd, use php's cookie/session authorization. If you can password protect a php page, php can protect files as well.

Create a php login/authorization script (5 minutes?)
Put all protected files in a folder that has "Deny ALL" in htaccess
Create a dl.php file. If they are logged in, have it stream the files in the deny all folder (php can access this, deny all is for http only). If you want quicktime to play the file, be sure to have it send the correct mimi type in the headers. (video/mpeg?)
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #9  
Old 02-26-2009, 03:29 PM
Green Apple
 
Join Date: Sep 2007
Device + Firmware: 4GB iPhone First Gen FW 2.2
Operating System: OSX 10 and Win Vista (It's not bad at all! They fixed "all" the problems)
Location: New York City
Posts: 53
Thanks: 1
Thanked 0 Times in 0 Posts

Thankfully I'm a LVL 7 Necromancer and can bring this thread back from the dead!

I think this is the problem I'm having. I have videos behind a password and they just won't play. To be honest, this PHP stuff is a bit over my head. Is there a way around this, or is the PHP scripts the best way?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #10  
Old 02-26-2009, 04:14 PM
Banned
 
Join Date: Dec 2008
Device + Firmware: iPhone 3G 2.2 (jailbroken)
Operating System: Windows Vista
Location: Chicago, Illinois
Posts: 158
Thanks: 18
Thanked 15 Times in 11 Posts

Just out of curousity why are you trying to hide your files? From the server? Or you don't want public users to have access to them?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #11  
Old 02-26-2009, 05:09 PM
Green Apple
 
Join Date: Sep 2007
Device + Firmware: 4GB iPhone First Gen FW 2.2
Operating System: OSX 10 and Win Vista (It's not bad at all! They fixed "all" the problems)
Location: New York City
Posts: 53
Thanks: 1
Thanked 0 Times in 0 Posts

Are we allowed to back-and-forth like this? Sorry to the mods!

I do not want public access to the files, no.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > Web Apps

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On



Go to Top
ModMyI

All times are GMT -6. The time now is 02:46 AM. Powered by vBulletin® Version 3.8.4
If you need Dedicated Server Hosting, you should check out SingleHop. | Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 Copyright © 2007-09 by ModMy, LLC. All rights reserved.

iPhone News / iPhone Forums / Apple News / Apple Forums / RSS / Contact Us / / Privacy Statement / Top