]>
git.mxchange.org Git - fba.git/log
Roland Häder [Tue, 8 Aug 2023 12:57:25 +0000 (14:57 +0200)]
WIP:
- added i18n support
- I still get an exception of missing tag 'trans' and I don't know how to hook
i18n properly into Jinja2
- I found tutorials but they had their Python-based language files while this
here follows: https://svn.python.org/projects/external/Jinja-2.1.1/docs/_build/html/extensions.html
- if someone knows how to make this correctly, please tell me
Roland Häder [Fri, 15 Nov 2024 00:15:25 +0000 (01:15 +0100)]
Continued:
- better handling of CSRF meta tags
Roland Häder [Fri, 8 Nov 2024 20:26:59 +0000 (21:26 +0100)]
Continued:
- fixed some leftovers from last encapsulation
Roland Häder [Fri, 8 Nov 2024 13:58:44 +0000 (14:58 +0100)]
Continued:
- maybe "index" was outdated here?
Roland Häder [Sun, 13 Oct 2024 14:01:17 +0000 (16:01 +0200)]
Contionued:
- moved static array from code (body) to header
Roland Häder [Fri, 11 Oct 2024 14:59:03 +0000 (16:59 +0200)]
Continued:
- fixed exception: need to skip unwanted TLDs
Roland Häder [Sat, 5 Oct 2024 20:04:40 +0000 (22:04 +0200)]
Continued:
- added locally used scripts, can be useful to someone else, too
Roland Häder [Tue, 1 Oct 2024 20:05:59 +0000 (22:05 +0200)]
Continued:
- a little commata must be added ... :-(
Roland Häder [Tue, 1 Oct 2024 20:02:29 +0000 (22:02 +0200)]
Continued:
- removed no longer provided or now private blocklist
Roland Häder [Tue, 1 Oct 2024 19:47:25 +0000 (21:47 +0200)]
Continued:
- removed redundant code (copy-paste)
- added missing local variable declaration
Roland Häder [Tue, 1 Oct 2024 17:00:37 +0000 (19:00 +0200)]
Continued:
- now also command recheck_obfuscation() is updating/adding 'obfucated' a record
Roland Häder [Tue, 1 Oct 2024 16:52:05 +0000 (18:52 +0200)]
Continued:
- added function update() for "model" obfuscation (module name and table name
must match as this is naming convention)
- added column 'last_used' to table 'obfuscation'
Roland Häder [Mon, 30 Sep 2024 19:23:42 +0000 (21:23 +0200)]
Continued:
- changed debug to info message as this was to quiet when for example the new
instance isn't reachable (timeout)
Roland Häder [Sun, 29 Sep 2024 04:11:32 +0000 (06:11 +0200)]
Continued:
- added debug lines for function invocation
- change INFO into DEBUG message
- changed type to "any" (maybe it is limitable?)
Roland Häder [Sat, 21 Sep 2024 23:28:59 +0000 (01:28 +0200)]
Continued:
- more fixed for handing parked domains (200 OK or 302 but no real content)
Roland Häder [Sat, 21 Sep 2024 23:13:57 +0000 (01:13 +0200)]
Continued:
- some parked domains return "200 OK" for all requests. This is understandable
in their view on things but it isn't standard-conform as 200 means document
found and not some fake content being returned
Roland Häder [Thu, 19 Sep 2024 21:50:20 +0000 (23:50 +0200)]
Continued:
- removed obsolete code
Roland Häder [Thu, 19 Sep 2024 17:24:02 +0000 (19:24 +0200)]
Continued:
- an empty string is not the same as None, that's correct. So both need to be
checked
- yes, first I check on false (missing keys, etc.) then true (positive outcome)
Roland Häder [Wed, 18 Sep 2024 22:37:32 +0000 (00:37 +0200)]
Continued:
- introduced network.fetch_json_rows() which fetches a JSON API response and
returns a specifyable rows key (optional) to return as rows
Roland Häder [Sun, 15 Sep 2024 17:17:41 +0000 (19:17 +0200)]
Continued:
- introduced domain_helper.is_tld_wanted() which checks if the top-level domain
of a domain name is wanted
Roland Häder [Sun, 15 Sep 2024 16:03:34 +0000 (18:03 +0200)]
Continued:
- skip invalid domains after checking them for obfuscation with asterisks or
question marks
Roland Häder [Sun, 15 Sep 2024 15:29:42 +0000 (17:29 +0200)]
Continued:
- rewrote chaos.social parser for their own documentation at meta.chaos.social
Roland Häder [Sun, 15 Sep 2024 10:35:19 +0000 (12:35 +0200)]
Continued:
- instances.delete() now has an optional parameter 'column' which
also needs validation on type and non-empty string
- some functions in same module didn't log optional/extra parameter 'column'
Roland Häder [Sun, 15 Sep 2024 10:23:43 +0000 (12:23 +0200)]
Continued:
- these DELETE SQL statements have already been encapsulated
Roland Häder [Sat, 14 Sep 2024 18:43:56 +0000 (20:43 +0200)]
Continued:
- formatted longer SQL statment
- changed ordering of records
Roland Häder [Wed, 11 Sep 2024 23:29:52 +0000 (01:29 +0200)]
Continued:
- 'typeecho' sometimes provide a block list which has same API path as Fediverse
instances provide, so let's add it as a source
- removed nodeinfo_url from SQL query when searching for software during
fetch_blocks() command
Roland Häder [Sun, 8 Sep 2024 03:02:52 +0000 (05:02 +0200)]
Continued:
- added "logging" of obfuscated blocked domain/instance names
- if it has been deobfuscated, it will be removed
Roland Häder [Sun, 8 Sep 2024 00:16:26 +0000 (02:16 +0200)]
Continued:
- check if instance[host] is at least set and a non-empty string
Roland Häder [Sat, 7 Sep 2024 17:14:20 +0000 (19:14 +0200)]
Continued:
- when returned value from tidyup.domain() is an empty string or None then
always log it as a debug message
Roland Häder [Wed, 4 Sep 2024 00:20:34 +0000 (02:20 +0200)]
Continued:
- added type-hint 'None' for all functions not returning a value, for example
setters, add/update/delete functions
Roland Häder [Tue, 3 Sep 2024 23:07:37 +0000 (01:07 +0200)]
Continued:
- don't log an info after a "filter function"
- initialize variable 'search' as both if() blocks use the same code
- check variable 'domain' before 'char' as 'char' needs to be in a supported
'domain' string
Roland Häder [Sat, 31 Aug 2024 18:12:20 +0000 (20:12 +0200)]
Continued:
- added another alias 'meowkey' for 'misskey'
Roland Häder [Sat, 24 Aug 2024 17:53:18 +0000 (19:53 +0200)]
Continued:
- Diaspora seem to provide an API for more peers, so let's add it for command
fetch_instances()
- ... and yes, that long query isn't a good idea
Roland Häder [Fri, 23 Aug 2024 21:16:26 +0000 (23:16 +0200)]
Continued:
- added alias 'barkle' for 'misskey'
Roland Häder [Thu, 15 Aug 2024 19:35:57 +0000 (21:35 +0200)]
Continued:
- let also process.block() abort when an unwanted block_level is provided
- alias also "reject" to "rejected"
Roland Häder [Tue, 13 Aug 2024 21:22:01 +0000 (23:22 +0200)]
Continued:
- script is rejecting "reject" now in favor of "rejected" as there is
"suspended" and "silenced" (past) already around
- Please run `$ sqlite3 blocks.db "UPDATE blocks SET block_level = 'rejected' WHERE block_level = 'reject';"`
Roland Häder [Wed, 7 Aug 2024 15:24:23 +0000 (17:24 +0200)]
Continued:
- update_nodeinfo() now accepts --force-recrawl and --force-update-none to have
both "special" modes separately usable
Roland Häder [Wed, 7 Aug 2024 05:13:29 +0000 (07:13 +0200)]
Continued:
- --force is ambicious as now "other forces" will be added
Roland Häder [Wed, 31 Jul 2024 22:07:18 +0000 (00:07 +0200)]
Continued:
- added conditional links to 'added'/'updated' modes
Roland Häder [Mon, 29 Jul 2024 20:25:58 +0000 (22:25 +0200)]
Continued:
- update instance when error has happened (ops, missed this)
- also output warning when fields list is empty
Roland Häder [Mon, 29 Jul 2024 20:14:22 +0000 (22:14 +0200)]
Continued:
- added view for recently updated instances
- renamed 'recently' to 'added' for not confusing it
Roland Häder [Sat, 27 Jul 2024 21:51:00 +0000 (23:51 +0200)]
Continued:
- removed redundant utils.deobfuscate() invocation
Roland Häder [Sat, 27 Jul 2024 21:36:07 +0000 (23:36 +0200)]
Continued:
- reworked parts of finding out if blocker has blocked domains with
placeholders like '*' or '?' in it
- improved some logger messages
Roland Häder [Thu, 25 Jul 2024 21:24:12 +0000 (23:24 +0200)]
Continued:
- added parameter --no-obfuscation to recheck records where blocked domains are
not obfuscated before but maybe now and still have a software detected
- sort those recheck lists by last_blocked
Roland Häder [Sun, 21 Jul 2024 10:40:14 +0000 (12:40 +0200)]
Continued:
- added 3rd parameter for handling e.g. --force to fba.py or any other parameter
fba.py handles
- more "debug" lines added
Roland Häder [Sat, 20 Jul 2024 18:29:23 +0000 (20:29 +0200)]
Continued:
- don't reduce counter for obfuscated domains, keep it at original value
- some more debug messages added
Roland Häder [Thu, 18 Jul 2024 22:16:38 +0000 (00:16 +0200)]
Continued:
- split off question mark (mostly comes from WordPress instances)
Roland Häder [Wed, 17 Jul 2024 18:07:17 +0000 (20:07 +0200)]
Continued:
- skip unset software (None)
Roland Häder [Sat, 13 Jul 2024 20:52:35 +0000 (22:52 +0200)]
Continued:
- removed never started feature to check local files containing blocked
instances (and maybe reasons)
Roland Häder [Sat, 13 Jul 2024 20:49:32 +0000 (22:49 +0200)]
Continued:
- annotated more functions for caching
- initialized private _config "array" (dict)
Roland Häder [Sat, 13 Jul 2024 14:18:34 +0000 (16:18 +0200)]
Continued:
- skip invalid/unwanted domains (like .ip2/tld/onion ...)
- proper name logged
Roland Häder [Sat, 13 Jul 2024 13:12:30 +0000 (15:12 +0200)]
Continued:
- ops, forgot to add variable 'domain'
Roland Häder [Sat, 13 Jul 2024 09:21:44 +0000 (11:21 +0200)]
Continued:
- invalid domains should most be logged as warnings, not debug levels but
sometimes it is okay
- allow RFC 2782 compliant domains (with underscore)
Roland Häder [Sat, 13 Jul 2024 09:19:07 +0000 (11:19 +0200)]
Continued:
- skip invalid domains (warning)
- skip .arpa/i2p/onion/tld (I2P might be allowed)
Roland Häder [Fri, 12 Jul 2024 09:53:38 +0000 (11:53 +0200)]
Continued:
- ops, renamed to much
Roland Häder [Wed, 10 Jul 2024 20:54:21 +0000 (22:54 +0200)]
Continued:
- a warning was to much here
- also need to check on other invalid TLDs, like .arpa, .tld and (if disabled)
.onion/.i2p TLDs
Roland Häder [Wed, 10 Jul 2024 18:54:25 +0000 (20:54 +0200)]
Continued:
- allowed underscore in domains (RFC 2782)
- have to check domain validity before domain_helpers.encode_idna() is being
invoked
Roland Häder [Wed, 10 Jul 2024 16:34:05 +0000 (18:34 +0200)]
Continued:
- introduced function domain_helper.encode_idna() which has centralized IDNA
encoding
Roland Häder [Tue, 9 Jul 2024 23:09:45 +0000 (01:09 +0200)]
Continued:
- added 'wordpress' and 'oolong' as peer sources
- some APIs may return a dictionary (dict) for an instance entry
Roland Häder [Tue, 9 Jul 2024 22:34:12 +0000 (00:34 +0200)]
Continued:
- added "和歌" as alias for mastodon
Roland Häder [Tue, 9 Jul 2024 22:23:14 +0000 (00:23 +0200)]
Continued:
- added 'devtunnels.ms' to blacklist as this is only for testing/developing
Roland Häder [Mon, 8 Jul 2024 21:09:27 +0000 (23:09 +0200)]
Continued:
- removed redundant dashes
Roland Häder [Sun, 7 Jul 2024 21:18:20 +0000 (23:18 +0200)]
Continued:
- added 'kookie' as another alias for 'misskey'
Roland Häder [Sun, 7 Jul 2024 20:13:23 +0000 (22:13 +0200)]
Continued:
- moved args.single handling to proper level
- wrapped strings in Shell script
- explained all entries in .gitignore
Roland Häder [Mon, 1 Jul 2024 21:58:25 +0000 (23:58 +0200)]
Continued:
- stop question marks in domain.raise_on() function
- split off question mark
- added space for better readability
- fixed syntax error
Roland Häder [Mon, 1 Jul 2024 16:21:54 +0000 (18:21 +0200)]
Continued:
- WordPress is a peer list provider and can be utilized for more "peers" aka.
instances
- URL from response object can be different than requested, it needs to be
revalidated
- invalid redirect URLs are now logged with a level WARNING message
Roland Häder [Sun, 23 Jun 2024 11:28:52 +0000 (13:28 +0200)]
Continued:
- 'neodb' might appear in names such as 'testando neodb'
Roland Häder [Sat, 15 Jun 2024 13:11:40 +0000 (15:11 +0200)]
Continued:
- if the found digest isn't valid, then set it to None
- ignore (not skip) any invalid digests
Roland Häder [Fri, 14 Jun 2024 16:48:25 +0000 (18:48 +0200)]
Continued:
- fixed exception, need to check is_registered() here first
Roland Häder [Sun, 2 Jun 2024 14:53:24 +0000 (16:53 +0200)]
Continued:
- show run-mode of nodeinfo.sh
- fetch_instances can now (again) fetch new instances (not registered)
Roland Häder [Sat, 1 Jun 2024 19:21:39 +0000 (21:21 +0200)]
Continued:
- added another UTF-8 exception
Roland Häder [Sat, 25 May 2024 16:55:09 +0000 (18:55 +0200)]
Continued:
- added another exception
Roland Häder [Mon, 20 May 2024 19:23:31 +0000 (21:23 +0200)]
Continued:
- Hugo isn't distributed at all. I guess someone replaced a federated software
with Hugo at the same domain
Roland Häder [Mon, 20 May 2024 14:36:51 +0000 (16:36 +0200)]
Continued:
- added 'biblioreads' as peer list provider
Roland Häder [Mon, 20 May 2024 12:49:13 +0000 (14:49 +0200)]
Continued:
- variable `response_url` is the whole URL, maybe stripped off from its anchor
(#) part but it is NEVER a valid domain (ops)
Roland Häder [Mon, 20 May 2024 12:33:25 +0000 (14:33 +0200)]
Continued:
- some servers may return '<html something>' at the start (position 0),
- so if string.find() cannot find that string "<html", it will return -1 instead
of zero
Roland Häder [Sat, 11 May 2024 19:36:59 +0000 (21:36 +0200)]
Continued:
- dict element 'domain' will always be there, no double-redundant checks
Roland Häder [Sat, 11 May 2024 19:30:26 +0000 (21:30 +0200)]
Continued:
- fetch_blocks_from_about() does return a 2-dimensional array, not a flat one
Roland Häder [Fri, 10 May 2024 20:56:07 +0000 (22:56 +0200)]
Continued:
- network aka. "universe" 'snac' added as peer source
Roland Häder [Sat, 4 May 2024 00:05:29 +0000 (02:05 +0200)]
Continued:
- addedd alias 'cutiekey' for 'misskey'
Roland Häder [Thu, 2 May 2024 01:23:12 +0000 (03:23 +0200)]
Continued:
- serveo.net blacklisted: 'Expose local servers to the internet'
Roland Häder [Tue, 30 Apr 2024 13:12:54 +0000 (15:12 +0200)]
Continued:
- nodeinfo_url should never be None/NULL here
Roland Häder [Tue, 23 Apr 2024 23:46:57 +0000 (01:46 +0200)]
Continued:
- blocked 'documentation.on.seirdy.one'
- removed old-lost blocklists
- added another CSV file for seirdy.one
Roland Häder [Sun, 21 Apr 2024 17:49:16 +0000 (19:49 +0200)]
Continued:
- rewrite all "*mammuthus*" to "mammuthus"
Roland Häder [Fri, 19 Apr 2024 23:41:39 +0000 (01:41 +0200)]
Continued:
- recheck_obfuscation now supports deleting unwanted domains from both tables
'instances' and 'blocks'
Roland Häder [Fri, 19 Apr 2024 15:41:20 +0000 (17:41 +0200)]
Continued:
- moved some pre-sorting
Roland Häder [Thu, 18 Apr 2024 17:23:45 +0000 (19:23 +0200)]
Continued:
- added alias 'trashposs' for 'misskey'
Roland Häder [Wed, 17 Apr 2024 20:50:46 +0000 (22:50 +0200)]
Continued:
- added uncached blocks.get_reason()
- update block reason when current isn't set but updated reason is set
Roland Häder [Wed, 17 Apr 2024 19:38:13 +0000 (21:38 +0200)]
Continued:
- renamed local (overwritten) variable 'blocked' to 'cleared' so the array
index can be found again
Roland Häder [Wed, 17 Apr 2024 18:10:06 +0000 (20:10 +0200)]
Continued:
- need to check if variable 'blocked' is None or an empty string first
- log size (len()) not whole array
Roland Häder [Tue, 16 Apr 2024 22:26:14 +0000 (00:26 +0200)]
Continued:
- added some missing instances.is_recent(foo) invocations
- use last_instance_fetch (default) where ever federation.fetch_instances() is
been invoked
- wording fixed
Roland Häder [Tue, 16 Apr 2024 22:08:39 +0000 (00:08 +0200)]
Continued:
- added alias 'tanukey' for 'misskey'
Roland Häder [Tue, 16 Apr 2024 14:23:50 +0000 (16:23 +0200)]
Continued:
- blacklisted 'clients.your-server.de' and 2 others as this is a reverse-IP host
name, but instances should have proper domain names
Roland Häder [Sun, 14 Apr 2024 09:54:15 +0000 (11:54 +0200)]
Continued:
- fixed 'TypeError: not enough arguments for format string'
Roland Häder [Wed, 10 Apr 2024 21:53:04 +0000 (23:53 +0200)]
Continued:
- cache blacklist function invocations
Roland Häder [Wed, 10 Apr 2024 21:38:28 +0000 (23:38 +0200)]
Continued:
- added 'toki' for peer lists, you can find it here:
https://github.com/purifetchi/Toki
Roland Häder [Wed, 10 Apr 2024 09:56:11 +0000 (11:56 +0200)]
Continued:
- python3-aiofiles needs to be installed manually with Python 3.9
- Python 3.11 seem to install it automatically
Roland Häder [Tue, 9 Apr 2024 16:11:37 +0000 (18:11 +0200)]
Continued:
- added missing keyword (ops)
Roland Häder [Tue, 2 Apr 2024 01:39:32 +0000 (03:39 +0200)]
Continued:
- removed entries as the list has been deleted by oliphant + they provide
their own version already
Roland Häder [Mon, 1 Apr 2024 22:56:35 +0000 (00:56 +0200)]
Continued:
- FBA now requires Python 3.11
- updated documentation accordingly
- removed fastapi and uvicorn requirements, your distribution must now provide
it
- removed jinja2 and requests
- ignore entire venv/ directory, contains local paths