]>
git.mxchange.org Git - fba.git/log
Roland Häder [Sat, 1 Jul 2023 03:55:47 +0000 (05:55 +0200)]
Continued:
- should be federated_timeline_removal
Roland Häder [Sat, 1 Jul 2023 03:20:33 +0000 (05:20 +0200)]
Continued:
- unwrap data["json"] so more instances can be fetched
Roland Häder [Sat, 1 Jul 2023 03:06:11 +0000 (05:06 +0200)]
Continued:
- parsed more headers for more block lists
Roland Häder [Sat, 1 Jul 2023 02:34:06 +0000 (04:34 +0200)]
Continued:
- skip empty domains
- rewrote handling of blocklist from pleroma
Roland Häder [Sat, 1 Jul 2023 01:18:39 +0000 (03:18 +0200)]
Continued:
- skip empty domains after tidyup.domain()
Roland Häder [Sat, 1 Jul 2023 01:06:57 +0000 (03:06 +0200)]
Continued:
- need to set detection_mode and nodeinfo_url to None to avoid false instance
data
- setters may accept None now
Roland Häder [Sat, 1 Jul 2023 00:42:34 +0000 (02:42 +0200)]
Continued:
- fixed handling returned `data` dict
- added some debug log messages
Roland Häder [Sat, 1 Jul 2023 00:17:30 +0000 (02:17 +0200)]
Continued:
- fixed exception when pleroma block reason is None
Roland Häder [Sat, 1 Jul 2023 00:06:20 +0000 (02:06 +0200)]
Continued:
- blacklisted `activitypub-proxy.cf` as this fakes instances and is currently
offline
- blacklisted `netlify.app` as this is a mass-hoster with many fake sub domains
Roland Häder [Fri, 30 Jun 2023 23:58:37 +0000 (01:58 +0200)]
Continued:
- more error codes since redirects are now no longer accepted
Roland Häder [Fri, 30 Jun 2023 23:37:25 +0000 (01:37 +0200)]
Testing:
- allow no redirects as normal Fediverse instances should neve redirect
- send_bot_post() accepts as 2nd parameter a list, not a dictionary
Roland Häder [Fri, 30 Jun 2023 23:21:47 +0000 (01:21 +0200)]
Continued:
- moved json_from_response() to fba.helpers.json.from_response()
Roland Häder [Fri, 30 Jun 2023 22:49:36 +0000 (00:49 +0200)]
Continued:
- rewrote fetch_observer() to dynamically load software list
- 'dolphin' is another alias for 'misskey'
Roland Häder [Fri, 30 Jun 2023 13:22:08 +0000 (15:22 +0200)]
Continued:
- try/except for fetching peers
Roland Häder [Fri, 30 Jun 2023 11:38:43 +0000 (13:38 +0200)]
Continued:
- lhr.life and localhost.run provide some tunnel service with tons of sub
domains which causes the 'instances' table to flood
- command 'fetch_fbabot_atom' is originating from ryona.agency
Roland Häder [Fri, 30 Jun 2023 10:30:58 +0000 (12:30 +0200)]
Continued:
- if domain wasn't found domain_data is None
- treat empty JSON replies as errors
- debug level is enough
Roland Häder [Thu, 29 Jun 2023 22:07:47 +0000 (00:07 +0200)]
Continued:
- takahe supports peer retrieval through /api/v1/instances
- peertube does NOT support retrieval of block list (yet)
Roland Häder [Thu, 29 Jun 2023 09:47:03 +0000 (11:47 +0200)]
Continued:
- introduced new view "/infos"
- changed indexed row array to associative e.g. row[0] had become row['domain']
Roland Häder [Thu, 29 Jun 2023 07:52:06 +0000 (09:52 +0200)]
Continued:
- daemon.py can be easily executable
- also need to rename it in __main__
Roland Häder [Thu, 29 Jun 2023 07:49:17 +0000 (09:49 +0200)]
Continued:
- renamed api.py -> daemon.py as this runs as a "daemonized" Python script
- please use check-daemon.sh for starting it in a screen
Roland Häder [Thu, 29 Jun 2023 05:24:40 +0000 (07:24 +0200)]
Continued:
- some block entries seem to contain https:// at the start, also try this
varriant
Roland Häder [Thu, 29 Jun 2023 04:11:00 +0000 (06:11 +0200)]
Continued:
- command recheck_obfuscation now accepts parameter --domain and --software
- encapsulated aliasing unwanted block_level into function
utils.alias_block_level()
Roland Häder [Wed, 28 Jun 2023 11:32:14 +0000 (13:32 +0200)]
Continued:
- /api/info.json doesn't need to return slogan while it can be taken directly
from configuration
- exclude empty origins, not software
Roland Häder [Wed, 28 Jun 2023 04:43:21 +0000 (06:43 +0200)]
Continued:
- update instance data just before exiting federation.fetch_instances()
Roland Häder [Wed, 28 Jun 2023 04:28:05 +0000 (06:28 +0200)]
Continued:
- only mark instances having obfuscated block entries when at least one cannot
be deobfuscated
Roland Häder [Tue, 27 Jun 2023 14:42:47 +0000 (16:42 +0200)]
Continued:
- also "ignore" (skip) these TLDs
Roland Häder [Tue, 27 Jun 2023 03:19:30 +0000 (05:19 +0200)]
Continued:
- added or processed? ;-)
Roland Häder [Tue, 27 Jun 2023 03:17:18 +0000 (05:17 +0200)]
Continued:
- count() > 0 or find() >= 0 ?
Roland Häder [Tue, 27 Jun 2023 02:44:15 +0000 (04:44 +0200)]
Continued:
- 'blocked' is the deobfuscated one, ops
Roland Häder [Mon, 26 Jun 2023 21:56:06 +0000 (23:56 +0200)]
Continued:
- response.headers.get("content-type") might be None and should be reported, too
Roland Häder [Mon, 26 Jun 2023 20:40:14 +0000 (22:40 +0200)]
Continued:
- strip of charset while checking for received content-type
- but add it when sending it
Roland Häder [Mon, 26 Jun 2023 19:26:56 +0000 (21:26 +0200)]
Continued:
- fixed error messages, missed adding the actual variables being logged
- logged count of updated fields
- log header (mostly bs4.element.Tag)
Roland Häder [Mon, 26 Jun 2023 18:32:38 +0000 (20:32 +0200)]
Continued:
- fixed some lint issues
- logged type of variable 'tag'
- changed single -> double quotes
Roland Häder [Mon, 26 Jun 2023 17:47:41 +0000 (19:47 +0200)]
Continued:
- no <br /><br /> when you can use <p> instead
- adding lang="en" as the language is currently static English
- fixed some HTML errors
Roland Häder [Mon, 26 Jun 2023 17:16:48 +0000 (19:16 +0200)]
Continued:
- added command recheck_obfuscation() to recheck if returned instance's
obfuscated blocked peers can be de-obfuscated
- I use array["fop"] outside strings and array['foo'] inside
Roland Häder [Mon, 26 Jun 2023 05:44:26 +0000 (07:44 +0200)]
Fixed:
- content can sometimes be a tag, not a string
Roland Häder [Sun, 25 Jun 2023 22:52:07 +0000 (00:52 +0200)]
Continued:
- re-run fetch_instances 3-5 times, not fetch_fbabot_atom
Roland Häder [Sun, 25 Jun 2023 20:18:22 +0000 (22:18 +0200)]
Continued:
- TOR .onion instances are not analyzed here, maybe later a switch --onion will
add TOR-only support?
Roland Häder [Sun, 25 Jun 2023 18:07:43 +0000 (20:07 +0200)]
Continued:
- introduced utils.process_block() to encapsulate handling adding/updating blocks
Roland Häder [Sun, 25 Jun 2023 16:41:05 +0000 (18:41 +0200)]
Continued:
- if peers list is empty, try to fetch from /instances
Roland Häder [Sun, 25 Jun 2023 16:01:02 +0000 (18:01 +0200)]
Continued:
- fixed exception
Roland Häder [Sun, 25 Jun 2023 15:43:56 +0000 (17:43 +0200)]
Continued:
- debug message added
Roland Häder [Sun, 25 Jun 2023 10:32:07 +0000 (12:32 +0200)]
Continued:
- if lemmy's API doesn't work or returns zero rows, try /instances instead
Roland Häder [Sun, 25 Jun 2023 10:13:23 +0000 (12:13 +0200)]
Fixed:
- some lemmy instances uses a table, instead of an unsorted list for their
/instances view
Roland Häder [Sun, 25 Jun 2023 09:22:28 +0000 (11:22 +0200)]
Continued:
- added command fetch_joinfediverse() to fetch domain blocks from
climatejustice.social's wiki
Roland Häder [Sun, 25 Jun 2023 07:01:38 +0000 (09:01 +0200)]
Continued:
- tpzo fixed
Roland Häder [Sun, 25 Jun 2023 06:47:13 +0000 (08:47 +0200)]
Continued:
- let's be nice and only fetch instances/blocks from not recently (aka.
out-dated) records so we keep bandwidth low on these servers
Roland Häder [Sun, 25 Jun 2023 05:28:14 +0000 (07:28 +0200)]
Continued:
- exclude instances with no nodeinfo URL
Roland Häder [Sun, 25 Jun 2023 05:22:42 +0000 (07:22 +0200)]
Fixed:
- don't provide software in advance, this prevents nodeinfo being fetched
Roland Häder [Sun, 25 Jun 2023 05:05:47 +0000 (07:05 +0200)]
Continued:
- basic theme support added
- please note that the StaticFiles class handles them!
Roland Häder [Sun, 25 Jun 2023 03:53:04 +0000 (05:53 +0200)]
Continued:
- introduced software helper with function alias()
Roland Häder [Sun, 25 Jun 2023 02:40:14 +0000 (04:40 +0200)]
Continued:
- also don't allow/ignore URLs with /tag/ in it
- ops, hash wasn't provided to instances.deobfuscate()
Roland Häder [Sun, 25 Jun 2023 01:13:38 +0000 (03:13 +0200)]
Continued:
- ops, forgot to also check everything here, too
Roland Häder [Sat, 24 Jun 2023 21:27:46 +0000 (23:27 +0200)]
Continued:
- clear cookies after federation.fetch_instances() has finished or failed
its job
- logger messages a bit rewritten
Roland Häder [Sat, 24 Jun 2023 19:00:14 +0000 (21:00 +0200)]
Continued:
- some CSS beautifications
- scoreboard navigation is now a list not just links with <br />
Roland Häder [Sat, 24 Jun 2023 18:39:28 +0000 (20:39 +0200)]
Continued:
- h3 is enough here
Roland Häder [Sat, 24 Jun 2023 15:56:17 +0000 (17:56 +0200)]
One week per instance fetch is already enough.
Roland Häder [Sat, 24 Jun 2023 12:13:23 +0000 (14:13 +0200)]
Continued:
- metrics wasn't the right word here, statistics is more proper
- renamed links.tpl -> links.html
Roland Häder [Sat, 24 Jun 2023 12:10:09 +0000 (14:10 +0200)]
Continued:
- maximum API limit (500) now as a configuration key
Roland Häder [Sat, 24 Jun 2023 12:01:29 +0000 (14:01 +0200)]
Notation applied:
- decimals in lazy strings with %d
- strings with '%s'
Roland Häder [Sat, 24 Jun 2023 11:33:15 +0000 (13:33 +0200)]
Continued:
- moved rss.xml, robots.txt to views/ directory as these are actual views
Roland Häder [Sat, 24 Jun 2023 11:31:56 +0000 (13:31 +0200)]
Continued:
- fixed rss.xml view
- also maybe search for hash (only mastodon provide it)
Roland Häder [Sat, 24 Jun 2023 10:41:19 +0000 (12:41 +0200)]
Continued:
- include all block levels
Roland Häder [Sat, 24 Jun 2023 10:37:13 +0000 (12:37 +0200)]
Continued:
- count all found records, output message if requested amount is same
- renamed template variable blocks -> blocklist so it is the same as in api.py
Roland Häder [Sat, 24 Jun 2023 10:21:22 +0000 (12:21 +0200)]
Continued:
- rewrote api.py's router functions in a more flexible way: mode,value,amount
- for now only a few modes are supported: domain, reverse, reason, block_level
Roland Häder [Sat, 24 Jun 2023 09:21:15 +0000 (11:21 +0200)]
Continued:
- upper-case on start
- None could also mean erroneous instance (e.g. not found/deactivated API)
Roland Häder [Sat, 24 Jun 2023 07:39:12 +0000 (09:39 +0200)]
Continued:
- check if domain is wanted before trying to deobfuscate it
Roland Häder [Sat, 24 Jun 2023 07:24:01 +0000 (09:24 +0200)]
Continued:
- multi-fetch for fetch_txt
- always write pending updates after a domain has been worked on
Roland Häder [Fri, 23 Jun 2023 19:07:52 +0000 (21:07 +0200)]
Continued:
- paths is not a dict, it must be a list (ops)
- some JSON APIs don't response with a list of peers, but a dict instead
Roland Häder [Fri, 23 Jun 2023 18:12:47 +0000 (20:12 +0200)]
Continued:
- added command 'fetch_pixelfed_api' to fetch instances from pixelfed.org's API
Roland Häder [Fri, 23 Jun 2023 17:37:44 +0000 (19:37 +0200)]
Continued:
- renamed "indexed" to "supported" as this is more obvious (and true, too)
Roland Häder [Fri, 23 Jun 2023 17:24:41 +0000 (19:24 +0200)]
Continued:
- introduced utils.deobfuscate_domain() which encapsulates deobfuscating domain
names
Roland Häder [Fri, 23 Jun 2023 16:32:54 +0000 (18:32 +0200)]
Continued:
- added 'r' to avoid anomalous-backslash-in-string lint-check
Roland Häder [Fri, 23 Jun 2023 16:26:15 +0000 (18:26 +0200)]
Continued:
- update total peer count in centralized fetch_instances(), not in individual
network's functions
Roland Häder [Fri, 23 Jun 2023 15:13:36 +0000 (17:13 +0200)]
Continued:
- made all translations lower-case for easier comparison
- if header is empty, skip it (avoids exception)
Roland Häder [Fri, 23 Jun 2023 14:49:32 +0000 (16:49 +0200)]
Continued:
- registered fetch_bkali on 'tak.teleyal.blog' instance
Roland Häder [Fri, 23 Jun 2023 14:20:17 +0000 (16:20 +0200)]
Continued:
- changed 'suspend' back to 'suspended', there is 'silenced', 'quarantined'
- still 'reject' is around ...
Roland Häder [Fri, 23 Jun 2023 14:05:13 +0000 (16:05 +0200)]
Continued:
- changed 'silence' to 'silenced', makes more sense
- bot POSTs are now centralized in fba.commands.fetch_blocks()
- more logging added
Roland Häder [Fri, 23 Jun 2023 05:09:08 +0000 (07:09 +0200)]
Continued:
- mode=detection_mode has in second column total count, not blocks
Roland Häder [Fri, 23 Jun 2023 04:33:13 +0000 (06:33 +0200)]
Continued:
- used more `foo in ['some', 'other']`
Roland Häder [Fri, 23 Jun 2023 03:46:02 +0000 (05:46 +0200)]
WIP:
- if the domain part of foo.tld/c/ is already registered, then this might be a
link to a user profile
- also log software
Roland Häder [Fri, 23 Jun 2023 03:36:24 +0000 (05:36 +0200)]
Continued:
- set_success() sets status_code to 200 and clears last_error_details
Roland Häder [Fri, 23 Jun 2023 02:51:00 +0000 (04:51 +0200)]
Finished:
- rewrote remaining f-masked logger messages to lazy '%'
- fixed some logger messages with {foo} still in it
Roland Häder [Fri, 23 Jun 2023 01:55:53 +0000 (03:55 +0200)]
Continued:
- added metrics for column detection_mode
Roland Häder [Fri, 23 Jun 2023 00:40:11 +0000 (02:40 +0200)]
Fixed:
- tpzo fixed
Roland Häder [Fri, 23 Jun 2023 00:05:34 +0000 (02:05 +0200)]
Continued:
- rewrote logger messages from f-masked to lazy '%'
- added missing f(-masked)
Roland Häder [Thu, 22 Jun 2023 23:10:48 +0000 (01:10 +0200)]
Continued:
- removed unused imports
Roland Häder [Thu, 22 Jun 2023 22:46:40 +0000 (00:46 +0200)]
Continued:
- added metrics for blocking levels
Roland Häder [Thu, 22 Jun 2023 22:32:33 +0000 (00:32 +0200)]
Continued:
- mapped 'suspended' to 'suspend'
- mapped 'silenced' to 'silence'
- deny 'suspended'/'silenced' in blocks model functions
Roland Häder [Thu, 22 Jun 2023 21:57:38 +0000 (23:57 +0200)]
Continued:
- again tpzo fixed:
ALTER TABLE instances RENAME has_obfucation TO has_obfuscation
Roland Häder [Thu, 22 Jun 2023 20:41:30 +0000 (22:41 +0200)]
Continued:
- also include Friendica
Roland Häder [Thu, 22 Jun 2023 19:30:20 +0000 (21:30 +0200)]
Continued:
- it is 'blocked' not 'blocker' (current domain in fetch_blocks() function)
Roland Häder [Thu, 22 Jun 2023 19:25:50 +0000 (21:25 +0200)]
Continued:
- these fetch_blocks() must return a list()
Roland Häder [Thu, 22 Jun 2023 19:19:00 +0000 (21:19 +0200)]
Continued:
- don't re-check/tidy-up block reason and domain if already done
Roland Häder [Thu, 22 Jun 2023 19:09:45 +0000 (21:09 +0200)]
Continued:
- rewrote fetch_blocks() so always a list() is being returned
- also don't commit so often to database
- added report.sh and ignored generated report.txt
Roland Häder [Thu, 22 Jun 2023 16:41:53 +0000 (18:41 +0200)]
Continued:
- tpzo fixed, you have to run following SQL:
ALTER TABLE instances RENAME has_obsfucation TO has_obfucation
Roland Häder [Thu, 22 Jun 2023 16:24:48 +0000 (18:24 +0200)]
Continued:
- CSS notice box added
- text aligned to left, header to centered
- rounded corners look beautiful!
Roland Häder [Thu, 22 Jun 2023 16:15:09 +0000 (18:15 +0200)]
Continued:
- added obsfucation metrics, only pleroma and mastodon are currently
obsfucating their block list
- so also reflect this here
Roland Häder [Thu, 22 Jun 2023 16:03:49 +0000 (18:03 +0200)]
Continued:
- need to set has_obsfucation = False first, then later when obsfucated domains
are found set it to True
- only find entries with has_obsfucation=1
Roland Häder [Thu, 22 Jun 2023 15:36:51 +0000 (17:36 +0200)]
Continued:
- also expose this flag in relation to used software (currently only mastodon
and pleroma obsfucate)