GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   .htaccess with Windows Media Player? (https://gfy.com/showthread.php?t=44262)

Timothy 12-16-2001 10:52 AM

.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?

Timothy 12-16-2001 11:11 AM

Also is there many surfer uses Windows Media Player as theirdefault mpeg player?

ProgGod 12-16-2001 02:08 PM

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

shunga 12-16-2001 02:17 PM

You can use cookies in combination with your .htaccess file.

RK 12-16-2001 02:18 PM

Quote:

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 http://bbs.gofuckyourself.net/board/smile.gif

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

BV 12-16-2001 02:32 PM

uh can you post what your .htaccess file looks like so we can see? (concerning the user agent work around"

tia,
BV

Timothy 12-17-2001 11:29 AM

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>
=============================

cck 12-17-2001 01:34 PM

Now you have more big plomblem than .htaccess , i hope it will better my best friend http://bbs.gofuckyourself.net/board/smile.gif

Fugly 12-17-2001 03:15 PM

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