This is a webpage password protection code implemented by JS. You need to enter the password in the pop-up box before entering the webpage, but it is not very useful now. Generally, currently, this function is processed in the background. After the user enters the user name and password, it is handed over to the server for processing, and then the information is
Feature Description: Open a Web page, after 5 minutes without action, will lock the page, hide the content container, display a container to enter the password, enter the correct password to unlock. When locked, even if the user refreshes the
Some pages you may not want to let unrelated people see, such as admin pages. Through a form, a conversation (session) Change, a query statement and its three lines of code to achieve the password protection of the Web page. Susan
First, create a database table named Tbllogin, then create two fields (field names), one called "UserName", and the other is "
Now we create the query statement to verify that the content entered in the form is consistent with what is in the database.
UserName = Request.Form ("UserName")
Password = Request.Form ("Password")
' Grab the form contents
Set myconn=server.createobject ("ADODB. Connection ")
MyConn.Open "Your connection string here"
SQL = "SELECT * FROM Tbllogin"
Set RS = Myconn.execute (SQL)
If UserName = rs ("Use
Finally, add the following three lines of code to the front of the page you want to protect. Don't add it to the second page of the code.
If your page name is not main.asp, change the corresponding section in the above code to the name of the page you created.
If the v
(Spider fine translation)
Original English
Now we create the query statement to verify that the content entered in the form is consistent with what is in the database.
UserName = Request.Form ("UserName")
Password = Request.Form ("Password")
' Grab the form contents
Set myconn=server.createobject ("ADODB. Connection ")
MyConn.Open "Your connection string here"
SQL = "SELECT * FROM Tbllogin"
Set RS = Myconn.
Cause analysis: The main reason is that there are some content in the open Web page, there is a conflict with IE's security settings or with Third-party security software to protect IE, such as such prompts, such as the confirmation of access to the Web page is not a virus o
In many cases, we have to secure some Web pages. A typical example is the security of the foreground browsing page and the Background admin page. This is also one of the most used page security modes on the WEB. I also encountered this security issue in the development of a
When you make a Web page, if you open the preview locally, it appears: "To help protect security, Internet Explorer has restricted this web page from running a scripting Live ActiveX control that can access your computer." Please click here to get the option ...
"In Code
Method One:In the Local debugging HTML page, if it contains js or flash, ie will often prompt "ie has restricted this page run can access the computer script or ActiveX control ." While IE prevents local scripting from running for security reasons, it's true that, as a program developer, every time a point is allowed, it's very annoying, and it's starting to get rid of the hint.In IE option to turn over hal
session|web| page In many cases, we have to secure some Web pages. A typical example is the security of the foreground browsing page and the Background admin page. This is also one of the most used page security modes on the
In the process of developing the website sometimes we do not want to let the customer see the source code of the page, even the text content on the page does not want to be copied, let's look at how to protect the page contentPrevent viewing of page source code and copying t
Because the Web page already has an ActiveX control installed, verify that the control is running every time you open the page. That way every time a Web page appears. "To help protect security, Internet Explorer has restricted th
(); Intent.setaction (Intent.action_call); Intent.setdata (Uri.parse ("Tel:" + "123123")); StartActivity (Intent); }}, "Demo"); String Url=new string ("http://192.168.61.173:8080/myweb/zp.html"); Loading Web pages into Web controls weB.loadurl (URL); } }3, the page inside the button to use the hyperlink, the method i
Objective
I am surfing the internet in my home, often have some BBS password too lazy to remember, use IE's automatic password save function, this is convenient, but there is a trouble, once the machine is not, want to reinstall the operating system, these passwords can not be taken out, but also to reapply, good trouble! So I wrote a tool, You can get the password
(CAS) role. This feature creates a new Internet information Services (IIS) 7 module that detects expired passwords and redirects users to the new Change Password page. This feature is disabled by default. To enable the password reset feature, you must set the registry key.To enable the password reset feature
Log o
Http://www.mltang.com/article/840dbc68-7931-4b37-84cf-62cd89f7f31c.html
I want to implement the following functions:
Enter the user name and password to log on to the open a page,However, when I enter the same user name and password, a new page will not be created (because it has already been opened ).
Could you
"Summary" When the surfer wants to browse the Web page of the directory, the browser displays the "Please enter user name and password" window, requiring the user to enter a username and password, because the method of IIS authentication is combined with NT Server, as long as the user of NT Server, is the user of IIS,
Passwords are an essential tool in our life and work, but an unsafe password may cause unnecessary loss. As a web designer, if we can make a security assessment of the password entered by the user in the Web page and display the corresponding prompts, it will be helpful to s
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.