Posted by J.O. Aho on 05/27/07 10:22
rf wrote:
> "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.
Yes, the board1.jpg php-script does check the HTTP referer and will serve the
message image to those requests that don't have the right referer.
For those with wget, you can try
wget http://www.oceancitycam.com/images/board1.jpg
wget --referer=http://www.oceancitycam.com/
http://www.oceancitycam.com/images/board1.jpg
and you will end with two different images.
--
//Aho
[Back to original message]
|