Reverse proxy that applies string replacements to response bodies
Go to file
Kay Faraday dd3b20bbae add README 2022-06-12 02:07:49 +00:00
.gitignore move config to toml and add optional debug logging 2021-09-07 07:09:18 +00:00
LICENSE initial commit 2021-09-02 16:29:55 +00:00
README.md add README 2022-06-12 02:07:49 +00:00
config.example.toml support multiple patterns (closes #1) 2022-06-12 01:53:08 +00:00
replacer.py Use qtoml instead of pytomlpp 2022-06-12 01:56:01 +00:00
requirements.txt Use qtoml instead of pytomlpp 2022-06-12 01:56:01 +00:00
utils.py support multiple patterns (closes #1) 2022-06-12 01:53:08 +00:00

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