投稿者 Chris Reynolds
It can happen at any time. You’ve opened your event for registrations and you are suddenly inundated by obviously fake users and incomplete transactions. Spam is everywhere (and we don’t mean the food). It’s in your inbox, it’s in your comments, and it’s in your events.
Where does it come from? A lot of spam — particularly the type of spam that fills up contact forms (and event registration forms) — comes from a specific kind of script designed to identify potential security holes in your site like this one. These types of applications are designed for admins to check their site before deploying it live, but in the wrong hands can be run on a site, or a series of sites, automatically, and — at the very least — inject huge dumps of worthless code into your database and — at worst — obtain database access and the ability to manipulate the data stored on your server. There are a few different ways you can protect yourself, your data and your event site against spam registrations.
最初のオプションは最善の方法で、最も推奨されます: Apache インストール時に mod_security モジュールを有効にします。 ほとんどのスパム登録は、フォームを探しているサイトをクロールし、リモートでデータを埋めるボットやスクリプトから行われます(例えば、以下のように)。 実際にあなたのサイトを訪れた人が行ったのではなく、実際にあなたのサイトにアクセスすることなくコードを実行しているマシンです)。 mod_security モジュールは、これらの種類のリモート送信からあなたのサイトを保護します。 もしサーバで Apache モジュールが有効または無効になっているかを設定する権限がない場合。 可能であればウェブホストに問い合わせることもできます 私の意見では。 これは、すべての Apache サーバー (および IIS および nginx (これもサポートしています) でデフォルトでオンにする必要があります。
mod_security を有効にすることが、環境では不可能である場合 — Apache の設定にアクセスできないか、ホストができないか、mod_security パッケージを有効またはインストールしたい場合のいずれかです。 reCAPTCHA を使用して、参加者が登録前に CAPTCHA フォームに記入する必要があります。 reCAPTCHA is part of an initiative to digitize books, newspapers and radio recordings. Every time you enter a response in a reCAPTCHA form, you are helping the software identify real words that a computer was unable to read. Since the words that appear in a reCAPTCHA form have already failed sophisticated OCR technologies to translate them into text, spam bots aren’t likely to be able to read it, either, so you’re protecting your forms when you require a CAPTCHA for verification. While this can be arguably somewhat more annoying to the user, it will thwart any bot attempt to fill the form with garbage. For more information about how reCAPTCHA works, check out the reCAPTCHA site.
イベントEspresso WP User Integration プラグインを使用して、すべてのイベントをメンバーのみにすることもでき、内蔵の WordPress ユーザー登録システムを使用してログインする必要があります。 Even if you do not have some form of human verification on your site’s registration process (this is not recommended, especially if you’re already getting hit by spam registrations), the additional step that a bot would need to go through of registering for a site, and then logging in before it is able to register for an event means that you are safeguarding your events against a potential attack by a script. reCAPTCHAを使用することでこの利点は、reCAPTCHAに加えて、読みにくいCAPTCHA画像を解読しようとするのではなく、管理者が定義した質問に答えることで、ユーザ登録がボットではないことを確認する必要があることです。
Event Espresso runs sanitization and data validation checks on all information that is stored in the database. This means that anything one of these scripts injects gets cleaned before being stored in the database, which, in turn, means that none of the data that gets dumped your system will be likely to cause any real damage to your site or expose any hidden passwords or personal information. However, dealing with a site that has been hit by thousands of fake user registrations can be tedious and time-consuming. Protect yourself, and your valuable time, by checking with your host about whether mod_security is enabled. If you are seeing registrations to your events that are obviously fake, take one of the precautions mentioned above and save yourself a lot of headache.
詳細については、 アンチスパムおよびreCAPTCHA のサポートドキュメントを参照してください。