Descripcion:Este codigo en ASP protegue una pagina con un pass
Lenguaje: ASP
Copiar los codigos y pegar
<% '*** pass.asp '*** Setting this to true allows '*** us to use the End object later '*** in the script. Response.Buffer = True '*** Define your variables Dim Password '*** Set your desired password. Password = "tallerdejava" '*** Check to see if they just entered '*** the password in the form, and if '*** it's correct, assign it to the '*** session variable so that it stays '*** in memory from page to page. If Request.Form("pass") = Password Then Session("pass") = Request.Form("pass") End If '*** Check to see if the session '*** variable is the correct password. '*** If not, display the log in form '*** and don't load the rest of the page. If Session("pass") <> Password Then '*** HTML for the log in form %> Invalid Password <% '*** Set the form action to call the '*** same url that was being accessed. %> " method="post"> Password: <% '*** Stop processing the script and '*** just show the log in form HTML. Response.End End If %>
Cambiar donde pone "taller de Java" por el pass que deseis