Introduction
You may have visited a web page that pops up a dialog box similar to this one:
If you don’t know the username and password to enter, then you can’t access the page or site – it’s “password protected”. It’s sometimes handy to be able to password protect your pages like this – for example:
- You’re building a new site, but you only want yourself (and maybe a select few) to be able to view the work-in-progress.
- You have an area of your site that you never want the general public to have access to – for example, your web stats or private pages.
- You have some paid (subscription) content on your site that only subscribers should be able to access.
Apache lets you password protect individual files, folders, or your entire site fairly easily. Read on to find out how it’s done.
[Read more…] about Password Protecting Your Pages with htaccess