]>
git.mxchange.org Git - fba.git/log
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)
Roland Häder [Thu, 22 Jun 2023 15:23:02 +0000 (17:23 +0200)]
Continued:
- added column has_obsfucation for tracking if instances uses obsfucation in
their block list
- please run this SQL:
ALTER TABLE instances ADD has_obsfucation TINYINT(1) NULL DEFAULT NULL
- sorted links
Roland Häder [Thu, 22 Jun 2023 15:00:42 +0000 (17:00 +0200)]
Continued:
- moved links to "include" template and generalized them there
Roland Häder [Thu, 22 Jun 2023 14:25:58 +0000 (16:25 +0200)]
Continued:
- don't check domain with blacklist before it has been deobsfucated
Roland Häder [Thu, 22 Jun 2023 05:06:01 +0000 (07:06 +0200)]
Continued:
- rewrote more logging messages from f-masked to lazy '%'
Roland Häder [Thu, 22 Jun 2023 04:52:35 +0000 (06:52 +0200)]
Continued:
- don't check blacklist for (maybe) obsfucated domains,
domain.is_domain_wanted() does this
Roland Häder [Thu, 22 Jun 2023 04:43:30 +0000 (06:43 +0200)]
Continued:
- global parameter --debug added, produces with large blocks.db file a lot of
output! You have been warned!
Roland Häder [Thu, 22 Jun 2023 04:15:11 +0000 (06:15 +0200)]
Continued:
- rewrote more f-masked logger messages to lazy '%'
- blacklisted grossard.fr: please don't send tons of garbage!
- instances.deobsfucate() should not validate domains as this is always invalid
Roland Häder [Thu, 22 Jun 2023 00:34:08 +0000 (02:34 +0200)]
Continued:
- rewrote more logger lines from f-masked to lazy '%'
Roland Häder [Wed, 21 Jun 2023 23:56:42 +0000 (01:56 +0200)]
Continued:
- added check if parameter 'char' is found in parameter 'domain'
Roland Häder [Wed, 21 Jun 2023 23:03:25 +0000 (01:03 +0200)]
Continued:
- introduced helper module for domains, need to be aliased to 'domain_helper'
to avoid conflict with parameter 'domain'
Roland Häder [Wed, 21 Jun 2023 22:01:52 +0000 (00:01 +0200)]
Continued:
- rewrote more f-masked logger messages to lazy '%'
- also made them more common (see EXIT!, ABORT!)
Roland Häder [Wed, 21 Jun 2023 20:55:38 +0000 (22:55 +0200)]
Continued:
- disabled lint-check no-else-raise
- rewrote more f-masked logger lines to lazy '%'
Roland Häder [Wed, 21 Jun 2023 17:56:35 +0000 (19:56 +0200)]
Continued:
- also rewrote these logger messages to lazy '%' way
- fixed some unused-variable/import (pylint)
- fixed some syntax errors
Roland Häder [Wed, 21 Jun 2023 17:44:35 +0000 (19:44 +0200)]
Continued:
- directly imported format_datetime to keep loading time short
- fixed syntax errors
Roland Häder [Wed, 21 Jun 2023 17:39:28 +0000 (19:39 +0200)]
Continued:
- renamed fba.fba to fba.utils
- moved database-relevant code to fba.database module
Roland Häder [Wed, 21 Jun 2023 16:43:59 +0000 (18:43 +0200)]
Continued:
- added command fetch_todon_wiki() that will update blocks from todon.eu
- more checks for bad/unwanted domains added (.arpa/.tld)
- more f-masked strings rewritten to lazy '%' way
Roland Häder [Wed, 21 Jun 2023 13:45:46 +0000 (15:45 +0200)]
Continued:
- fixed some logger messages to lazy format
Roland Häder [Wed, 21 Jun 2023 13:36:10 +0000 (15:36 +0200)]
Continued:
- added command fetch_fedipact() where some instances might be gathered (who
are happy to block)
- a warning was to noisy for missing keys
Roland Häder [Wed, 21 Jun 2023 13:02:23 +0000 (15:02 +0200)]
Continued:
- some lemmy APIs return NULL (NoneType) in 'federated_instances' field
- fixed some logging messages
Roland Häder [Wed, 21 Jun 2023 06:44:01 +0000 (08:44 +0200)]
Fixed:
- batch of logging-fstring-interpolation
Roland Häder [Wed, 21 Jun 2023 06:09:23 +0000 (08:09 +0200)]
Continued:
- introduced real logger, all commented-out debug lines are now active
Roland Häder [Wed, 21 Jun 2023 05:45:50 +0000 (07:45 +0200)]
Continued:
- variable 'peer' can be a dict with "domain" as a key where the domain name
is stored
Roland Häder [Wed, 21 Jun 2023 04:17:39 +0000 (06:17 +0200)]
Continued:
- skip bad domains here, too
- this avoids more exceptions
Roland Häder [Wed, 21 Jun 2023 03:41:20 +0000 (05:41 +0200)]
Continued:
- also skip here to avoid exception
Roland Häder [Wed, 21 Jun 2023 03:37:16 +0000 (05:37 +0200)]
Continued:
- first check validity and if not wanted TLDs like '.arpa' or '.tld'
- then check blacklist
Roland Häder [Wed, 21 Jun 2023 03:24:08 +0000 (05:24 +0200)]
Conntinued:
- added more checks on domain names
Roland Häder [Wed, 21 Jun 2023 02:39:21 +0000 (04:39 +0200)]
Continued:
- ops, fixed variable chaos
Roland Häder [Wed, 21 Jun 2023 02:21:45 +0000 (04:21 +0200)]
Continued:
- moved fba.federation|network to package fba.http
Roland Häder [Wed, 21 Jun 2023 02:05:52 +0000 (04:05 +0200)]
Continued:
- also moved fba.config to package fba.helpers
Roland Häder [Wed, 21 Jun 2023 01:54:37 +0000 (03:54 +0200)]
Continued:
- removed duplicate functions
- fixed __all__
- removed whitespace
- re-added set_detection_mode()
Roland Häder [Wed, 21 Jun 2023 01:52:49 +0000 (03:52 +0200)]
Continued:
- move fba.blacklist to fba.helpers package
Roland Häder [Wed, 21 Jun 2023 01:16:26 +0000 (03:16 +0200)]
Continued:
- also tidyup blocked domain from Friendica, too
- also check it against blacklist and any unwanted .arpa/.tld TLDs
Roland Häder [Wed, 21 Jun 2023 01:12:21 +0000 (03:12 +0200)]
Continued:
- checks against blacklist added
Roland Häder [Wed, 21 Jun 2023 01:06:56 +0000 (03:06 +0200)]
Continued:
- tidyup blocked domain
- set last error on exception
- don't lower header text
Roland Häder [Wed, 21 Jun 2023 00:28:35 +0000 (02:28 +0200)]
Continued:
- implemented lemmy.fetch_blocks()
- don't fetch generically, better only network.exceptions
Roland Häder [Tue, 20 Jun 2023 21:11:56 +0000 (23:11 +0200)]
Continued:
- also check for '<html', if not found then skip this broken HTML
Roland Häder [Tue, 20 Jun 2023 19:59:46 +0000 (21:59 +0200)]
Continued:
- okay /api/top.json while the view is called /scoreboard, renamed it
Roland Häder [Tue, 20 Jun 2023 19:04:54 +0000 (21:04 +0200)]
Continued:
- another aliases for pleroma/misskey
Roland Häder [Tue, 20 Jun 2023 18:34:58 +0000 (20:34 +0200)]
Continued:
- imported needed module fba.helpers.cookies
- some nodeinfo may return blacklisted or invalid domains, let's skip them here
Roland Häder [Tue, 20 Jun 2023 13:37:10 +0000 (15:37 +0200)]
Continued:
- added argument --software to command fetch_blocks
- added some missing checks on parameter 'domain'
- removed unused imports
Roland Häder [Tue, 20 Jun 2023 13:06:26 +0000 (15:06 +0200)]
Continued:
- introduced cookies.clear() to clear cookies for given domain
Roland Häder [Tue, 20 Jun 2023 12:58:26 +0000 (14:58 +0200)]
Fixed:
- `if not "foo" in bar` is wrong, use `if "foo" not in bar` instead
Roland Häder [Tue, 20 Jun 2023 12:56:07 +0000 (14:56 +0200)]
Continued:
- introduced cookies.has()
- only invoke cookies.get_all() when there are cookies stored
Roland Häder [Tue, 20 Jun 2023 12:40:08 +0000 (14:40 +0200)]
Continued:
- added new helper for cookies
Roland Häder [Tue, 20 Jun 2023 12:16:30 +0000 (14:16 +0200)]
Continued:
- only check for domain part, some instances may have been installed in a sub
path
Roland Häder [Tue, 20 Jun 2023 12:14:11 +0000 (14:14 +0200)]
Continued:
- tpzo fixed
Roland Häder [Tue, 20 Jun 2023 11:52:59 +0000 (13:52 +0200)]
Continued:
- stopping other bad domains from entering functions
- also need to catch urlib3 exception
Roland Häder [Tue, 20 Jun 2023 05:27:48 +0000 (07:27 +0200)]
Continued:
- avoided local variables
Roland Häder [Tue, 20 Jun 2023 04:31:29 +0000 (06:31 +0200)]
Continued:
- new URL for TOP 10 lists
Roland Häder [Tue, 20 Jun 2023 03:06:52 +0000 (05:06 +0200)]
Continued:
- better acquire lock here
Roland Häder [Tue, 20 Jun 2023 02:49:56 +0000 (04:49 +0200)]
Continued:
- ignore non-updating UPDATE statements