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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 12-16-2001, 10:52 AM   #1
Timothy
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?
Timothy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-16-2001, 11:11 AM   #2
Timothy
Confirmed User
 
Join Date: Aug 2001
Posts: 153
Also is there many surfer uses Windows Media Player as theirdefault mpeg player?
Timothy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-16-2001, 02:08 PM   #3
ProgGod
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
ProgGod is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-16-2001, 02:17 PM   #4
shunga
Confirmed User
 
Join Date: Apr 2001
Location: Loveland
Posts: 994
You can use cookies in combination with your .htaccess file.
shunga is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-16-2001, 02:18 PM   #5
RK
Confirmed User
 
Join Date: Aug 2001
Location: In a Bunker
Posts: 868
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

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
RK is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-16-2001, 02:32 PM   #6
BV
wtf
 
BV's Avatar
 
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
BV is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-17-2001, 11:29 AM   #7
Timothy
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} !(^|(.+ *)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>
=============================
Timothy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-17-2001, 01:34 PM   #8
cck
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
cck is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-17-2001, 03:15 PM   #9
Fugly
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?
Fugly is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.