There is some site server.com on it is https. At the same time the site loads images from a remote resource any.com. Unfortunately, any.com does not support https, which leads to the fact that some browsers swear that they are saying unsafe content.

The first option is to find any.com admins and use a stick to force them to connect https - unfortunately there is no (the service is located behind the hill, and they do not perceive requests by mail.

One solution to the problem is to write a script proxy, and insert the links of the form:

https://server.com/proxy.php?http://any.com/image.jpg 

But this option does not quite fit. I worry that the server will quickly be bent - too many such requests will fall on one page. It’s also unrealistic to cache it, there is not enough hard disk space (there are really a lot of 7000 * 20 * 3 = ~ 420,000 pieces, and they are often updated, new ones appear, old ones are deleted).

The third option is to connect some kind of CDN to which you can put links like:

 https://cdn.com/?http://any.com/image.jpg 

But here's the problem - I do not know similar services. Tell me something?

  • CloudFlare ? Previously, they had https only in paid plans, now they write it seems that there is a free SSL, I just noticed. - Sergiks
  • @Sergiks, not CloudFlare not suitable. They do not have such proxying as I wrote above. And they only work through the substitution of NS - IntellectSys

2 answers 2

In general, I myself have found two suitable services with proxying images via HTTPS:

Maybe someone will come in handy.

    1. Imgix - http://www.imgix.com/ (what you need, just have to change the host pictures in the files, say from www.ya.ru to yaru.imgix.com)
    2. or store photos on Flickr (1TB)
    • Flickr does not fit the task. And imgix prices are not at all democratic, see imgix.com/pricing minimum price - $ 50 per month. - IntellectSys
    • @IntellectSys, yes, prices are high). By the way, why don't you create a subdomain, issue a certificate for it, and transfer all the pictures there? - misc
    • @misc I thought about it, but the pictures are loaded from a remote server, I have no control over it. And there are about 360000 photos, it is unreal) plus they change / add / delete periodically, i.e. just once they all deflate them to yourself - not a ride. This is a centralized catalog of products with an API, according to the API, in addition to product information, URLs of pictures of each product are given. Pictures are placed on their server. And they don’t want to enable HTTPS (I can’t get through to them). - IntellectSys