[フォーム] スパムフィルタリング機能を追加しました #2349
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
概要
フォームプラグインにスパムフィルタリング機能を追加しました。
背景・目的
フォームへのスパム投稿を防止するため、特定のメールアドレス・ドメイン・IPアドレスからの投稿をブロックする機能が必要でした。
reCAPTCHA等の自動対策をすり抜けるスパム投稿に対して、管理者が手動でブロック設定できる手段を提供します。
変更内容
1. スパム管理(管理画面)
2. フォームプラグイン - スパムフィルタリング設定
3. フォームプラグイン - 登録一覧
ブロック種別
※ メールアドレス・ドメインはフォームに「メールアドレス」型項目がある場合に有効です。
レビュー完了希望日
急ぎません
関連Pull requests/Issues
参考
なし
DB変更の有無
有り
追加テーブル
spam_lists: スパムリスト管理テーブル追加カラム
forms.use_spam_filter_flag: スパムフィルタリング使用フラグforms.spam_filter_message: スパムブロック時のメッセージforms_inputs.ip_address: 投稿者のIPアドレスチェックリスト