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 John Hosking on 05/27/07 10:25

chancegardinner@yahoo.com wrote:
>
> Til recently this URL: http://www.oceancitycam.com/images/board1.jpg
> went to a webcam of a boardwalk in Maryland. The jpeg changed about
> every 5 seconds.
>
> Now when you go to that URL you get a a message:
> "Visit Beach-net.com Web Cams."
>
> However if you go to the page where the webcam image is embedded it
> appears as usual: 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?

The site checks for the referrer. When I turn off referrers in my
Firefox, I only ever see the ersatz image
http://www.oceancitycam.com/images/hotlink.jpeg, even within their main
page. I must have referrers enabled, and I must be accessing the
board1.jpg image via their site. They're doubtless enforcing this with
..htaccess files.

See, for example, http://en.wikipedia.org/wiki/Hotlink and
http://altlab.com/htaccess_tutorial.html.

--
John

 

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

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