What is the best way to prevent visitors from accessing a website in development stage? Something in the lines of a 'whitelist'.
In my particular case I am using WordPress as the platform for creating this website. I searched for plugins but didn't find anything specific for it. I have a local server to develop the website however, there are a few functionalities that I need it to be on the live server.
Using basic authentication with htpasswd (assuming you are in an Apache server).
Do it in 2 minutes: