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?
.htaccess with Windows Media Player?
Collapse
X
-
you can't make media player send a refer, so you would have to figure out a work around, we did
Premium Tier1 Hosting/bandwidth $65/megabit: $.20/gig
Way2Fast Hosting
ICQ: 69658209, AIM: ProgGod123, Email: [email protected]Comment
-
You can use cookies in combination with your .htaccess file.Clockwork Cash - ICQ: 355-26-288 / Email: admin AT clockworkcash DOT com
Asian Paysites : Exclusive Content : NATS or CCBill
Thai Cuties : Shave Asians : JAVondemandComment
-
Originally posted by ProgGod:
you can't make media player send a refer, so you would have to figure out a work around, we did
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 businessDoes anyone look down here?Comment
-
Hey thanks Shunga. I got it.
=========================
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} !(^|(.+
*)id=valid(;.
*|$)
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>
=============================Comment
-
Now you have more big plomblem than .htaccess , i hope it will better my best friend
Cutecookie
April Cck Butter
#64789135
Topbucks.com My Best sponsor
X-clips.com Always welcome for your traffic tradeComment
-
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?Comment

Comment