HP Forums
Test to img on my site - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: Not HP Calculators (/forum-7.html)
+--- Forum: Test forum (/forum-18.html)
+--- Thread: Test to img on my site (/thread-22108.html)



Test to img on my site - J-F Garnier - 07-31-2024 02:07 PM

test to pictures on my unsecured (http) site:

[Image: image006.jpg]

[Image: image002.jpg]

Since some time, such links are no more displayed. Opening the picture in a new tab doesn't work because http is changed to https.
You have to copy the link, and manually open it, making sure of the http is not changed to https.

A workaround is to use hyperlink and not picture:

image006

image002

and manually open it. It works - for me.

An example of a recent (2023) post of mine with such image that was working but is no more displayed: https://www.hpmuseum.org/forum/thread-19796-post-173239.html#pid173239


RE: Test to img on my site - Thomas Klemm - 08-01-2024 02:25 AM

I assume that you are using Chrome.
In the Console of the Developer Tools I get the following warning:
Quote:Mixed Content: The page at 'https://www.hpmuseum.org/forum/newreply.php?tid=22108' was loaded over HTTPS, but requested an insecure element 'http://www.jeffcalc.hp41.eu/hpil/index_fichiers/image006.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html

But then an error:
Quote:Failed to load resource: net::ERR_CERT_COMMON_NAME_INVALID image006.jpg:1

You can explicitly mark your site as secure.
In chrome://flags search for "Insecure origins treated as secure", enable it and add your domain.
But this works now only for you.

You could use Let's Encrypt to provide https to your site.

BTW: Safari shows the linked images.


RE: Test to img on my site - J-F Garnier - 08-01-2024 07:42 AM

(08-01-2024 02:25 AM)Thomas Klemm Wrote:  I assume that you are using Chrome.

I'm using Firefox/Windows11 and also Chrome on an old (2016) smartphone. Both same.
The problem appeared about one year ago (see my example above) and actually I first noticed it on the hp41 forum, that is also using myBB.
It means that many old image links don't work any more.


Quote:In the Console of the Developer Tools I get the following warning:
[quote]Mixed Content: The page at 'https://www.hpmuseum.org/forum/newreply.php?tid=22108' was loaded over HTTPS, but requested an insecure element 'http://www.jeffcalc.hp41.eu/hpil/index_fichiers/image006.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html

The problem indeed seems to be that the link, which is coded as http, is automatically changed to https when attempting to load the image.

Firefox has a HTTPS-only mode with possible exceptions, but this doesn't help.

J-F


RE: Test to img on my site - Martin Hepperle - 08-01-2024 10:34 AM

The best solution is to change your server to use the secure https protocol.

Since a few years https is favored over http for security reasons and some browsers and network filters block the old http protocol.

Any decent internet provider should make it easy to switch from http to https.

Martin


RE: Test to img on my site - EdS2 - 08-01-2024 11:07 AM

There's another workaround which is easy and costs nothing: allow Cloudflare to proxy your site. I've done this. It's something which is easily reversible too.

(I know some people are anti-Cloudflare: I think that's a quite separate discussion.)


RE: Test to img on my site - J-F Garnier - 08-01-2024 11:32 AM

I agree, the solution would be to have the site to use https.

However, I'm not the site administrator, my pages are kindly (and freely) hosted on the hp41.eu site - don't confuse this French hp41 site with the other site (TOS) - and this change to https may not be the priority for the owner.

Matter of fact, the problem may mostly be specific to my posts when using image links to my site.

J-F


RE: Test to img on my site - EdS2 - 08-01-2024 12:28 PM

On another forum, there's a strong preference to attach images instead of embedding them - too much good content has been lost when the hosting site vanishes.

Another possible workaround is to access the image by way of a public archive:

https://web.archive.org/web/20110508103952if_/http://www.jeffcalc.hp41.eu/hpil/index_fichiers/image002.jpg

https://archive.is/bO6HY/62d70522871b46f70cd93fce22743766281cdd51.jpg


RE: Test to img on my site - ijabbott - 08-03-2024 08:43 PM

I recommend setting up Let's Encrypt on your site.