はてなブログをSSL化しました
SSL対応されたみたいで、随時SSL化していっておりますが、mixed contentエラーがあるとダメなのですが微妙に漏れとか独自のやつがあったりしてチェックしないといけなかったりしました。
nodeでクロールして、mixed_contentがないかチェックする方法
前提条件:nodeインストールしてること
Macにnode.jsをインストールする手順。 - Qiita
# ワークスペースつくる
mkdir -p ~/workspace/mixed_content_checker
cd ~/workspace/mixed_content_checker
# check-mixed-content使う
npm i franciskim/check-mixed-content
# 調べたいドメインにして実行
node node_modules/check-mixed-content/index.js --url free-engineer.hatenablog.com
# 内部リンクhttp://で書いてない場合はindex.jsのhref消してもよい
# var attributeTypes = ['src','srcset'];
実行結果
https://free-engineer.hatenablog.com/archive/2017/07/25 is good!
https://free-engineer.hatenablog.com/entry/2017/11/13/145500 is good!
https://free-engineer.hatenablog.com/archive/2017/11/13 is good!
https://free-engineer.hatenablog.com/archive/category/docker is good!
https://free-engineer.hatenablog.com/archive/2017/10/25 is good!
https://free-engineer.hatenablog.com/entry/2017/10/25/130834 is good!
https://free-engineer.hatenablog.com/archive/category/javascript is good!
https://free-engineer.hatenablog.com/?page=1507700316 is good!
https://free-engineer.hatenablog.com/archive/2016/12/22 is good!
https://free-engineer.hatenablog.com/entry/2016/12/22/185418 is good!
https://free-engineer.hatenablog.com/archive?page=2 is good!
Crawled 87 pages
87 pages are good
0 pages have mixed HTTP/HTTPS content
こんな感じでーす