Uafilter
-
Bill Statler wrote the following post Sun, 29 Sep 2024 15:04:44 -0700Uafilter
I see a new toy arrived in streams-addons yesterday...
https://codeberg.org/streams/streams-addons/src/branch/release/uafilter/uafilter.php
Name: Uafilter
Description: Block profile access to your site members based on User-Agent.
(Thanks, Mike!)
@Bill Statler -
Want a fediverse without Mastodon?
Easy, peasy.% util/addons install uafilter
% util/config uafilter.deny mastodon -
-
Cool, now I've also learned how to use
util/config
.
Can this also be done by editing.htconfig.php
?App::$config['uafilter']['deny'] = 'useragent1,useragent2';
Would that work? -
Mike Macgirvin 🖥️replied to Bill Statler on last edited by
Would that work?
Yes. -
@Mike Macgirvin ️ [[email protected]] Please could you document how to use the uafilter, somewhere in the repo (git), e.g. readme.md ?
-
addon/uafilter/uafilter.php:
doc/guide/en/addons.mc:/**
* Example:
* % util/addons install uafilter
* % util/config uafilter.deny "gab,mastodon,fb_iab,instagram,facebookexternalua"
*
*/Uafilter
A fork of fckmeta which lets the site admin define which User-agents to block.
Configuration storage at key = ['uafilter']['deny']. comma-separated patterns; case-insensitive string match. For example "mastodon,facebook,gab" -
@Mike Macgirvin [[email protected]] gave some hints how to use it, see https://fediversity.site/channel/streams?mid=https://fediversity.site/item/2c5e5436-f2cd-4d64-8bb7-a038629d5953
-
Copyright © 2025 NodeBB | Contributors