Sometimes you just don’t want everyone to have access to your Volumio interface. This very simple method will ask for a username/password:
Create a file in /var/www called login.php with
sudo nano /var/www/login.php
Insert the following text:
and save the file (Ctrl+X, Y, Enter)
Change the file /var/www/index.php
sudo nano /var/www/index.php
Change the following lines:
to:
The next time you start browsing to Volumio it will ask you for a username/password which in this case is music/player
(can be changed in the first line of the php code in login.php)