![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Mar 2002
Location: Living in the bottle.
Posts: 590
|
htacess, passwords & mediaplayer double login problem
I want users to be able to play mpg files from a members area that is password protected. When they are already logged in... and trying to open files to Win media player... the LogIn window pops up requiring them to login again.
This does not work: AuthUserFile /www/domain/members/.htpasswd AuthName "USERS" AuthType Basic Satisfy any SetEnvIf User-Agent ^Windows-media-player/ WMP <FilesMatch mpg$> Order allow,deny Allow from WMP </FilesMatch> Any ideas? how this should be handled? And how I can get dialer connections... allowed to members area without asking psw?
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Mar 2002
Location: Living in the bottle.
Posts: 590
|
No any Apache experts ?
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
FBOP Class Of 2013
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
|
i have never been able to figure that one out myself....always happens, but no member has ever complained
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Sep 2001
Location: Boston
Posts: 4,873
|
I dunno maybe link to the clips in the:
http://user:[email protected]/ format ? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Dec 2003
Location: Riverside and San Diego
Posts: 688
|
I'm not sure why that logic does not work, I'm thinking that your setenv if statement is not being properly matched perhaps, but the only way I've seen players be able to stream protected media files, is via a session string.
The session string gets sent with the request and you decode the string when the media player makes the request... something like... yourserver.com/protected_files/someweird_ass_crypted_string/file.mp3 You can setup some type of apache/mod_perl handler to do the authentication when it hits that protected_files directory and then allow the file to be delivered or not. That will get rid of your htaccess double popup problem. That's one way to do it. But maybe not the easiest or most straight forward way to do it
__________________
KBBQ 2 3 1 6 1 8 8 1 6 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Join Date: Dec 2003
Location: Riverside and San Diego
Posts: 688
|
Quote:
With one of the IE updates, you can no longer pass user/pass in URLs no more. Or, it might be just IE does not recognize that anymore, but media players still might. *shrug*
__________________
KBBQ 2 3 1 6 1 8 8 1 6 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Confirmed User
Join Date: Mar 2002
Location: Living in the bottle.
Posts: 590
|
Quote:
__________________
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Confirmed User
Join Date: Mar 2002
Location: Living in the bottle.
Posts: 590
|
Quote:
![]()
__________________
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Industry Role:
Join Date: Jul 2003
Location: In the middle of nowhere...
Posts: 1,974
|
I think the dialer problem should be solved with the mod rewrite engine:
order allow,deny allow from all AuthUserFile /dev/null AuthGroupFile /dev/null RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/ [NC] RewriteCond %{HTTP_REFERER} !^http://yourdomain.com/ [NC] RewriteCond %{HTTP_REFERER} !^http://www.dialer-domain.com/ [NC] RewriteCond %{HTTP_REFERER} !^http://212.162.56.189/ [NC] (dialer-domain.com or IP-adress of the dialer) |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Confirmed User
Join Date: Mar 2002
Location: Living in the bottle.
Posts: 590
|
Quote:
when dialer / broadband voice call user is trying to view moview using WMP... MediaPlayer asks the password!!! huh!
__________________
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Industry Role:
Join Date: Jul 2003
Location: In the middle of nowhere...
Posts: 1,974
|
The problem is that wmp requires plugins which are taken from outside your website. Those plugins don´t have the referrer, of course, so that´s why .htaccess asks for the password.
So the only solution is a a specíal get-request to load the video without asking for a pw. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Join Date: Mar 2002
Location: Living in the bottle.
Posts: 590
|
Is there any way to allow user from some referrer... for ex MYDOMAIN without psw while requiring psw from users from other referrers like 123DOMAIN?
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |