Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPBカップ
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

WordPressセキュリティのヒント:Google Authenticator 2段階認証を追加する

編集メモ: WPBeginner のパートナーリンクから手数料を得ています。手数料は編集者の意見や評価に影響を与えません。編集プロセスについて詳しく知る。

WordPress サイトに Google Authenticator 2 段階認証を追加しますか?

ハッカーや不正ユーザーを防ぐには、パスワードだけでは不十分です。Google Authenticator 2段階認証を使用することで、サイトのセキュリティをさらに高めることができます。

この投稿では、Google Authenticatorアプリを使用してWordPressサイトに2段階認証を追加する方法を紹介します。

wordpress-security-tip_-add-google-authenticator-2-step-verification-in-post

Google Authenticatorアプリとは?なぜWordPressサイトに必要なのか?

Google Authenticatorアプリは、サードパーティのアプリやWordPressのようなサイトにログインするたびに、2層目の認証を追加するモバイルアプリケーションです。

残念ながら、パスワードは時としてクラックされることがあります。多数のサイトで同じパスワードを使用している場合、1つのサイトでセキュリティが漏れると、他のアカウントも危険にさらされる。多くの場合、人々は怠惰であり、主要サイトのセキュリティ侵害に関するメールを受け取った後でもパスワードを変更しない。

2段階認証はそのためのソリューションです。ハッカーがWordPressのユーザー名とパスワードを知っていたとしても、時間制限のあるランダムなセキュリティコード(Google Authenticatorが提供)を持っていない限り、WordPressサイトにアクセスすることはできません。

あなたのブログはモバイル端末に直接接続されているため、各ログインに固有のコードを取得できるのはあなただけです。セキュリティのため、コードは短時間で失効します。

Google Authenticatorアプリは、様々なオンラインアカウントやサービスに2要素認証(2FA)を提供するモバイルアプリケーションの一例に過ぎない。

ジェネレータは、アカウントにログ記録する際の認証の第2要素として機能する、時間ベースのワンタイムパスワード(TOTP)を生成する。

WordPressのセキュリティの重要性についてまだ納得していないのであれば、Wired.comのある投稿者のデジタルライフがどのように破壊されたかを見るべきだろう。

その話を読んでから、私たちはGoogleアカウントやこの機能を提供している他のほとんどのサービスの2段階認証に飛びついた。もしあなたが私たちと同じようにセキュリティに敏感で、自分のブログを大切にしているのであれば、WordPressのセキュリティを向上させるためにこのヒントに従うべきだ。

注: Google Authenticator は、iOS、Android、Windows Phone、webOS、PalmOS、BlackBerry 端末でのみ機能します。つまり、サイトにログインするにはスマートフォンが必要です。

セキュリティをさらに向上させるために、他の方法にも目を向けることをお勧めします。例えば、1Passwordのようなソフトウェアを使えば、パスワードを一元管理し、潜在的なハッカーに耐えられるだけの強度を確保することができます。

それでは、WordPress サイトに Google Authenticator 2 段階認証を追加する方法のチュートリアルに入りましょう。

WordPressにGoogle認証機能を追加する方法

最初に行う必要があるのは、Google Authenticatorアプリを携帯電話にインストールすることです。このチュートリアルではiOSの用語を使用しますが、他の端末でも同様の手順を実行できます。

ステップ 1: Google 認証アプリを端末にインストールする。

App Storeにアクセスし、「Google Authenticator」を検索し、アプリケーションの「インストール」をクリックします。

google authenticator app

さて、WordPressダッシュボードに戻りましょう。

ステップ2: MiniOrangeのGoogle Authenticatorプラグインをインストールする。

MiniOrangeのGoogle Authenticatorプラグインをインストールして有効化してください。詳しくはWordPressプラグインのインストール方法をご覧ください。

MiniOranges Google Authenticator plugin

これは、不正アクセスからサイトを保護するための無料の WordPress プラグインです。WordPress にログインするたびに、Google Authenticator アプリからワンタイムパスコードの入力を求められ、本人確認が行われます。

プラグインを有効化すると、セットアップウィザードが表示されます。手順に従って、WordPress で Google Authenticator 2 要素認証を設定します。

