paws/README.md
2020-01-13 09:14:03 -05:00

800 B

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 } '''