Skip to content

Commit

Permalink
Add omines/antispam-bundle
Browse files Browse the repository at this point in the history
(cherry picked from commit 79e5603)
  • Loading branch information
curry684 committed Nov 10, 2023
1 parent fefc19c commit b2fa8c9
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
37 changes: 37 additions & 0 deletions omines/antispam-bundle/0.1/config/packages/antispam.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#
# 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? 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
8 changes: 8 additions & 0 deletions omines/antispam-bundle/0.1/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"bundles": {
"Omines\\AntiSpamBundle\\AntiSpamBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
}
}

0 comments on commit b2fa8c9

Please sign in to comment.