![]() |
![]() |
![]() |
||||
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: Aug 2001
Posts: 153
|
.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?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Aug 2001
Posts: 153
|
Also is there many surfer uses Windows Media Player as theirdefault mpeg player?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Nov 2001
Location: Glendale, AZ
Posts: 155
|
you can't make media player send a refer, so you would have to figure out a work around, we did
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Apr 2001
Location: Loveland
Posts: 994
|
You can use cookies in combination with your .htaccess file.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Join Date: Aug 2001
Location: In a Bunker
Posts: 868
|
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 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
wtf
Industry Role:
Join Date: Sep 2001
Location: Bikini State, FL USA
Posts: 10,914
|
uh can you post what your .htaccess file looks like so we can see? (concerning the user agent work around"
tia, BV |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Aug 2001
Posts: 153
|
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} !(^|(.+ ![]() ![]() 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> ============================= |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: Jun 2001
Location: Thailand
Posts: 244
|
Now you have more big plomblem than .htaccess , i hope it will better my best friend
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Registered User
Join Date: Sep 2001
Location: Maryland
Posts: 83
|
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?
|
![]() |
![]() ![]() ![]() ![]() ![]() |