Plugin: Login To Protect Whole Domain

Is it possible to password protect entire domain and not just a single page? I’ve read the login plugin docs, but it only shows to protect a single page.

The Private Grav Plugin can protect a complete site.

It might be better to use Basic Auth via .htaccess to do this.