• Please note that this section is for questions regarding the forum itself - it is not for fan game-related questions. If you have a question about a fan game, ask in the appropriate thread.

  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Forum having issues with imgur?

That's a shame, I only have imgur for image hosting, the other sites I tried in the past became premium only.

I hope this is not a permanent thing.

It does seem like imgur has gone downhill nowadays, they say things are a lot more moderated to suit the advertisers. It's certainly not as good as it was a few years ago.
 
For the broken images, I think ibb would be a good alternative. For the forum in general, or anyone really.
 
Hotlinking from imgur is supposed to be allowed on forums (according to their ToS) so I think we could work something out with them
 
Apparently Imgur has recently blacklisted us from using image hotlinks unfortunately. There is no real solution to this as it is completely out of our control. I'd recommend using another site for uploading images.
This not exactly correct. PC is effectively using Imgur as a CDN and that's why the site has been blacklisted. If it had only been a few images I doubt the blacklist would've been enforced but as it stands multiple themes use Imgur for quite a lot of images.

I don't think this will be fixed in any other way than finding another site to take its place as a CDN.
 
Last edited:
This not exactly correct. PC is effectively using Imgur as a CDN and that's why the site has been blacklisted. If it had only been a few images I doubt the blacklist would've been enforced but as it stands multiple themes use Imgur for quite a lot of images.

That's really... very poor design decisions when there's more controllable choices. Even 2000's web programming teaches, if you are serving "editorial line" along with your central functionality (company logos, themes, interface icons for example) then you deliver those yourself or via the CDN to which your hosting is already suscribed, not via a general use site.

Would a good first measure be to first fix the PC themes to serve from PC or Cloudflare and stuff and then get to talk to imgur? Showing a first gesture of work as an opening move kind of thing.
 
That's really... very poor design decisions when there's more controllable choices. Even 2000's web programming teaches, if you are serving "editorial line" along with your central functionality (company logos, themes, interface icons for example) then you deliver those yourself or via the CDN to which your hosting is already suscribed, not via a general use site.

Would a good first measure be to first fix the PC themes to serve from PC or Cloudflare and stuff and then get to talk to imgur? Showing a first gesture of work as an opening move kind of thing.
There's a few oversights which allowed this to happen; I was intent on serving stuff like icons to PC, so I guess I've been forced to do it now, haha.

Any other broken images you find (that aren't posts by other users) need be pointed out so we can deal with it. There shouldn't be too many cases.
 
So it looks like it blocks purely based on the Referrer field of the html header. Which browsers automatically put when embedding images onto a page.

Code:
curl "https://i.imgur.com/fpXE2BJ.gif" -H "Referer: https://www.pokecommunity.com/showthread.php?p=9896065" -i
HTTP/2 403
retry-after: 0
content-type:
accept-ranges: bytes
date: Sun, 01 Jul 2018 02:53:09 GMT
x-served-by: cache-lax8624-LAX
x-cache: MISS
x-cache-hits: 0
x-timer: S1530413589.190726,VS0,VE0
access-control-allow-methods: GET, OPTIONS
access-control-allow-origin: *
server: cat factory 1.0
content-length: 0

but if you remove the referral then it works just fine of course

Code:
curl "https://i.imgur.com/fpXE2BJ.gif" -i
HTTP/2 200
last-modified: Tue, 20 Feb 2018 18:46:48 GMT
etag: "7872661ad1b19794f9191f46c2d1d8e6"
x-amz-storage-class: STANDARD_IA
content-type: image/gif
cache-control: public, max-age=31536000
accept-ranges: bytes
date: Sun, 01 Jul 2018 02:55:15 GMT
age: 192
x-served-by: cache-iad2137-IAD, cache-lax8625-LAX
x-cache: MISS, HIT
x-cache-hits: 0, 1
x-timer: S1530413716.778418,VS0,VE1
access-control-allow-methods: GET, OPTIONS
access-control-allow-origin: *
server: cat factory 1.0
content-length: 245448

Chrome automatically injects these referrals into the header for cross-domain requests:
[PokeCommunity.com] Forum having issues with imgur?

At the moment the best client-sided fix for Chrome is to run chrome with the "--no-referrers" command line option.

As in running chrome via:
Code:
C:\Program Files (x86)\Google\Chrome\Application\chrome.exe --no-referrers

Then these images all seem to work.
This is a very general fix and will fix other cross-domain blocking that imgur is doing such as on GameFAQs and such.
[PokeCommunity.com] Forum having issues with imgur?
 
Last edited:
So it looks like it blocks purely based on the Referrer field of the html header. Which browsers automatically put when embedding images onto a page.

--- snip---

I tried disabling HTTP referrer in Firefox using the about:config setting Network.http.sendRefererHeader, but it doesn't seem to make a difference. I'm not very familiar with this, so just wondering if you have any suggestions for the Firefox browser? (It's the only browser I have access to in my corporate environment).
 
I kinda hope something happens. There are no good sites that I can go back to past that.

Just now a one and done thing. Bad if you ever want to go back to something.
 
Last edited:
It seems like for me my picture will work in some spots but not others. IE: Works in Other Chat but not in Pokemon Trivia.
 
Last edited:
Back
Top