Secure start page with password (user name only as a option)

Hi,

my enviroment is a Debian 10 Buster with nginx.

Is it possible to secure the start page with a password (user name only as a option)?

As protection from DDOS attack, or if I want only choosen guests.

Regards