Post Reply 
Test to img on my site
07-31-2024, 02:07 PM (This post was last modified: 07-31-2024 04:15 PM by J-F Garnier.)
Post: #1
Test to img on my site
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-19...#pid173239
Visit this user's website Find all posts by this user
Quote this message in a reply
08-01-2024, 02:25 AM
Post: #2
RE: Test to img on my site
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-mor...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.
Find all posts by this user
Quote this message in a reply
08-01-2024, 07:42 AM (This post was last modified: 08-01-2024 07:50 AM by J-F Garnier.)
Post: #3
RE: Test to img on my site
(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-mor...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
Visit this user's website Find all posts by this user
Quote this message in a reply
08-01-2024, 10:34 AM
Post: #4
RE: Test to img on my site
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
Find all posts by this user
Quote this message in a reply
08-01-2024, 11:07 AM
Post: #5
RE: Test to img on my site
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.)
Find all posts by this user
Quote this message in a reply
08-01-2024, 11:32 AM
Post: #6
RE: Test to img on my site
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
Visit this user's website Find all posts by this user
Quote this message in a reply
08-01-2024, 12:28 PM
Post: #7
RE: Test to img on my site
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/201105081039...age002.jpg

https://archive.is/bO6HY/62d70522871b46f...1cdd51.jpg
Find all posts by this user
Quote this message in a reply
08-03-2024, 08:43 PM
Post: #8
RE: Test to img on my site
I recommend setting up Let's Encrypt on your site.

— Ian Abbott
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)