Bitcoin Forum

Other => Meta => Topic started by: TheButterZone on August 04, 2014, 09:43:18 PM



Title: Photobucket thumbnails only - blocked by image proxy?
Post by: TheButterZone on August 04, 2014, 09:43:18 PM
Code:
[URL=http://smg.photobucket.com/user/baybones/media/serialized/2-1.jpg.html][IMG]http://img.photobucket.com/albums/v51/baybones/serialized/th_2-1.jpg[/img]

http://img.photobucket.com/albums/v51/baybones/serialized/th_2-1.jpg

Code:
[img]http://rsmg.pbsrc.com/albums/v51/baybones/serialized/2-1.jpg~c100[/img]

http://rsmg.pbsrc.com/albums/v51/baybones/serialized/2-1.jpg~c100


Title: Re: Photobucket blocked by image proxy?
Post by: ForgottenPassword on August 04, 2014, 09:54:14 PM
http://img.photobucket.com/albums/v51/baybones/serialized/th_2-1.jpg

That URL redirects to a HTML page for me, so it won't work. It needs to link to an image, not a page. I know the URL ends in .jpg, but photobucket redirects me to .jpg.html


Title: Re: Photobucket blocked by image proxy?
Post by: TheButterZone on August 04, 2014, 09:57:59 PM
Suddenly TODAY Photobucket no longer works with exactly the same [img] tag format that it's had people copy for months, if not years.


Title: Re: Photobucket blocked by image proxy?
Post by: ForgottenPassword on August 04, 2014, 10:03:55 PM
Suddenly TODAY Photobucket no longer works with exactly the same [img] tag format that it's had people copy for months, if not years.

Thats a real pitty if thats the case.

They don't make any ad revenue if people don't view the page. Each time someone views a hotlinked image they actually lose money due to bandwidth costs. Maybe they recently decided to disallow hotlinking because they were losing too much.

Something similar happened to ImageShack a long time ago. They decided to disallow hotlinking for a ton of images they were hosting, breaking them across the internet.


Title: Re: Photobucket blocked by image proxy?
Post by: TheButterZone on August 04, 2014, 11:06:26 PM
Yeah but the whole point of putting out thumbnails is they drive traffic to Photobucket.com instead of just having hotlink bandwidth wasted.


Title: Re: Photobucket blocked by image proxy?
Post by: TheButterZone on August 04, 2014, 11:19:38 PM
I submitted a ticket to their Zendesk and referenced this topic.


Title: Re: Photobucket blocked by image proxy?
Post by: ForgottenPassword on August 05, 2014, 02:08:59 AM
AHA! The thumbnail does not work, but the fullsize one does.

Code:
[IMG]http://img.photobucket.com/albums/v51/baybones/serialized/th_2-1.jpg[/img]
http://img.photobucket.com/albums/v51/baybones/serialized/th_2-1.jpg
Code:
[IMG]http://img.photobucket.com/albums/v51/baybones/serialized/2-1.jpg[/img]
http://img.photobucket.com/albums/v51/baybones/serialized/2-1.jpg


Title: Re: Photobucket blocked by image proxy?
Post by: TheButterZone on August 05, 2014, 04:16:13 AM
Ridic...


Title: Re: Photobucket thumbnails only - blocked by image proxy?
Post by: TheButterZone on August 07, 2014, 07:04:02 PM
It appears that it's an issue only with bitcointalk's image proxy. http://scandiego.com/phpBB3/viewtopic.php?f=12&t=1748 shows PB thumbnails fine.

Should I just change all my BBcode thumbnails to hotlinked originals until bitcointalk is fixed?


Title: Re: Photobucket thumbnails only - blocked by image proxy?
Post by: theymos on August 07, 2014, 08:03:43 PM
It's not a problem with the image proxy. The pages behave differently depending on whether you have a photobucket cookie or not. Maybe the referrer also matters. In any case, photobucket gives you an image, but it gives the forum an HTML page.

Try going directly to the URL of one of those thumnails in a separate browser.


Title: Re: Photobucket thumbnails only - blocked by image proxy?
Post by: poisenrang on August 08, 2014, 03:39:30 PM
upload the picture to www.imgur.com then get the URL put it as [IMG]http://URL[/img]


Title: Re: Photobucket thumbnails only - blocked by image proxy?
Post by: TheButterZone on August 08, 2014, 06:05:59 PM
I'm not uploading 200-300 pics to imgur just to have that go down too. Have you seen how unreliable imgur is? This is the first blemish on Photobucket's long track record I can remember.


Title: Re: Photobucket thumbnails only - blocked by image proxy?
Post by: dree12 on August 08, 2014, 06:08:16 PM
It's not a problem with the image proxy. The pages behave differently depending on whether you have a photobucket cookie or not. Maybe the referrer also matters. In any case, photobucket gives you an image, but it gives the forum an HTML page.

Try going directly to the URL of one of those thumnails in a separate browser.

This can be fixed by having the forum image proxy send the proper cookie to photobucket.


Title: Re: Photobucket thumbnails only - blocked by image proxy?
Post by: theymos on August 08, 2014, 10:26:15 PM
This can be fixed by having the forum image proxy send the proper cookie to photobucket.

If adding a specific cookie will fix it, tell me what the cookie is and I'll add it. It'd be too difficult to have the image proxy do something like stay logged into photobucket, though.

I didn't investigate enough to know exactly what causes the page to behave differently. But when I visit some of those thumbnail images in my main browser, I get an image, and when I open a new browser and visit the same URL directly, I get an HTML page.


Title: Re: Photobucket thumbnails only - blocked by image proxy?
Post by: ForgottenPassword on August 09, 2014, 12:32:04 AM
This can be fixed by having the forum image proxy send the proper cookie to photobucket.

If adding a specific cookie will fix it, tell me what the cookie is and I'll add it. It'd be too difficult to have the image proxy do something like stay logged into photobucket, though.

I didn't investigate enough to know exactly what causes the page to behave differently. But when I visit some of those thumbnail images in my main browser, I get an image, and when I open a new browser and visit the same URL directly, I get an HTML page.

The link always redirects to a html page with my browser (firefox), though I do have an addon that blocks tracking/third party cookies.


Title: Re: Photobucket thumbnails only - blocked by image proxy?
Post by: TheButterZone on August 09, 2014, 01:45:30 AM
I guess I need to build an army of Photobucket users to all submit a separate ticket at http://support.photobucket.com/hc/en-us

No response to my ticket since Last Tuesday at 08:57.


Title: Re: Photobucket thumbnails only - blocked by image proxy?
Post by: dree12 on August 09, 2014, 02:29:02 AM
This can be fixed by having the forum image proxy send the proper cookie to photobucket.

If adding a specific cookie will fix it, tell me what the cookie is and I'll add it. It'd be too difficult to have the image proxy do something like stay logged into photobucket, though.

I didn't investigate enough to know exactly what causes the page to behave differently. But when I visit some of those thumbnail images in my main browser, I get an image, and when I open a new browser and visit the same URL directly, I get an HTML page.

This seems to work for me (I get a image/jpg [sic—the correct MIME type is image/jpeg], not a text/html):

Code:
GET /albums/v51/baybones/serialized/th_2-1.jpg HTTP/1.1
User-Agent: Wget/1.15 (linux-gnu)
Accept: */*
Host: img.photobucket.com
Connection: Keep-Alive

These are the default Wget headers.

Edit:

These very similar headers cease to work, getting a 302 Found response and thus a text/html page.

Code:
GET /albums/v51/baybones/serialized/th_2-1.jpg HTTP/1.1
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0
Accept: text/html,*/*
Host: img.photobucket.com
Connection: Keep-Alive

Oddly, changing both the user agent and Accept header seem to be necessary.

It seems the easiest way to fix this issue is to refuse sending the "Accept: text/html" header, or alternatively spoof the user agent so that it is not understood. It is possible browsers do not send this when hotlinking, hence there are no issues on other forums.

Indeed, my browser sends "Accept: image/png,image/*;q=0.8,*/*;q=0.5" on other forums. So this change is easier than expected; simply change the Accept header sent. There is also no need to special-case PhotoBucket, as the image proxy should not be accepting text/html anyways, for any server.


Title: Re: Photobucket thumbnails only - blocked by image proxy?
Post by: TheButterZone on August 09, 2014, 05:30:43 PM
Quote
   
Danny (Photobucket Support)
Aug 09 10:28 AM

Hi,

It does appear that the issue lies on their end, as our code shouldn't cause any images to display that way when linking them out. It seems specific to that forum.

If I had to venture a guess, it would be that the forum has issues with the redirect for the thumbnail image ( the img to smg change). Unfortunately, that isn't something that can fixed on our end, as there is no current plan to stop images from redirecting back to the site.

It sometimes displays just the thumbnail, and redirects to the media detail page at others. I don't know why that functionality is that way with thumbnails linked out, and I'll have our engineers look into that further.

Thank you,

Posted From bitcointalk.org Android App


Title: Re: Photobucket thumbnails only - blocked by image proxy?
Post by: dree12 on August 09, 2014, 05:54:24 PM
Quote
   
Danny (Photobucket Support)
Aug 09 10:28 AM

Hi,

It does appear that the issue lies on their end, as our code shouldn't cause any images to display that way when linking them out. It seems specific to that forum.

If I had to venture a guess, it would be that the forum has issues with the redirect for the thumbnail image ( the img to smg change). Unfortunately, that isn't something that can fixed on our end, as there is no current plan to stop images from redirecting back to the site.

It sometimes displays just the thumbnail, and redirects to the media detail page at others. I don't know why that functionality is that way with thumbnails linked out, and I'll have our engineers look into that further.

Thank you,

Posted From bitcointalk.org Android App

Code:
Accept: text/html

is the culprit; see my post above. This should be a fairly easy change to the image proxy.


Title: Re: Photobucket thumbnails only - blocked by image proxy?
Post by: BTCreward on August 09, 2014, 06:35:52 PM
I guess I need to build an army of Photobucket users to all submit a separate ticket at http://support.photobucket.com/hc/en-us

No response to my ticket since Last Tuesday at 08:57.
If you go to the .jpg page (actually .html) and right click on the image you should be able to get the link to the actual image. This is just a way for them to get more ad revenue as when you link just the image they will not get any ad impressions (revenue).


Title: Re: Photobucket thumbnails only - blocked by image proxy?
Post by: TheButterZone on August 09, 2014, 07:47:48 PM
dree12: Yes, thanks. Waiting for someone to do something about it that I can't.

If you go to the .jpg page (actually .html) and right click on the image you should be able to get the link to the actual image. This is just a way for them to get more ad revenue as when you link just the image they will not get any ad impressions (revenue).

Already addressed.

Yeah but the whole point of putting out thumbnails is they drive traffic to Photobucket.com instead of just having hotlink bandwidth wasted.

I want the thumbnails in my posts. I have no problem with the thumbnails driving traffic, because everyone should have AdBlock Plus, etc. The original images and even the medium scale ones are WAY TOO FUCKING BIG FOR A FORUM. So the thumbnails need to work.


Title: Re: Photobucket thumbnails only - blocked by image proxy?
Post by: theymos on August 09, 2014, 08:19:37 PM
I get a image/jpg [sic—the correct MIME type is image/jpeg]

This was the problem. The image proxy has a whitelist of allowed content-types. image/jpg is invalid and was therefore not allowed. I allowed it. (Photobucket should really fix this, though.)

The image proxy didn't send an Accept header, so that was not part of the problem.

Thanks for looking into it.


Title: Re: Photobucket thumbnails only - blocked by image proxy?
Post by: TheButterZone on August 09, 2014, 09:00:52 PM
Yay, thank you kindly.


Title: Re: Photobucket thumbnails only - blocked by image proxy?
Post by: dree12 on August 10, 2014, 02:47:25 AM
I want the thumbnails in my posts. I have no problem with the thumbnails driving traffic, because everyone should have AdBlock Plus, etc. The original images and even the medium scale ones are WAY TOO FUCKING BIG FOR A FORUM. So the thumbnails need to work.

By the way:

Code:
[img width=100 height=100]http://image[/img]

Produces a shrunk version of the given image (measurements in pixels).

For example, this:
http://www.joomlaworks.net/images/demos/galleries/abstract/7.jpg

Becomes:
http://www.joomlaworks.net/images/demos/galleries/abstract/7.jpg


Title: Re: Photobucket thumbnails only - blocked by image proxy?
Post by: TheButterZone on August 10, 2014, 04:01:54 AM
Same amount of bandwidth to scale an image down in dimensions but not filesize effectively client-side.