Configure Basic Authentication in Apache Web Server. nice features like SSL Configuration, Website Authentication and so on.
Read this post on itsmarttricks.com