Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 205
  • Last Modified:

Simple Password Prodection

Hi All

I'm expanding my website, and I want a restricted section just for customer.

All the customer would used the same username and password.

Is there a very simple way to implemented this?

I'm new to web design, and I know bit about HTML, but very little about PHP or ASP.



1 Solution
Please share the details of your Hosting environment.. ie. are you using IIS or Apache...

If you are using Apache you could use .htaccess file to protect access to specific content.

There are lot of tutorials on internet on how to implement .htaccess, I am sharing two of them:

1. http://www.sitedeveloper.ws/tutorials/htaccess.htm
2. http://www.freewebmasterhelp.com/tutorials/htaccess

There is also a beautiful tutorial on implementing similar functionality using web.config along with an example @ http://geekswithblogs.net/philsando/archive/2010/02/27/web.config-file-to-password-protect-a-directory-in-any-asp.net.aspx

Hope this helps!


Featured Post

Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now