Answers.Body: <p>There is a <a href="https://plugins.craftcms.com/two-factor-authentication" rel="nofollow noreferrer">Two-Factor Authentication plugin</a> available for Craft 3 and 4.
  According to the documentation, this plugin can prevent users from accessing the Control Panel without having completed 2FA, so it seems like it's exactly what you're looking for.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-12-02T16:15:48.687Z
Answers.LastActivityDate: 2022-12-02T16:15:48.687Z
Answers.UserDisplayName: MoritzLost
Body: <p>How can I add an extra layer of authentication to cp in craft3? The client wants to add 2FA - I have been through the plugins with simpler restrictions, but these appear only for the front end. 2FA seems more like a Craft 4 feature to come right now.</p>
  <p>Can <code>htpasswd</code> be used simply in a folder for admin?</p>
  
Tags: <control-panel><security>
Title: Craft 3 CP restriction
ThreadText: # Craft 3 CP restriction
  
  (Asked by: username_0 on 2022-12-02)
  
  How can I add an extra layer of authentication to cp in craft3? The client wants to add 2FA - I have been through the plugins with simpler restrictions, but these appear only for the front end. 2FA seems more like a Craft 4 feature to come right now.
  
  Can `htpasswd` be used simply in a folder for admin?
  
  **Tags:** control-panel, security
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-12-02. Score: 2
  
  There is a [Two-Factor Authentication plugin](https://plugins.craftcms.com/two-factor-authentication) available for Craft 3 and 4.
  According to the documentation, this plugin can prevent users from accessing the Control Panel without having completed 2FA, so it seems like it's exactly what you're looking for.
  
  
  ---
  
  