Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/acdha/phantomjs-mixed-content-scan
Scan web pages for resources which won't load due to mixed content blocking
https://github.com/acdha/phantomjs-mixed-content-scan
Last synced: about 1 month ago
JSON representation
Scan web pages for resources which won't load due to mixed content blocking
- Host: GitHub
- URL: https://github.com/acdha/phantomjs-mixed-content-scan
- Owner: acdha
- License: other
- Created: 2015-11-10T22:43:02.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-04T21:20:42.000Z (about 9 years ago)
- Last Synced: 2024-10-14T17:55:20.365Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 4
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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](https://wummel.github.io/linkchecker/) to generate a big list or something like [extract-urls](https://github.com/acdha/unix_tools/blob/master/bin/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 …
```