ステップ3:セットアップウィザードの完了

さっそく始めよう!」ボタンをクリックしてください。

Getting starting with two factor authentication

次に、初回ログイン後に2FAを設定するか、プラグインダッシュボード内で設定するかを尋ねられます。どちらの方法でも構いません。

セットアップを続ける」をクリックする。

continue setup 2FA

次のステップは、2FAを適用するユーザーを選択することです。最大限のセキュリティのためにすべてのユーザーを選択することも、特定のユーザー権限グループにのみ適用させることもできます。

そして「セットアップを続ける」を押す。

2FA user roles

最後に、2FAを直ちに直接適用するか、ユーザーに猶予期間を与えるかを尋ねられる。

ユーザーに猶予期間を与える場合は、その期間を時間単位と日単位で選択できます。それが完了したら、「すべて完了」をクリックする。

2FA grace period

これでセットアップ・プロセスが完了したので、今すぐ自分のために2FAをセットアップするか、後でセットアップするかを決めることができる。

自分用に2FAを設定する」ボタンを押してください。

configure 2FA yourself

ここから、WordPressサイトに追加したい2要素認証の方法を入力するよう求められます。

このチュートリアルでは、「Google/Microsoft/Authy Authenticator」を選択する。そして、「Save & Continue」ボタンを押す。

select authentication method

次に、画面上のバーコードをスキャンするよう求められます。つまり、スマホでGoogle Authenticatorアプリを起動し、表示されたバーコードをスキャンする必要があります。

モバイル端末の Google 認証機能アプリで、下部にある「+」アイコンを押し、「QR コードをスキャン」を選択します。次に、携帯電話のカメラをコンピューターの画面に向け、バーコードをスキャンします。

scan qr code for google authenticator

ここから、ワンタイムパスコード(OTP)が端末に表示されます。

それをコンピューターでステップ2に入力する。そこから「Save & Continue」をクリックします。

configure google authenticator

これで、2要素認証の設定に成功したというメッセージが表示されるはずです。

高度な設定』を選択するだけです。

advance settings

ステップ4:セキュリティの質問を追加する

Google Authenticator 2ファクタ認証を追加するだけでなく、セキュリティの質問も追加したいでしょう。

Google Authenticatorアプリにアクセスできない場合でも、自分で設定したセキュリティ質問に答えれば、WordPressサイトにログインできます。

WordPressダッシュボードのMini Orange 2-Factor ” Two Factorページにアクセスします。そして、「Setup 2FA For Me」タブで「Security Questions」メソッドを見つけ、「Reconfigure」をクリックします。

Eメール認証、OTP over SMS、OTP over Eメール、OTP over Telegram、さらにはDuo Authenticatorなど、他のタイプの2要素認証方法も設定できることを覚えておいてください。

reconfigure security questions

次に、セキュリティに関する質問を3つまで選択できます。そのうち2つはドロップダウンメニューから選択でき、3つ目は自分で考えたカスタマイザー質問になります。

そして、それぞれの答えを入力し、「保存」ボタンを押す。

set security questions

ステップ5:自分で試す

すべてがセットアップされたら、自分でテストすることができる。

WordPressダッシュボードからログアウトし、再度ログインしてみてください。

WordPress login page

セキュリティに関する質問に答えるか、Google Authenticator を使用してワンタイムパスコードを入力するページが表示されます。

Google Authenticator」オプションを設定します。

2 factor authentication method

この画面で、Google Authenticator アプリから OTP を入力するよう求められます。

コードタイプを入力し、’Validate’をクリックする。

validate otp

これで、いつものようにWordPressの管理ダッシュボードに戻ります。

最後に、Googleアカウントの2段階認証をオンにすることをお勧めします。このチュートリアルにあるように、Google Authenticatorで設定することもできます。

この投稿が、WordPress サイトに Google Authenticator 2 段階認証を追加する際にお役に立てば幸いです。また、WordPress の最も一般的なエラーとその修正方法に関する投稿や、WordPress の速度とパフォーマンスを向上させる究極のガイドもご覧ください。

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

