Redirect Mapper

Redirect Mapper, available herearrow-up-right, is a Python tool that scans a list of URLs, domains, or IP addresses, follows their redirects using Selenium, and records the final destination along with additional metadata such as the resolved IP address and a SHA256 hash of the page body.

It is designed for large-scale redirect analysis, security research, and automation tasks.

Installation

pip install -r requirements.txt

Usage

python redirect_mapper.py <input_file> <output_file> [--proxy PROXY] [--num N] [--insecure]

Arguments

CLI Argument

Description

<input_file>

Path to a text file containing URLs/domains/IPs (one per line)

<output_file>

Path to the CSV file where results will be saved

--proxy

Optional HTTP proxy (example: http://127.0.0.1:8080)

--num

Number of worker processes (default: number of CPU cores)

--insecure

Accept insecure SSL certificates and bypass HTTPS errors

Input file (input.txt)

Output CSV (output.csv)

Example

Using a proxy:

Running with multiple workers and accepting insecure certificates:

Features

  • Automatically normalizes domains and IPs into valid URLs

  • Follows browser redirects using Selenium

  • Resolves final destination IP address

  • Generates SHA256 hash of the page body

  • Multiprocessing support for high-speed scanning

  • Optional HTTP proxy support

  • Optional insecure SSL handling for misconfigured HTTPS sites

  • Headless Chrome for fast automated browsing

Last updated