Strategies to Overcome High Request Blocks on Imgur

Maybe a watched word to just disallow imgur images and/or some othe campain to train people to just drag and drop the images straight to Discourse?

Are they displaying properly? Maybe you don’t care?

I think the thing you might do would be to have some proxy that made the imgur request from some other IP. It’s perhaps slighly shady, and likely against their terms of service.

Oh! But wait. Maybe a plugin that used the API would solve your problem.

curl --location -g 'https://api.imgur.com/3/image/{{imageHash}}' \
--header 'Authorization: Client-ID {{clientId}}'

Imgur API.

I think a plugin could do that. I think the code in question is in lib/file_helper.rb starting with def self.download. Or maybe make another job like pull_hotlinked_images that processed only imgur files and didn’t bother with overriding anything. Maybe once your backlog got processed you’d not get hit by rate limits on new posts.

It seems improbable that it would get moved to core, but I don’t make such decisions so don’t blame me or team if I’m wrong. :slight_smile: