what is a password protected url and what does it do?
what is a password protected url and what does it do?
It is an URL that will popup a password form to ask for your password when you try to visit the site.
Yup, and it keeps you from visiting that page unless you know the password. Can be done with php, java, javascript, vbscript, cgi/perl, or asp.
or the well known
.htaccess files
combined with some passwd file with MD5 encrypted paswords
it should be noted that client side pwds are not secure...javascript pwd can offer a minimal set of protections but you really need server sided validation for real pwd protection....
i have seen a lot of "password protected" sites which use javascript and all they require to defeat them is view source and a wee bit of messing about...
one of the things i love about coldfusion is the relative simplicity of of password protecting your site...
it uses what they call the web application framework which consists of one file, called application.cfm which is read with every coldfusion page request (any file with a cfm extension) this makes it so easy to set up some code which handles page validation for every page you want protected..
<cfif application.isvalidated eq true>
Come on in!!!
<cfelse>
go away!
</cfif>
that's all it takes...
you can also set different access levels
<cfif application.isvalidated eq true and application.accesslvl=1>
Come on in to level one!!!
<cfelseif application.isvalidated eq true and application.accesslvl=2>
You get to see level 2 !!!
<cfelse>
go away!
</cfif>
simple good...
thanx a lot guys