This can be done when a page is processing (server-side), or even within the database itself.
Good request for ASP, .NET & Coldfusion languages. An extension would be nice, but I also think this should be a tutorial request. :) (There's an premium article for PHP that has this here @ DMXzone)
Actually you don't need anything more than notepad. Use ".htaccess" to control who/what and ".htpasswd" to store users and their encrypted passwords. It's quick and painless:
There are many sites out there that will generate an encrypted password for you, based on a username and password that you enter. Here's just one of them: http://www.flash.net/cgi-bin/pw.pl All you need to do after that is put the info that the generator displays (verbatim) in a notepad file and save it as ".htpasswd" (without the quotes). Note the file convention -- there is nothing before the "dot" - you'll need to selct "save as", then "all files" to get notepad to do this.
There is no shortage of tutorials and examples out there for writing the .htaccess file itself - too many to pick just one. Just Google it...
After that, simply upload the files into the directory you want to protect.
-- The .htpasswd file can be anywhere you like as you'll declare where to find it in the .htaccess file; the .htaccess file must be at the top level of the directory you want to protect.
--> These meant meant to protect directories. If you want to protect just a single page, use asp, php, cfm, etc...
Comments
server-side & database-side
ssss
ssss
444
.htaccess
Actually you don't need anything more than notepad. Use ".htaccess" to control who/what and ".htpasswd" to store users and their encrypted passwords. It's quick and painless:
There are many sites out there that will generate an encrypted password for you, based on a username and password that you enter. Here's just one of them: http://www.flash.net/cgi-bin/pw.pl All you need to do after that is put the info that the generator displays (verbatim) in a notepad file and save it as ".htpasswd" (without the quotes). Note the file convention -- there is nothing before the "dot" - you'll need to selct "save as", then "all files" to get notepad to do this.
There is no shortage of tutorials and examples out there for writing the .htaccess file itself - too many to pick just one. Just Google it...
After that, simply upload the files into the directory you want to protect.
-- The .htpasswd file can be anywhere you like as you'll declare where to find it in the .htaccess file; the .htaccess file must be at the top level of the directory you want to protect.
--> These meant meant to protect directories. If you want to protect just a single page, use asp, php, cfm, etc...
You must me logged in to write a comment.