{%hackmd SybccZ6XD %} <style> .toc li:first-child { display: none; } </style> Mixed Content === ###### tags: `web.dev` `Web Security` `Http Headers` > [name=Shueh Chou Lu] [time=Dec 12, 2020] --- [TOC] --- # 什麼是 Mixed Content - 同一個網站擁有多個網站的資源 - JS - CSS - 圖片等等 - 影響網站行為 - \<a href=“http://evil.com”> 不是! --- # 哪些需要注意 - 除了影片、聲音、圖像都應該要擋 - 圖像也要注意 把垃圾桶的圖標和儲存起來的圖標交換 - 舊的瀏覽器可能防護不夠 - IE8 以下 --- # 防護 - http:// => https:// - 從本地端送資料而不是從別的網站要 - Header: Content Security Policy - upgrade-insecure-requests - cascades into \<iframe> - blocking resources - 掃描工具: - [HTTPSChecker](https://httpschecker.net/how-it-works#httpsChecker) - [Mixed Content Scan](https://github.com/bramus/mixed-content-scan) # PPT https://drive.google.com/file/d/1Or1ps8Zb36jYZnhOnga5-gxhvM1PXbxG/view?usp=sharing
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up