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 and QuickTime question (https://gfy.com/showthread.php?t=115981)

jennycards 03-15-2003 03:23 AM

.htaccess and QuickTime question
 
Hi!

Playing around with .htaccess we had to find out that the activeX to play Quicktime .mov files does not transmit the http referer on Windows browsers. It does however transmit referers on Macintosh browsers.

Anybody else noticed that before ... and has got a solution?

Thank you!

Mutt 03-15-2003 03:27 AM

do you mean if you have your QT movies in a password protected directory that if I have the URL of the movie file I can see it without being prompted for a username and password?

never noticed that.

jennycards 03-15-2003 03:42 AM

No, it means that when I have a .htaccess file that tries to test for hotlinked movies I am not able to catch "no referers" because even properly linked movies have "no referer".

Normally I would expect my .htaccess to work like this:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://.*mydomain\.com*$ [NC]
RewriteRule \.mov$ http://www.mydomain.com/forbidden.mov [R,L]

But it does not work like this because on some browsers I _never_ receive a request with mydomain.com as a referer.

Instead I have to do it like this:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://.*mydomain\.com*$ [NC]
RewriteRule \.mov$ http://www.mydomain.com/forbidden.mov [R,L]

But this is dangerous because every user entering my .mov URL directly would get the movie.

x3m 03-15-2003 04:13 AM

We have the solution. Let me know if you have any questions. [email protected]

jennycards 03-15-2003 04:41 AM

Quote:

Originally posted by x3m
We have the solution. Let me know if you have any questions. [email protected]
Thank you ... going to check it out.


All times are GMT -7. The time now is 03:55 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123