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.
|
12 months ago | |
---|---|---|
.gitignore | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 12 months ago | |
config.example.toml | 12 months ago | |
replacer.py | 12 months ago | |
requirements.txt | 12 months ago | |
utils.py | 12 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