在使用 SSL 的网站上链接到没有 SSL 的网站
Linking to a site without SSL on a site with SSL
我在我的一个网站上安装了 SSL,我正试图在网站 linking 上放置一个 link 到我的另一个没有安装 SSL 的网站。但是当点击 link 时,它会将我重定向到一个页面,上面写着类似 "Your connection is not private. Attackers might be trying to steal your information." 有什么方法可以以某种方式覆盖它吗?
test.php
<a href = "//www.nossl.com"> wwww.nossl.com </a>
^---这是 link未安装 SSL 的站点。
结果:
Your connection is not private. Attackers might be trying to steal your information.
需要结果:
Actual website displaying.
您正在使用 protocol-relative URL,它指向带有 HTTPS 的站点(因为这是带有 link 的页面的协议)。
添加 http:
以明确使 link 指向 non-SSL URL。
尝试完整的 URL:
<a href = "http://www.nossl.com"> www.nossl.com </a>
我在我的一个网站上安装了 SSL,我正试图在网站 linking 上放置一个 link 到我的另一个没有安装 SSL 的网站。但是当点击 link 时,它会将我重定向到一个页面,上面写着类似 "Your connection is not private. Attackers might be trying to steal your information." 有什么方法可以以某种方式覆盖它吗?
test.php
<a href = "//www.nossl.com"> wwww.nossl.com </a>
^---这是 link未安装 SSL 的站点。
结果:
Your connection is not private. Attackers might be trying to steal your information.
需要结果:
Actual website displaying.
您正在使用 protocol-relative URL,它指向带有 HTTPS 的站点(因为这是带有 link 的页面的协议)。
添加 http:
以明确使 link 指向 non-SSL URL。
尝试完整的 URL:
<a href = "http://www.nossl.com"> www.nossl.com </a>