I am now studying some security part of web development.
The book I am reading now tells me that I need to set some security process in order to protect files in a particular folder and I think it's a good idea.
The thing is the book doesn't teach me how to set that process.
If I have admin folder under the root folder, then how can I make the admin folder ask username and password when it is asked to show its content? Please teach me the commands for it!
image: http://ecsite2.yongsookim.com/images/qu.png
PS: I am using php on CentOS6.5 and should use command.