| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A Python-based HTTP/HTTPS proxy server for real-time detection and blocking of malicious web activity using custom security policies.
Built with mitmproxy for cybersecurity professionals, red teamers, and developers who want transparency and control in web traffic inspection and security.
Read SOP
A Python-based local HTTP/HTTPS proxy server designed to detect and block malicious activity in web traffic by applying custom security policies in real-time.
Built on mitmproxy, mad-proxy empowers cybersecurity professionals and developers to intercept, inspect, and secure web traffic with customizable rules.
CVE-2025-61767 — HTTPS Traffic Interception Bypass vulnerability fixed in v0.4
Upgrade to v0.4+ immediately to remain protected. See full details in CHANGELOG.md.
Browser
↓
mad-proxy (proxy_server.py)
↓
Policy Engine (policy_engine.py & config.yaml)
↓
Internet
mad-proxy/ ├── mad_proxy/ │ ├── proxy_server.py # Main proxy and request handler │ ├── policy_engine.py # Policy rules and matching logic │ ├── config.yaml # User-defined block/allow domains │ ├── analyzer.py # (Planned) Advanced traffic analysis │ └── utils.py # Helper functions (logging, alerts) ├── README.md # Project documentation ├── requirements.txt # Python dependencies ├── setup.py # Package build and installation script ├── CHANGELOG.md # Version and update log └── MANIFEST.in # Manifest file for package
Clone the repository:
git clone https://github.com/machphy/mad-proxy.git cd mad-proxy
Create and activate a virtual environment (recommended):
python3 -m venv venv source venv/bin/activate
Install dependencies:
pip install -r requirements.txt
Edit mad_proxy/config.yaml to define your block or allow list:
block_domains: - "example.com" - "unauthorized.site"
Add or modify domains as desired.
Start the proxy:
python3 proxy_server.py
Default is port 8080; modify if needed.
Allowed Request:
Visiting allowed sites (e.g., https://www.google.com) logs:
Allowed request: https://www.google.com
Blocked Request:
Blocked sites (e.g., http://example.com) log:
Blocked request to http://example.com
Browser shows a "Blocked by security policy" HTTP 403 message.
You can build and install mad-proxy as a Python package.
Install build and twine tools:
pip install --upgrade build twine
Run in project root:
python3 -m build
This generates .whl and .tar.gz files in the dist/ folder.
Install the built wheel locally:
pip install dist/mad_proxy-<version>-py3-none-any.whl
Replace <version> with the actual version number.
After configuring .pypirc with your PyPI token, run:
twine upload dist/*
MIT License
Maintained by machphy Email :- Email Own by rajeevsharmamachphy@gmail.com
| Back | FazBrowse Home | New Git URL |