MediaWiki で reCAPTCHA を使用する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
重要: reCAPTCHA API のバージョン 1.0 のサポートは終了しました。バージョン 2.0 にアップグレードしてください。詳細
reCAPTCHA MediaWiki プラグインは、CAPTCHA を使用してスパムを防止します。
MediaWiki に reCAPTCHA を追加する方法は次のとおりです。
zip ファイルをダウンロードします(ただし、
MediaWiki 1.8 以降でのみ動作します)。
MediaWiki 拡張機能を解凍します。
cd /path/to/mediawiki/extensions/
# * gets whatever version you downloaded
unzip ~/recaptcha-mediawiki-*.zip
# move the package to a standardized directory.
mv recaptcha-mediawiki-* recaptcha
MediaWiki の LocalSettings.php に次の行を追加します。
require_once( "$IP/extensions/recaptcha/ReCaptcha.php" );
// Sign up for these at https://www.google.com/recaptcha/admin#createsite
$recaptcha_public_key = '';
$recaptcha_private_key = '';
LocalSettings.php に公開鍵と秘密鍵を入力します。(まだ reCAPTCHA に登録していない場合は、reCAPTCHA にご登録ください)
こちらをご覧ください)。
これで、今度はキャプチャが表示されているはずです。
-
CAPTCHA はいつ表示されますか?調整方法
-
デフォルトでは、CAPTCHA は次のイベントでトリガーされます。
- 新規ユーザー登録
- 新しい外部リンクを含む匿名の編集内容
- ブルート フォース パスワード クラッキング
これらの設定は LocalSettings.php で調整できます。利用可能なオプションについては、ConfirmEdit.php をご覧ください。
-
reCAPTCHA をアンインストールするにはどうすればよいですか?
-
LocalSettings.php に追加した行を削除します。また、
拡張機能ディレクトリで作成したフォルダを削除します。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-09-09 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2024-09-09 UTC。"],[[["reCAPTCHA Version 1.0 is no longer supported; users must upgrade to Version 2.0."],["This reCAPTCHA MediaWiki plugin helps prevent spam by requiring users to solve a CAPTCHA."],["To install the plugin, download the zip file, unzip it in the extensions directory, add the required lines to LocalSettings.php with your reCAPTCHA keys, and you're set."],["CAPTCHAs are typically displayed for new user registration, anonymous edits with external links, and brute-force password attempts, but these settings can be adjusted."],["Uninstalling the plugin involves simply removing the added line from LocalSettings.php and deleting the extension folder."]]],["The reCAPTCHA MediaWiki plugin prevents spam using CAPTCHAs. To install, download the plugin, unzip it into the MediaWiki extensions directory, and add a `require_once` line to `LocalSettings.php`. You must also sign up for reCAPTCHA keys and input them in `LocalSettings.php`. CAPTCHAs are shown during new user registration, anonymous edits with external links, and brute-force password attempts. Uninstall by removing the added line from `LocalSettings.php` and deleting the plugin folder. ReCaptcha API Version 1 is no longer supported.\n"]]