为什么Safari是唯一不安全的浏览器,将我的HTTPS网站标记为不安全

发布于 2025-02-07 23:51:23 字数 192 浏览 1 评论 0原文

我最近为客户的业务创建了一个网站。我们从Godaddy购买并设置了OV SSL证书,这与我们托管的平台相同。但是由于某种原因,野生动物园正在将整个站点标记为不安全,而Chrome和Edge则说明了整个网站的安全。网站上的所有链接都有HTTPS前缀,并且所有图像均在服务器上托管。它只是一个宣传他的业务的小型网站,大约有5页。为什么Safari将网站标记为不安全?请帮忙。

I recently created a website for my client's business. We bought and setup an OV SSL certificate from GoDaddy, the same platform we're hosting on. But for some reason, Safari is flagging the whole site as not secure, whilst Chrome and Edge are saying its secure. All the links on the website have an HTTPS prefix and all the images are hosted on the server. Its only a small website advertising his business, its got about 5 pages. Why is Safari flagging the site as not secure? Please help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

暖阳 2025-02-14 23:51:23

当键入地址或主机名时,浏览器自动完成URL架构。当前,有些浏览器自动完成至https://,而有些浏览器仍然可以自动完成到> http://。后者似乎是野生动物园。

因此,实际上,Safari将您的 http 网站标记为不安全,这是预期的。

几年来,浏览器供应商一直在默认情况下过渡到加密,采取了越来越严格的措施,例如默认情况下在HTTPS上连接。

hsts preload list 还指定仅在安全连接上连接哪些主机。如果可以在该列表中找到“主机名”中的键入,Safari可能会使用https://自动完成URL。


安装证书时,通常可以在两个方案上连接网站。因此,人们将将301重定向从http添加到https以强迫每个人使用加密连接。您的配置中缺少此重定向。通常,可以在Web Hoster的配置页面中使用简单的复选框激活它。

除了模式外,在重定向期间保留请求的所有其他部分是最好的做法,以便现有链接仍然有效。例如http://example.com/test.html将重定向到https://example.com/test.html

Browsers auto-complete the URL schema when an address or hostname is typed in. Currently, there are some browsers auto-completing to https://, while some still autocomplete to http://. The latter seems to be the case with Safari.

So actually, Safari is marking your http website as unsecure, which is as expected.

For several years now browser vendors have been transitioning to encryption by default, taking increasingly strict measures to do so, like connecting on https by default.

The HSTS preload list also specifies which hosts should be connected to on secure connections only. Safari will probably autocomplete the URL with https:// if the typed in hostname can be found in that list.


A website usually can be reached on both schemes when a certificate is installed. So one would add a 301 redirect from http to https to force every one to use the encrypted connection. This redirect is missing in your configuration. Often, it can be activated with a simple checkbox in the web hoster’s configuration pages.

It is best practice to preserve all other parts of the request during the redirect, except the schema, so that existing links still work. e.g. http://example.com/test.html would redirect to https://example.com/test.html

地狱即天堂 2025-02-14 23:51:23

您可以尝试在当前网络上禁用IPv6,只是检查是否与IPv6有关。

在Mac上,您可以通过 系统偏好 - > network-> {yourConnection} - > advaned-> tcp/ip 和更改来禁用IPv6。 IPv6 手动

You can try disabling IPv6 on your current network, just to check if this is related to IPv6.

On Mac you can disable IPv6 by going System Preferences->Network->{YourConnection}->Advaned->TCP/IP, and change IPv6 to Manually

情感失落者 2025-02-14 23:51:23

我写作是安迪答案的扩展。

为了将所有流量重定向到HTTPS,您可以将以下行添加到.htaccess文件中:

#Rewrite everything to https
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

I am writing as an extension to Andy's answer.

In order to redirect all the traffic to https you can add the following lines into your .htaccess file:

#Rewrite everything to https
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文