View Full Version : Image linking test
Gunslinger
13-05-10, 10:45
http://static.funnyjunk.com/gifs/1f2903a8b3747c08ab4d2500adf79e270.gif
so, does it work or has that site tightened up on it's hot linking ? :ninja:
Gunslinger
13-05-10, 10:55
is that what you get ? can you screen shot that for me....
i "think" i know whats going on here, they check for a cookie from their site, so obviously, if i'm there getting the images then it works, if not then it dont work ... hmmm, i have an idea, standby for take 2 :P
Gunslinger
13-05-10, 10:57
lets see what happens here, with an annon.to redirector, if my theory is correct, this should bomb for me, or work for all perhaps
http://anonym.to/?http://static.funnyjunk.com/gifs/1f2903a8b3747c08ab4d2500adf79e270.gif
EDIT:
bombed for me.... sneaky dam site
Again in Firefox 3.6 it shows nowt.
In IE8 it shows the placeholder.
In IE8 right click on placeholder and select properties it shows:
http://anonym.to/?
http://static.funnyjunk.com/gifs/1f2903a8b3747c08ab4d2500adf79e270.gif
I can copy that and put it in the address bar in IE8 and it flashes up the Anonymous and then redirects to the gif and shows it.
Firefox with it pasted stops at the Anonymous page.
On the top one now in IE8 it shows the placeholder AND the size of the picture
Properties shows:
http://static.funnyjunk.com/gifs/1f2903a8b3747c08ab4d2500adf79e270.gif
and also now if I click on show picture from properties, it works
Firefox still nowt.
Gunslinger
13-05-10, 12:13
it's got something to do with thew way the board is passing referral links, and the hosting sites restrictions or coding regarding hot linking, gotta go out for a bit right now, might try and fix it later if i have time
is that what you get ? can you screen shot that for me....
i "think" i know whats going on here, they check for a cookie from their site, so obviously, if i'm there getting the images then it works, if not then it dont work ... hmmm, i have an idea, standby for take 2 :P
I get the red-square box, I then visit the site and I can see the image. They have hotlink protection but don't offer a 'protected' image.
it's got something to do with thew way the board is passing referral links, and the hosting sites restrictions or coding regarding hot linking, gotta go out for a bit right now, might try and fix it later if i have time
nope, it has nothing to do with the forums board. It is hotlinking protection and caching playing a part in your weird results with different browsers. Hotlink protection differs from browser to browser because of how they send the 'referrer url' and that's why you are seeing different behaviours.
Put simply, host the images and the problem won't be there.
DT.
nope, it has nothing to do with the forums board. It is hotlinking protection and caching playing a part in your weird results with different browsers. Hotlink protection differs from browser to browser because of how they send the 'referrer url' and that's why you are seeing different behaviours.
Nah the described behaviour is just how Firefox/IE's rendering engines deal with broken images - Firefox and Opera don't show 'em, I.E and WebKit based browsers (eg chrome) show 'broken image' icons.
All browsers will send the same HTTP referer (unless you've 'customised' one of your own) and the 'anti-hotlink-configured' webserver simply won't show the picture in question unless the HTTP referer indicates that the refering page is on it's safe list (which probably consists only of itself). As such an 'anonymiser' service won't work, but if you could be bothered to set up a proxy service which always sent a HTTP referrer header to any given website indicating that the referring page was on the same domain, that would probably work :).
I wasn't aware that they dealt with broken images in different ways, there must be an option in my FireFox somewhere or one of the many addons has added it, because I do get to see the broken link image.
Perhaps I should update my Firefox, I'm always wary because of the amount of web debugging tools I have as addons. That may explain the first sentence now I come to think of it :D
DT.
Yeah there is almost certainly a setting somewhere for it i'd guess. I know my firefox just omits broken images anyway (which looks neater, but is a bit annoying as a web developer - I want to KNOW if something's broken!).
I tend to use chrome lately for day-to-day use, although you still can't beat firefox for addons :).
found it :)
url bar, about:config, filter on image, then there is the option of browser.display.show_image_placeholders
Mines set to true :)
//edit to not double post
turned off my addons, and I do now get nothing in the place of the image, even with that set to true. Looking at the source, it's not showing nothing, it's rendering the ALT tags, which on the forums are all set to "" :D How annoying is that!! You learn something every day :D I found this out by altering the ALT tag using FireBug, and you can then see what Firefox is doing.
DT.
OK, to complete the FireFox testing with image behaviour :D
If image is found, it is shown.
If image cannot be displayed and has NO ALT tags, you get a missing image placeholder
If image cannot be displayed and does have ALT tags, then the ALT tag is rendered in place of the image - EVEN if the ALT tag is empty (like on here)
That apparently follows the W3C standards, even though as Andyn pointed out, it's a pain in the behind for devs. If it's broken - show it to us please !!!
DT.
Gunslinger
13-05-10, 14:04
i'll sort it later, flip all the images over to imageshack or photobucket ... grrrrrr
callumburns
13-05-10, 17:22
i didnt know trying to show a picture could cause so much hassle :| its so daft!
Gunslinger
13-05-10, 17:22
i didnt know trying to show a picture could cause so much hassle :| its so daft!
yup, sites get protective over image linking, well, that site i ma not have visited regular, but when i did i wandered around it, now i will never go back there, simple as that, might even drop the addy in my FW to block it completely... so that worked well for them !
I've given up on this, simply wont bother looking at that site any more, looks like they changed it AGAIN today, now even if i'm on their website, i can't directly link into the images, so that sucks, no way to easily grab them for flipping to imageshack, so nuts to it, i've asked for the posts in the animated gifs thread to be removed
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.