Zend certified PHP/Magento developer

How to secure magento store with password protected with htacess?

My site is running on the server .I want to make it password protected by using htacess but i am confused about the htacess file location