Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Safari referrer problem

Safari referrer problem
Thread Tools
Grizzled Veteran
Join Date: Jun 2001
Location: Seattle
Status: Offline
Reply With Quote
Mar 12, 2004, 08:26 PM
 
So I finally decide to update my site to make it a bit friendlier to other browsers. And then I find there's a big problem with IE6 and Safari's handling of object tags. They don't seem to send a referrer.

So going to this page in OW the server shows this:

Code:
... 216.254.20.138 - - [12/Mar/2004:18:18:39 -0800] "GET /Movies/wakeup.mov HTTP/1.1" 200 931817 "http://thewonderllama.com/cgi-bin/video.cgi?wakeup" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US) AppleWebKit/85 (KHTML, like Gecko) OmniWeb/v533 ...
but in Safari it shows this:

Code:
... 216.254.20.138 - - [12/Mar/2004:18:21:31 -0800] "GET /Movies/wakeup.mov HTTP/1.1" 304 - "-" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-us) AppleWebKit/124 (KHTML, like Gecko) Safari/125 ...
The problem is I don't let requests that don't have us as the referrer get our media. So Safari's effectively locking itself out by its omission. The object tag is shown below. So is there anyway to get this to work? Am I missing something? Or is Safari just retarded? Win/IE does the same thing. Any ideas on how to block t'ievery and get the pages to work in Safari?

Thanks,
~BS

Code:
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="320" height="256" codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0"> <param name="controller" value="TRUE" /> <param name="type" value="video/quicktime" /> <param name="autoplay" value="true" /> <param name="target" value="myself" /> <param name="src" value="/Movies/wakeup.mov" /> <param name="pluginspage" value="http://www.apple.com/quicktime/download/indext.html" /> <param name="standby" value="...the wonder llama presents..." /> </object>
(Last edited by MrBS; Mar 12, 2004 at 08:40 PM. )
     
MrBS  (op)
Grizzled Veteran
Join Date: Jun 2001
Location: Seattle
Status: Offline
Reply With Quote
Mar 15, 2004, 12:51 PM
 
So I've taken the block off for now as Safari and IE decide not to send a referrer when they request an object, so if you test it out now you won't get the results posted above.

But does anyone have a reason why they do that? or is it just a bug? Any good work-arounds? Is there a way I could include the movies through a [insert some technology here] where I would be able to check the referrer and not display the uri of the media file? Until I figure that out I guess I'll just be rotating the /Movies directory proxy pass.

Thanks,
~BS
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:01 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2