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?

1 Answer 1


There is a Two-Factor Authentication plugin 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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.