From 227092b57acc886469e16bcc4c0d3256e86d3d1e Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Tue, 17 Nov 2026 14:44:00 +0100 Subject: feat(receiver): add source domain access rules Add persistent source block and allow lists with authenticated management, single-row and bulk blocking actions, and optional fail-closed allowlist mode. Reject disallowed sources before enqueueing and recheck policy in verification workers, while sharing canonical hostname normalization across receiver, sender, and configuration paths. --- webmentions_ssg/static/js/received-bulk-actions.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'webmentions_ssg/static/js') diff --git a/webmentions_ssg/static/js/received-bulk-actions.js b/webmentions_ssg/static/js/received-bulk-actions.js index c4ac31b..06ab912 100644 --- a/webmentions_ssg/static/js/received-bulk-actions.js +++ b/webmentions_ssg/static/js/received-bulk-actions.js @@ -49,8 +49,11 @@ document.addEventListener("DOMContentLoaded", () => { const selection = selected(); const message = modal.querySelector("#confirmation-modal-message"); - if (event.relatedTarget.dataset.receivedBulkAction === "delete") { + const action = event.relatedTarget.dataset.receivedBulkAction; + if (action === "delete") { message.textContent = `This permanently deletes ${selection.length} selected webmentions and cannot be undone.`; + } else if (action === "block-sources") { + message.textContent = `Source domains from ${selection.length} selected webmentions (and their subdomains) will be blocked. Existing webmentions will be kept.`; } else { message.textContent = `${selection.length} selected webmentions will be fetched and verified again.`; } -- cgit v1.3.1