情報開示 私たちのコンテンツは読者支援型です。これは、あなたが私たちのリンクの一部をクリックした場合、私たちはコミッションを得ることができることを意味します。 WPBeginnerの資金源 をご覧ください。3$編集プロセスをご覧ください。

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

究極のWordPressツールキット

ツールキットへの無料アクセス - すべてのプロフェッショナルが持つべきWordPress関連製品とリソースのコレクション!

Reader Interactions

57件のコメント返信を残す

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. David says

    I just tried this and it locked me out of my website. The codes weren’t working. How can I remove this authenticator and get my site back. Pls help

  3. yasir khan saqlaini says

    i am using this feature but i want to know how will i get google authenticator code while login wp dashbord.

  4. Danny D says

    I’m surprised that nobody has mentioned Clef. This is the best 2-factor authentication for WordPress (and a lot of other websites as well). No passwords involved after initial setup. They have iOS and Android apps as well as chrome extensions to help with the setup. Works like a charm for me.

  5. rohit says

    Message To Syed Balkhi,

    Well Fake GURUs Try to hack my website 100 Times a day Finally I have started using Google Authenticator and I change my Password every 10 days. I appreciate Your skills Thanks a lot.

  6. Kavitha Krishnan says

    Hi, I have uninstalled the Google app by mistake now i am unable to login to WP. i requested the account recovery also nothing worked. Is there any solution for my issue.

  7. Lorena Dennison says

    I have my wordpress blog set up to receive a SMS code to log in… well my cell phone is shut off and can’t get the SMS Code…. so how can I log in and take that SMS off my blog?

  8. Kamran Abdul Aziz says

    Aha, Google Authenticator & Authy they always works for me,
    However is there any option where we can force users to use 2 Step verification?

    Am not allowing my users to access the Backend, Their profile & everything is limited to front end only.

    I don’t want them to access their backend & Setup 2 step.

    Any solutions?

  9. Brenda says

    I installed the two-step google authenticator, both the app and the plugin. I updated the app and now all of the sudden I can’t generate a verification code, and therefore have not been able to login to my WordPress. I have no idea what “login using FTP” or who my webmaster is. I signed up for a free worpress account because I wanted to start a little blog and now it appears to me I have to be a computer wizard to do something so basic, which is login!! Can you please help? And explain it to me like I’m a third grader. I don’t have the tech savviness you all do.

    Thank you in advance

    • WPBeginner Support says

      You mentioned that you have a free WordPress account. Does your blog address has wordpress.com in it? If that’s the case, then this tutorial is not for you. You need to contact WordPress.com support for assistance.

      管理者

  10. Zulfa Permata Suri says

    I have set up two-step authentication for my wordpress blog. Suddenly I cant log-in it said the authentication code that i type is invalid and now I am locked out of my wordpress account.
    Help me please, I want to use my wordpress but I cant log-in T.T

  11. Cara Isaacs says

    Hey,

    I recently set up two-step authentication for my wordpress blog. Downloaded the google app and it all worked fine with log-in. Then changed the name of my blog and accidentally deleted the google authenticator app and now I am locked out of my wordpress account as it asks for the code yet I cannot generate a code because I can’t access my account to get the key.

    I hope you can help.. PLEASE!

  12. Everett Patterson says

    Well I did some research and found that the hosting time may be different than the phone time and may cause issues with the codes.

    I was able to log in to my Cpanel and delete the plugin. I still want to use it though so I added it back in and used the relaxed mode this time. Seems to be working now.

    Thanks for this post, very helpful.

  13. Everett Patterson says

    Uh Oh. I locked myself out of my site.

    Here’s what I did:

    Added the plugin to my blog
    Activated it, but didn’t check the “Active” box
    Added authenticator to my android
    Scanned the QR code
    Checked “Active” box
    Signed out

    My phone gives me a new code every minute, but none of them work. What now?

    • Austin says

      I did this too…. I logged into my host via FTP and deleted the Google Authenticator plugin.

      Then I went through the process again and the plugin/app combo worked like a charm!

      Hope you’re able to get back into your site (if you haven’t already).

  14. Maria Muir says

    I installed the plugin, followed the simple steps and have now been locked out of my site. I also have the failed attempt log in plugin which has blocked me for 3 failed attempts so now have to wait. I did put in the correct details and authentication code, I tripled checked the installation and settings, all are correct. So why can’t I log back in?

  15. Chris Burbridge says

    It does concern me that when you install the plugin, you have to activate it user by user. That doesn’t make sense to me. Wouldn’t an administrator want to have it work for all users, otherwise there are holes in the net?

    I have been trying this one, which is really great — http://wordpress.org/extend/plugins/duo-wordpress/ — there’s a free option, and it works similarly. It is very slick, with a smart phone.

    • Editorial Staff says

      The reason why Google Authenticator requires each user to enable it themselves is because they have to connect their device with it. Google Authenticator is a great solution if you don’t like paying for a service. We are using it on our site. All we did was send an email to all users and ask them to turn it on.

      Yes it requires a little bit of extra work, but it is surely worth it for a small company like ours. If you have hundreds of people in your team, then it would be worth to automate it with a service like the one you linked.

      管理者

  16. Michael says

    This works great with Limit Login Attempts plug in. Great security feature if your blog does not have SSL capabilities.

  17. yatin says

    i love your site :) very helpful

    what if Google authenticator app got uninstalled by mistake !!!!

    after that how can i login in my wordpress site ?

  18. Umer Rock says

    Buy Syed bro it is not linked to google account ? then why you used google athenticator word , i think it is kind of 2 step verification system only,

    • Editorial Staff says

      If you read the post carefully, you will see that the app this plugin uses is called Google Authenticator. Without using that application this would not work. If you actually follow the tutorial and download the application, then you will see that application is made by Google Inc.

      管理者

  19. Hadley says

    I was able to successfully set up the Google Authenticator app for myself as an admin on my site, but was not able to set it up successfully for an editor on the same site. On the other user’s profile settings under Google Authenticator, the only options are to hide the Authenticator settings or make the user active with Google Authenticator. There aren’t the same options to type in a site description or view a secret code. After installing the app successfully to the other user’s phone, she was not able to sign in to the site and I’m wondering if this is due to the profile settings. Any advice?

  20. Ahmad Awais says

    Putting our login authentication in hands of a 3rd party plugin?
    Not more than 5k Downloads! What about its authenticity? Are you using it yourself #justcurious.
    I am happy with .htpaswrd file.

    Should we trust this code?

    Except this a nice plugin for sure.

    • Editorial Staff says

      The plugin has low downloads because not many people have jumped on board with this 2-step verification method. If you are happy with .htpaswd, then good for you. Yes, we are using it on our site along with all the other security measures.

      管理者

  21. Dilawer Pirzada says

    Buzz! After my great efforts on securing WordPress blog from spammers and hackers, I myself today found a great plugin to stop hackers!

    Thanks for the plugin!

  22. Santel Phin says

    Hi,

    I have completed the setup and it works great. But do I have possibility to choose how to the verification code.

    I did the same setup for my Google account, but it send via SMS in stead. And I do prefer this mode as well if it is possible.

    But I don’t see any setting to chose send via SMS. Hope you can give me an idea if it is possible or not.

    Thanks

    • Editorial Staff says

      No the SMS option is not available. Mainly because for that you need a sending service which blogs are not equipped with. There is another plugin called “2-step verification” that has the option to email the code. But no SMS.

      管理者

  23. Geoffrey Gordon says

    Thanks Syed

    WordPress security has always been a big issue in general, so the more educated people are regarding WordPress security the better. This is especially important as people see WordPress as a quick way to get a website up and running. Then one day without warning BANG their website is down by some hacker.

    Busy checking out the Google authentication plugin for WordPress, looks good. I have ask though with all the security plugin’s installed on ones blog plus other plugins it tends to slow down the website. Sometimes its better to code what a plugin can do straight into your blog, rather than keep adding another plugin.

返信を残す

コメントありがとうございます。すべてのコメントは私たちのコメントポリシーに従ってモデレートされ、あなたのメールアドレスが公開されることはありませんのでご留意ください。名前欄にキーワードを使用しないでください。個人的で有意義な会話をしましょう。