If I could write you a song, and make you fall in love, I would already have you up under my arm.

强制Chrome浏览器使用https加密浏览

2011-11-30

强制Chrome浏览器使用https加密浏览网站其实也就是强制Chrome浏览器在特定网站上由http重定向到https,这种技巧对于经常修改Hosts的同学们用处较大。

比如修改Hosts后访问Twitter,直接输入http://www.twitter.com是不能访问的,要输入https://twitter.com才行。Twitter可以设置默认https访问,但还是会出现不能跳转、需要手工加上https://的情况,所以转发这篇文章,带来一种更简单的办法:强制Chrome浏览器对特定网址始终使用https加密浏览。

chrome://net-internals是一个Chrome内置的开发者工具,把chrome://net-internals/复制到地址栏后转到可打开选项页面。强制Chrome浏览器http重定向到https的方法:

1.在地址栏输入地址栏输入chrome://net-internals
2.点倒数第二个HSTS标签,在Add domain下方的”Domain:”后面输入想强制Https访问的网址,如图:

输入网址后再点 Add按钮即可。

设置完成后所有该域名下的子目录都会强制加密访问,如果想删除相关设置,在Delete domain下的方”Domain:”后面输入想删除的网址,然后点delete按钮即可。

 

说明:目前本人使用也就发现Twitter比较管用,别的网站好像不太灵,不知何故。。。

 

转载自:启光博客[http://www.iewb.net]

作者:HH | 分类:经验 | 标签:

1 Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>