I have found that password protection with .htaccess & .htpasswd files is the only way to protect any WordPress file.
I wanted to make few of my media files accessible by specific username and their password. To do this I did not find any specific WordPress plugin.
I am thinking to design a WordPress plugin to password protect any media file in the following way:
- When user go to 'Media' and opens a file, then there will a option to protect the file
- On clicking I will ask username and password to protect file and my plugin script will make the respective entries in .htaccess & .htpasswd files
I want to know, should I go for this task of new plugin or do you already know any other plugin with this functionality.