十多年来,Google 一直致力于为 Chrome 用户提供尽可能安全的网络浏览体验。Google 为保护网络安全所做的工作之一,就是将每个 HTTP 网站标记为 not secure。这样做会让用户在 Chrome 中看到「不安全」提示,从而避免访问不安全和可疑的网站。为了防止「网站不安全」提示在你的网站上出现,我们将详细讲解 如何修复 Chrome 中的「HTTPS 不安全」提示 in this post.
I will first give you some information about the “HTTPS not secure” message in Chrome in order for you to understand the concept better.
“Also read: 如何修复 WordPress 中的 502 Bad Gateway 错误”
HTTP 和 HTTPS 有什么区别?
HTTP 代表超文本传输协议,HTTPS 代表安全的超文本传输协议。简单来说,HTTPS 就是加了加密的 HTTP。HTTP 有两种消息类型:请求和响应。当用户点击超链接时, request 被发送到服务器,服务器生成一个 response。这些消息以明文形式在互联网上传输。问题在于,任何能够监控这条连接的人都可以读取这些消息。如果用户发送密码和信用卡号码等敏感数据,风险极大。这就是为什么 Google 会将 HTTP 标记为不安全。
HTTPS 在 HTTP 的基础上多了一层安全保护。原因是什么?它配备了 SSL 证书。使用 TLS 或 SSL,明文消息会被加密成一串随机字符。这种加密方式让攻击者更难入侵和窃取用户的敏感数据。
Start Blogging
在顶级硬件上自托管 WordPress,搭配 NVMe 存储和全球低延迟。选择你喜欢的 Linux 发行版。
获取 WordPress VPS为什么 Chrome 网站上会出现「HTTPS 不安全」提示?
Google recognizes all HTTPS sites as secure and all HTTP sites as insecure. An error called “your connection is not secured” will be displayed when you are on an HTTP site to prevent you from entering important information on the website. In order to know how to fix the “website not secure,” your website needs an SSL certification. In the following section, I will guide you through a step-by-step process to ensure your website is secure and your website’s users never see the message in Chrome.
“Also read: 如何修复 WordPress 429 Too Many Requests 错误”
如何修复 Chrome 中的「HTTPS 不安全」提示
As I have mentioned before, the best way to make sure the “HTTPS not secure” message in Chrome is fixed is to have an SSL certificate. Here is how you can install an SSL security:
第 1 步:购买 SSL 证书
To fix the “HTTPS not secure” message in Chrome, the first thing you need to do is to purchase an SSL certificate. Companies like Bluehost, Namecheap, and Godaddy prove the SSL certificate. When the certificate is installed, your users will never get the “HTTPS not secure” message again, indicating that your website is secure to use.
第 2 步:通过你的虚拟主机安装证书
购买 SSL 证书后,您可以通过网站主机控制面板安装它。登录您的网站主机后,点击 SSL tab and click on Install. 点击你的 SSL 证书,将其添加到你的网站域名。然后将证书内容文本粘贴到提供的字段中。填完信息后,点击 Install。您的 SSL 证书将立即安装,但在互联网上生效并对用户可见需要几小时。
第 3 步:更改您的 WordPress URL
Your SSL certificate is up and running, but that doesn’t mean that your users will no longer get the “HTTPS not secure” message in Chrome. Because if you are running a WordPress site, your website will still be loaded with the old HTTP URL. Now, to change your URL to HTTPS, log in to your WordPress dashboard and click on the Settings 标签页。在 General 在标签中查找 WordPress 地址和网站地址,两者都是 URL。在 URL 部分,在 HTTP 后面加一个 "S" 变成 HTTPS。保存更改后就完成了。
第 4 步:配置全站 301 重定向
假设你刚把 WordPress URL 改成了 HTTPS。但用户不知道这个变化。有些用户可能还在用你的旧 URL 访问网站,有些用户可能已经收藏了你的旧 URL。为了解决这个问题,你需要让 WordPress 把所有 HTTP 地址重定向到新的 HTTPS URL。你可以 301 redirect 通过 FileZilla 等 FTP 客户端手动操作。这样可以确保所有使用 HTTP 输入的链接都会重定向到 HTTPS 链接。
Start Blogging
在顶级硬件上自托管 WordPress,搭配 NVMe 存储和全球低延迟。选择你喜欢的 Linux 发行版。
获取 WordPress VPSTo Recap
The “HTTPS not secure” message in Chrome can be really frustrating to deal with. The problem is that it can cause a loss in traffic, and your customers will lose trust in your website. As described in this blog post, you can fix the problem by purchasing and installing an SSL certificate. Fixing this error makes your site more secure. It gives your users a sense of reliability to use your website without the fear of security issues. Another solution is 切换到其他浏览器,比如 Firefox如果您在托管网站时担心安全性和宕机问题,可以考虑使用 VPS。在 Cloudzy,我们在全球 14 个高需求地区提供虚拟专用服务器。我们保证我们的服务器安全、快速,并提供您托管网站所需的资源。
FAQ
有没有 WordPress 插件支持 301 重定向?
可以,您可以使用 WordPress 插件,例如 Really Simple SSL 来进行全站重定向。
将 HTTP 转换为 HTTPS 对 SEO 有帮助吗?
是的,Google Chrome 会为用户显示网站的安全状态。一个 HTTPS 网站会显示绿色锁定图标,让用户确信网站是安全的。这会增加网站流量,因为用户倾向于信任 HTTPS 网站而不是 HTTP 网站。
VPS 如何改进我的网络托管服务?
虚拟专用服务器可以为您的网站提供所需的资源,无论流量是中等还是较高。使用 VPS,您的网站停机时间会大幅减少,用户访问体验也会更快更流畅。我们提供 多种 VPS 套餐 确保你能找到所需的功能。