Find mixed content in the HTML of an HTTPS page
find mixed content command line | padlock missing in browser | find http images on https page | fix mixed content warning | curl | mixed-content | https | seocurl -s https://example.com/ | tr '\n' ' ' | grep -oiE '(src|srcset|data-src)="http://[^"]+"|<link[^>]+href="http://[^"]+"|url\(.?http://[^)]+\)' | sort -uSearches the HTML for resources loaded via http://: src, srcset, <link href> and url() in inline CSS. Browsers block such content or show a warning, which costs trust and breaks the layout. Typical after switching to HTTPS when old URLs remain in the database.
Note: <link href="http://..."> also matches canonical or hreflang links, which are not mixed content. Resources referenced from external CSS and JS files are not covered. For WordPress, the entry on switching from http to https with WP-CLI helps.
Also searched as
- find mixed content command line
- padlock missing in browser
- find http images on https page
- fix mixed content warning