Description • Prerequisites • Installation • Examples
This script is used to check the presence of security headers in web pages. It takes either a single URL or a file containing a list of URLs as input and checks for the presence or absence of specific security headers.
-u URL, --url URL: The URL or domain to check.-m METHOD, --method METHOD: The HTTP request method to use (default: GET).-l FILE, --list FILE: File containing a list of URLs or domains.-o FILE, --output FILE: Output file path.-j, --json: JSON output format.
The script requires the following dependencies:
- argparse
- requests
- json
- concurrent.futures
- sys
git clone https://github.com/riteshs4hu/Header-Checker.git &&
cd Header-Checker
chmod +x header-checker.py
./header-checker.py
-
To check a single URL:
python header-checker.py -u https://example.com -
To check a list of URLs from a file:
python header-checker.py -l urls.txt -
To check a single URL and save output:
python header-checker.py -u https://example.com -o output.txt -
To check a single URL and save json output:
python header-checker.py -u https://example.com -j -o output.json