wp-require-login

Plugin redirects users to the login page whenever they try to visit any page on the website.

https://github.com/richard4339/wp-require-login

Screenshot from Control Panel

After installation, navigate to Settings > Require Login, and check the checkbox. You should now require authentication to access any portion of WordPress.