Reverse proxy that applies string replacements to response bodies
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Kay Faraday dd3b20bbae add README 4 months ago
.gitignore move config to toml and add optional debug logging 1 year ago
LICENSE initial commit 1 year ago
README.md add README 4 months ago
config.example.toml support multiple patterns (closes #1) 4 months ago
replacer.py Use qtoml instead of pytomlpp 4 months ago
requirements.txt Use qtoml instead of pytomlpp 4 months ago
utils.py support multiple patterns (closes #1) 4 months ago

README.md

replacer

A reverse proxy that applies string replacements to response bodies. This was developed for Freak University's onion in order to replace clearnet links (such as images and the websocket URL) with onion links, ensuring that no clearnet requests are made to the site.

Usage

$ pip install -r requirements.txt
$ cp config.example.toml config.toml
$ # edit as necessary
$ ./replacer.py
$ # now configure your reverse proxy to proxy to replacer