Sometimes it is necessary to restrict the access to a file or to a complete folder. Of cause you can use a .htaccess file or create every time again a small login page but .htaccess is not very flexible and user friendly and everytime a new login page is very time consuming.
Instead you can use “FileProtect”. It is that simple to implement: change the settings in the login.php to your need, copy 4 lines of code and upload the files. Try it – you won’t never use another way of protecting your files.