What's the best way to password protect my web pages? Should I use JavaScript, PHP or anything else? Which way is the easiest and which one is the most secure?
Anyone has any code examples?

Thanks
Mare