You are here: Re: Can only get image if it's in a webpage « HTML « IT news, forums, messages
Re: Can only get image if it's in a webpage

Posted by rf on 05/27/07 10:00

"dorayme" <doraymeRidThis@optusnet.com.au> wrote in message
news:doraymeRidThis-91C27A.17212927052007@news-vip.optusnet.com.au...
> In article <hg96i.4654$wH4.3011@news-server.bigpond.net.au>,
> "rf" <rf@invalid.com> wrote:
>
>> <chancegardinner@yahoo.com> wrote in message
>> news:1180238578.363645.213260@q19g2000prn.googlegroups.com...
>> >I use the URL's for images found within a webpage in order to display
>> > the images alone on a tab in my browser.
>>
>> > Something I don't understand started happening with one of these image
>
>> > http://www.oceancitycam.com/
>> >
>> > Checking the current URL for the pic,it appears to be the same as it
>> > has been:
>> > http://www.oceancitycam.com/images/board1.jpg
>> >
>> > Somehow, they have made the pic accessible only within the wepage.
>> > Does anyone know how they do that?
>>
>> Quite simple. They serve a different image if the image is not being
>> included in *their* page.
>
> It is not quite simple. See my post.

Very simple to do. Simply check referrer. What you found is that it is hard
to ensure that it works. A simple referrer spoof is a workaround.

I suspect (not checked, I don't currently have a Safari attached to the
internet*) that Safari includes referrer in the headers sometimes. Possibly
this is because you referenced the image via control-click on *their* page.
You could check the headers sent to confirm this.

What happens when you access the image via the image URL in the OP's post?

* FWIW I abhore Safari. I develop to Camino or Firefox. Safari is simply not
complete for the stuff I do (CMS etc).

--
Richard.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация