I need help making a login for a webpage... Kinda like router login

I am trying to figure out a way to put a username and password login on my website. I want it to show nothing of my website until the right username and password is entered; kinda like a router login.

Ps: I’m new to this forums thing. I don’t know if I put this in the right place.

Well, a login means you need to have usernames and password, it is very common to store these in a database. So you need a database + server side language to interact with the database. For which you have several options. This depends on the language you know, please provide more detail to the question