Block the boom probe spammer

This commit is contained in:
h3artbl33d committed 2026-09-18 13:22:06 +02:00
1 parent 78549e9d13
commit d578223a44
1 file changed
+19
+19
View File
@@ -0,0 +1,19 @@
-----------------------------------------
-- Block the boom protocol probe spam ---
-----------------------------------------
CREATE OR REPLACE FUNCTION block_boomprotocolprobe()
RETURNS trigger AS
$$
BEGIN
IF NEW."registrationReason" = 'Automated protocol deliverability probe' THEN
RETURN NULL;
END IF;
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
CREATE TRIGGER trg_block_boomprotocolprobe
BEFORE INSERT ON "userRegistration"
FOR EACH ROW
EXECUTE FUNCTION block_boomprotocolprobe();