(转)because the website uses HSTS. Network errors and attacks are usually temporary, so this page wil

转自: How to clear HSTS settings in Chrome and Firefoxicon-default.png?t=M276https://www.thesslstore.com/blog/clear-hsts-settings-chrome-firefox/

 

How to Delete HSTS Settings in Chrome:

  1. Navigate to chrome://net-internals/#hsts

This is Chrome’s UI for managing your browser’s local HSTS settings.

  1. First, to confirm the domain’s HSTS settings are recorded by Chrome, type the hostname into the Query Domain section at the bottom of the page. Click Query.If the Query box returns Found with settings information below, the domain’s HSTS settings are saved in your browser.

Note that this is a very sensitive search. Only enter the hostname, such as www.example.com or example.com without a protocol or path.

  1. Type the same hostname into the Delete domain section and click

Your browser will no longer force an HTTPS connection for that site! You can test if its working properly by refreshing or navigating to the page.

Note that depending on the HSTS settings provided by the site, you may need to specify the proper subdomain. For example, the HSTS settings for staging.yoursite.com may be separate from yoursite.com so you may need to repeat the steps as appropriate.

 

HTTP Strict Transport Security (HSTS) 是一种安全机制,旨在保护用户免受 HTTPS 会话劫持攻击。它使用响应头告知浏览器,网站只能通过 HTTPS 访问,而不是 HTTP。如果浏览器在未加密的 HTTP 连接上尝试访问该网站,它将被重定向到 HTTPS 连接。 当网站未正确配置 HSTS 时,可能会存在安全漏洞。以下是修复 HSTS 错误和警告的方法: 1. 检查 HSTS 配置:您可以使用在线 HSTS 测试工具检查网站的 HSTS 配置。如果测试结果显示 HSTS 配置存在问题,则需要修复该问题。 2. 启用 HSTS:如果网站尚未启用 HSTS,请参考以下步骤来启用它: - 在服务器上配置 HSTS 响应头。 - 将 max-age 参数设置为 31536000 秒(即 1 年)。 - 确保启用了 HTTPS。 3. 修复混合内容问题:如果网站中存在混合内容(即同时使用 HTTP 和 HTTPS),则需要修复该问题。您可以使用浏览器开发者工具或在线混合内容检测工具来检测和修复混合内容问题。 4. 避免使用不安全的重定向:如果网站中存在不安全的重定向,例如 HTTP 重定向到 HTTPS,您需要修复该问题。确保所有重定向都是安全的,并且不会导致安全漏洞。 5. 更新 SSL/TLS 证书:如果网站的 SSL/TLS 证书已过期或存在其他问题,则需要更新证书。确保证书是由受信任的证书颁发机构颁发的,并且在有效期内。 通过执行以上步骤,您可以修复 HSTS 错误和警告,提高网站的安全性。
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值