Reply to Re: Can only get image if it's in a webpage

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на 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

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