![]() |
.htaccess with Windows Media Player?
I just notice that my Windows Media Player doesn't send out a referer and .htaccess considers its a hotlinkers and redirect 'em! How can i prevent this?
|
Also is there many surfer uses Windows Media Player as theirdefault mpeg player?
|
you can't make media player send a refer, so you would have to figure out a work around, we did http://bbs.gofuckyourself.net/board/smile.gif
|
You can use cookies in combination with your .htaccess file.
|
Quote:
Well, there are two simple ways. 1) Allow acess to clients with no referer 2) Allow access from windows media player based on the user agent ------------------ Create Your Own Hosting Plan! Pay-As-You-Go Hosting FREE Trial! Limited Time Specials EnergyHosting - Energizing your business |
uh can you post what your .htaccess file looks like so we can see? (concerning the user agent work around"
tia, BV |
Hey thanks Shunga. I got it. http://bbs.gofuckyourself.net/board/wink.gif
========================= AuthGroupFile /dev/null RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*domain.com/.* [NC] RewriteCond %{HTTP_REFERER} !^http://111.222.333.444/.* [NC] RewriteCond %{HTTP_COOKIE} !(^|(.+ http://bbs.gofuckyourself.net/board/wink.gif*)id=valid(;. http://bbs.gofuckyourself.net/board/wink.gif*|$) RewriteRule /* http://www.redirect-domain.com/ [R,L] ============================= And insert this code in html page, between <head></head> ============================= <SCRIPT LANGUAGE="javascript"> // Calculate the expiration date var expires = new Date (); expires.setTime(expires.getTime() + 6 * 60 * 60 * 1000); document.cookie = "id=valid; path=/" + "; expires=" + expires.toGMTString(); </SCRIPT> ============================= |
Now you have more big plomblem than .htaccess , i hope it will better my best friend http://bbs.gofuckyourself.net/board/smile.gif
|
That solves it if you're only protecting that directory by checking the referrer, but what if you want to put the .avi and other media files under your main MEMBERS directory, which also has to check your .htpasswd file?
|
All times are GMT -7. The time now is 06:33 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123