Crates.io | felicia |
lib.rs | felicia |
version | 0.5.1 |
source | src |
created_at | 2023-09-13 18:38:43.385182 |
updated_at | 2023-09-17 15:50:27.156486 |
description | service for accessing and sharing lists of bad actors |
homepage | |
repository | https://codeberg.org/arisunz/felicia |
max_upload_size | |
id | 971769 |
size | 103,495 |
web service for sharing lists of bad actors. originally made for the fediverse, but flexible enough to use in other contexts.
felicia
is configured via environment variables:
PORT
: service port, 8090 by defaultLOCAL_LIST_PATH
: path to a local list file, see belowSOURCES_PATH
: path to a sources file, see belowSOURCES_LIFETIME
: list cache lifetime, 10 minutes by defaultyou must provide at least LOCAL_SOURCES
or SOURCES_PATH
. you can of course also set both.
felicia
automatically invalidates cached lists (either local or remote ones) on a set interval and will re-fetch them when necessary, so restarting the service is not necessary for changes to be reflected.
note that the local source list itself is not automatically refreshed at the moment, so if you add a new source you do need to restart.
list of domains and acompanying information.
{
"domains": [
{
"domain": "example.org",
"level": "low|medium|high"
"reason": "<...>",
"notes": "<...>",
"source": "<source where this domain entry originates from>"
}
]
}
sources to fetch more lists from.
{
"sources": [
"http://example.org/list.json"
]
}
fetch all entries available, local and/or remote.
dedup
-- if present and set to true
, return de-duplicated entriesfetch all entries available, local and/or remote, as a Mastodon-compatible domain blocklist.
filter all entries available for a specific domain and/or the amount of times it appears in different sources.
domain
-- if present, filter domain names by the given substringthreshold
-- if present and given an integer n
, filter domains that appear in at least n
distinct sourcessource
-- if present, filter domain sources by the given substringlevel
-- if present, filter by entry severity level (low
, medium
or severe
)dedup
-- if present and set to true
, return de-duplicated entriesfelicia
is meant to facilitate aggregating and sharing potentially decentralized lists of bad actors. it doesn't, by itself, solve issues related to trust in the source themselves.
you must still verify your sources, including transitive ones, and make sure you can trust them.
(C) ariela wenner, 2023
unless otherwise specified, all code is licensed under the AGPL 3.0.