From 6674754a21f6ded089adf35c4e74a9552c85dc1f Mon Sep 17 00:00:00 2001 From: Niels Keurentjes Date: Thu, 16 Nov 2023 17:42:43 +0100 Subject: [PATCH] Add omines/antispam-bundle (#1561) * Add omines/antispam-bundle (cherry picked from commit 79e5603123597bb914876e470ec5ffab1d73c5a9) * Clarify comment * Apply suggestions from code review Co-authored-by: Kevin Bond * Update antispam.yaml * Update configuration for current bundle version --------- Co-authored-by: Kevin Bond --- .../0.1/config/packages/antispam.yaml | 44 +++++++++++++++++++ omines/antispam-bundle/0.1/manifest.json | 8 ++++ 2 files changed, 52 insertions(+) create mode 100644 omines/antispam-bundle/0.1/config/packages/antispam.yaml create mode 100644 omines/antispam-bundle/0.1/manifest.json diff --git a/omines/antispam-bundle/0.1/config/packages/antispam.yaml b/omines/antispam-bundle/0.1/config/packages/antispam.yaml new file mode 100644 index 000000000..a0b51e291 --- /dev/null +++ b/omines/antispam-bundle/0.1/config/packages/antispam.yaml @@ -0,0 +1,44 @@ +# +# This sample configuration sets up a default anti-spam profile that will already stop a lot of +# form spam with minimal effort and none to minimal user inconvenience. +# +# To get started right away read the Quickstart at https://omines.github.io/antispam-bundle/quickstart/ +# +# For more details on the options available visit https://omines.github.io/antispam-bundle/configuration/ +# +antispam: + profiles: + default: + # Insert a honeypot called "email_address" on all forms to lure bots into filling it in + honeypot: email_address + + # Reject all forms that have been submitted either within 3 seconds, or after more than an hour + timer: + min: 3 + max: 3600 + + # + # The measures above should already have notable effect on the amount of spam that gets through + # your forms. Still getting annoying amounts? Analyze the patterns of uncaught spam, then + # consider uncommenting and modifying some of the examples below after careful consideration + # about their impact. + # + + # Reject text fields that contain (lame attempts at) HTML or BBCode +# banned_markup: true + + # Reject text fields that consist for more than 40% of Cyrillic (Russian) characters +# banned_scripts: +# scripts: [ cyrillic ] +# max_percentage: 40 + + # Reject fields that contain more than 3 URLs, or repeat a single URL more than once +# url_count: +# max: 3 +# max_identical: 1 + +when@test: + antispam: + # In automated tests the bundle and included components are by default disabled. You can still + # enable them for individual test cases via the main AntiSpam service. + enabled: false diff --git a/omines/antispam-bundle/0.1/manifest.json b/omines/antispam-bundle/0.1/manifest.json new file mode 100644 index 000000000..640980701 --- /dev/null +++ b/omines/antispam-bundle/0.1/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Omines\\AntiSpamBundle\\AntiSpamBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +}