<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>

CC BY-SA 4.0
2022-12-02T16:15:48.687Z
2022-12-02T16:15:48.687Z
MoritzLost
<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>

<control-panel><security>
Craft 3 CP restriction
# 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.


---

