34

The images uploaded by users are not displayed in Turkey because of the imgur block.

The image link use a sub domain name like https://i.stack.imgur.com. Is it possible to assign a new domain to images like abc.com so that the users which live in countries that have imgur block may access image content?

I know there are some options like vpn, proxy etc. But this time for example if you use a free proxy than some of the site functionality doesn't work. For example some piece of javascript code doesn't work as excepted behind proxy.

So this question is not about what are my options to access blocked content.I wonder whether may SO support team may do something to enable access from blocked countries server side.

Because it looks a minor problem. If images have a stackoverflow subdomain or a new domain I don't think they'd block the image content.

My questions are whether something should be done server side not client side. Also wikipedia is blocked and it is possible to access it somehow. But in this case it becomes quite difficult to access site so I rarely use it. This is also the situation for stackoverflow network.

38
  • 15
    meta.stackoverflow.com/questions/261455/… Commented May 18, 2019 at 10:09
  • 71
    That would be giving the censors exactly what they want. Diverting business away from imgur because turkey's authoritarian goverment has decided to ban it is the wrong response, imo.
    – Magisch
    Commented May 18, 2019 at 15:51
  • 14
    Let's suppose they change the domain. How much time will it take for them to block the new domain?
    – weegee
    Commented May 18, 2019 at 16:29
  • 10
    @Magisch while I'm not suggesting we should bend for whatever governments dream up, how exactly would serving the images through an SE domain be diverting business away from imgur? I mean, none of the users on SE need an imgur account nor does imgur know who I am. I'm not using their business as far as I'm concerned. From a technical point of view it is feasible. The business argument doesn't make sense to me. Care to elaborate on that a bit for me?
    – rene
    Commented May 18, 2019 at 17:00
  • 6
    @Tom yes, they do. SE can still use their services and pay for them but only serve those images from an SE domain. That will give lots of performance headaches but that by itself doesn't change the contract and/or business SE does with imgur.
    – rene
    Commented May 18, 2019 at 17:54
  • 4
    @magish, I don't think the op is suggesting using a different service, only a different domain. imgur can still host the images and be paid for their service but if images.imgur.stackoverflow.com ends up being some kind of alias for i.stack.imgur.com not sure what the harm is.
    – user128511
    Commented May 18, 2019 at 18:48
  • 8
    Let's note that imgur.com is also blocked in China. Oh, and commons.wikimedia.org is blocked too of course.
    – Cœur
    Commented May 19, 2019 at 5:58
  • 3
    @Cœur every language wikipedia is blocked in china ooni.torproject.org/post/2019-china-wikipedia-blocking
    – Braiam
    Commented May 19, 2019 at 15:21
  • 4
    Coding from Turkey I had the same problem. At some point I've ended up setting up VPN to route only traffic to blocked sites (e.g. Wikipedia, Imgur...) and use a direct connection for anything else. Then I've also found out that, unless I'm browsing something inside Turkey (physically) VPN is actually faster for everything so I've ended up keeping VPN on. If you've got some credits at AWS/Azure/GCP or a few dollars to spend, setup a personal OpenVPN server at West Europe and use there. Commented May 20, 2019 at 5:23
  • 19
    There is no technical solution to your problem. The solution is to demonstrate on the streets.
    – Lundin
    Commented May 20, 2019 at 7:38
  • 5
    @CanPoyrazoğlu You overthrow dictatorships by protesting against them in public. Which is obviously easier said than done, takes lot of bravery. At any rate, fixing Turkey isn't SO's mission, nor is it to support its censorship.
    – Lundin
    Commented May 20, 2019 at 8:09
  • 16
    This is not a duplicate of Imgur.com blocked, what are my options?. It is a feature request to SE as a whole to ask about another image provider. The OP already clearly states that they are not asking about what can be done client-side, rather whether SE is willing to make a server-side change.
    – Adriaan
    Commented May 20, 2019 at 13:37
  • 12
    @Cerbrus "It is a duplicate, because a change of host / domain isn't an option" - if this isn't an option, it should get declined, ideally with an explanation of why it's not an option, not closed as a duplicate of something proposing alternatives. Commented May 20, 2019 at 14:04
  • 2
    @Cerbrus the post you linked neither answers it (yes or no, as there is no question) nor explains why not. Its a related post, just that. Consider answering the question if thats what you want. Commented May 20, 2019 at 14:06
  • 3
    I've cleaned up a bunch of comments here that were getting way too hostile and veering off topic. Let's keep things calm and focused on the question.
    – Brad Larson Mod
    Commented May 20, 2019 at 15:14

2 Answers 2

14

First of all, I'm assuming the block on imgur's domain also includes their related IP addresses. I can't confirm this, as I'm not behind some kind of firewall.

This means a simple DNS setting that points an url like images.stackoverflow.com to a imgur IP would be ineffective, as those images would still be blocked based on the resolved IP.

As a result, all image traffic would have to go through SE's servers one way or another, adding a significant load to Stack Exchange's servers.

A load that imgur is specialized to handle, and SE isn't(*). Of course I'm not an SE employee, but I'm pretty certain that handling this extra load isn't trivial or cheap. Image hosting wasn't outsourced just for fun.


If these blocks don't include imgur IP addresses, a simple local (client-side) change would be to redirect imgur domains to their IPs, but that seems too easy.


(*)Oded has written an answer that explains why Stack Exchange uses Imgur to host images. At time of writing, that answer is nearly 2 years old, but it does mention Stack Exchange's volume of traffic to be a factor in this decision.

2
  • 3
    Also, if the block doesn't include IP addresses today, it doesn't mean that the block won't be extended later to include such IP addresses if there is an increase of traffic on those. This is especially true with the Great Firewall of China which dynamically adapts the layers of protection depending on the volume of traffic, type of traffic and more.
    – Cœur
    Commented May 21, 2019 at 8:33
  • Thanks for the answer, this makes sense. Hopefully someone from the company can corroborate. Commented May 21, 2019 at 8:49
0

My country also block imgur, and to solve that I added this string to /etc/hosts file:

104.16.24.34      i.stack.imgur.com
107.21.3.138      apidocs.imgur.com
151.101.36.193    api.imgur.com
104.16.53.111     help.imgur.com
151.101.36.193    blog.imgur.com
52.23.39.2        browserevents.imgur.com
151.101.36.193    p.imgur.com
151.101.36.193    s.imgur.com
151.101.36.193    store.imgur.com
151.101.36.193    i.imgur.com
151.101.60.193    imgur.com