From e1b1fea143a9e01a4a1299858da752178f5583a6 Mon Sep 17 00:00:00 2001 From: klea Date: Sat, 2 May 2026 05:52:48 +0000 Subject: [PATCH 1/2] uploader: Forbid uploads to localhost over IPv6 too Also refactor it whilst at it. --- uploader/uploader.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uploader/uploader.py b/uploader/uploader.py index d899d1bc..e3e13b76 100755 --- a/uploader/uploader.py +++ b/uploader/uploader.py @@ -36,7 +36,8 @@ def __init__(self): self.url = os.environ.get('RSYNC_URL') if self.url != None: - if '/localhost' in self.url or '/127.' in self.url: + local_urls = ['/localhost','/127.','/[::1]'] + if any(local_url in self.url for local_url in local_urls): raise RuntimeError('Won\'t let you upload to localhost because I ' 'remove files after uploading them, and you ' 'might be uploading to the same directory') From d4e92e5caa38811a34a1d5ba0313b5bad97dfacf Mon Sep 17 00:00:00 2001 From: klea Date: Sat, 2 May 2026 05:53:21 +0000 Subject: [PATCH 2/2] uploader: FOS no longer exists FOS was decommissioned in February 2026. FOS started to stop being as used around March 2022. FOS has done it's job for it's 14 years of service. https://bsky.app/profile/textfiles.com/post/3me5lug2bas2o --- uploader/uploader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uploader/uploader.py b/uploader/uploader.py index e3e13b76..532800d1 100755 --- a/uploader/uploader.py +++ b/uploader/uploader.py @@ -3,7 +3,7 @@ """uploader.py: upload WARC files toward the Internet Archive rsync mode (RSYNC_URL set): upload everything to an rsync endpoint -such as fos. +such as ArchiveTeam targets. s3 mode (S3_URL set): upload everything directly to the Internet Archive