Web proxy for Mastodon that puts public profiles behind an auth layer
Go to file
2020-01-13 19:16:22 -05:00
paws handle friendica and pass through json with auth fetch enabled 2020-01-13 19:16:22 -05:00
.gitignore setup basic functionality 2020-01-13 08:10:48 -05:00
LICENSE Initial commit 2019-12-17 07:22:51 -05:00
README.md fix user-agent parsing and remove jinja2 2020-01-13 09:14:03 -05:00
reload.cfg setup basic functionality 2020-01-13 08:10:48 -05:00
server.py iunno 2020-01-13 04:59:27 -05:00

Protection Against Web Scrapers (PAWS)

Web proxy for Mastodon that puts public profiles behind an auth layer.

How it works

PAWS sits between Mastodon and your front-facing web proxy to intercept incoming requests. If a profile, toot, or any related json is requested, it will be blocked unless authenticated.

Note: Still very much a WIP. Currently it's just simple http auth, but I plan on adding the ability to login via oauth

Installation

Python 3.6.0+ (3.8.0 recommended)

python3 setup.py install

Configuration

(eventually)

Caddy

''' rewrite { if_op and if {path} starts_with /users if {path} not_ends_with inbox to {path} /auth/{path} }

rewrite { if {path} starts_with /@ to {path} /auth/{path} }

proxy /auth localhost:3001 { without /auth transparent } '''