Skip to content

Scan web pages for resources which won't load due to mixed content blocking

License

Notifications You must be signed in to change notification settings

AlainVagner/phantomjs-mixed-content-scan

 
 

Repository files navigation

Report mixed content on web pages using PhantomJS

This is a simple script which loads HTTPS pages and reports any resources which are loaded insecurely and are thus likely to be blocked by modern browsers.

Note that it does not include a spider – you may use a tool like LinkChecker to generate a big list or something like extract-urls to load a list from a page:

http loc.gov | extract-urls | grep -F .gov | cut -f1 -d"'" | grep -vF cdn.loc.gov | grep -vE '/(images|js|javascript|stylesheets|css|foresee)/' | grep -vE '[.](js|css)$' | perl -pe 's|^(?!http://)|http://|' | sort -ifu | xargs ./report-mixed-content.js

Requirements

  • PhantomJS 2.0

Usage

./report-mixed-content.js https://www.example.org/page1 https://www.example.org/page2 …

About

Scan web pages for resources which won't load due to mixed content blocking

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 67.2%
  • Python 32.8%