【WordPress】Contact Form 7 でスパム対策を行う方法

【WordPress】Contact Form 7 でスパム対策を行う方法
【WordPress】Contact Form 7 でスパム対策を行う方法

Contact Form 7 で作成したお問い合わせフォームで、スパム対策を行う方法です。Akismet が有効になっていることが条件です。

Contact Form 7 の編集画面で、名前、メールアドレス、URL の欄にそれぞれ下記のようにオプションを追加します。

[text* your-name akismet:author]
[email* your-email akismet:author_email]
[text your-url akismet:author_url]

これで試しに、名前欄に viagra などと入力して送信しようとすると弾かれます。

こちらの関連記事もあわせてどうぞ!

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">