A Cloudflare Workers program protecting ActivityPub inbox from spam.
It simplely drop posts with a lots (e.g. > 9) mentions. False postive exists, use with caution.
- Install Node.js and pnpm
pnpm ito install dependenciespnpm run deployto deploy- Add following routes to Workers Routes
[YourDomain]/inbox[YourDomain]/users/*
Max allowed mentions CC_LIMIT is 9 by default, you can edit it
on wrangler.toml before deploy, or on Cloudflare dashboard after deploy
(Workers & Pages / activitypub-inbox-filter / Settings / Variables and Secrets).
Run pnpm run cf-types to generate types.
Logs can be found on Cloudflare dashboard.
CC0