Kindergarten registration Website The same account limit multi-person login solution

Source: Internet
Author: User

To start the kindergarten registration, this year's registration site has been revised restrictions, need to use the child ID number of real-name registration, and then only allow one person login registration, if the same account has other people logged in, it will automatically log off the first person to log in. So it is not possible to share the login account to other people to achieve multi-person registration. To solve this problem, we have the following technical solutions. The technical principle is to log into the registration website on the main operator's computer, and then share the login authentication Cookie,sessionid to other operators, modify the cookie information of the HTTP protocol to deceive the server, and pass the test. The detailed configuration process for other operators begins below.

1. Download the Web Development debugging tool Fiddler

The browser opens the Http://www.telerik.com/download/fiddler page for download and may require the. NET runtime environment to be installed according to PC conditions

2. Installation Tools

After the download is complete, start the installation process

3. Launch tool

Start menu to find the installed software, click Start

The first run may have the following configuration confirmation box, select "No" to close it.

The way it works.

8. Start the Configuration tool

Before starting the configuration tool, it is recommended to close all browser windows, including Ie,firefox,chrome and other browsers

Configure the Web filter first to avoid displaying too much communication information. Specific configuration information see the following picture text description

Next important configuration steps, custom filter program code settings

Choose the rules of the menu---Customize rules .... Menu

Select No no install

will automatically open the program code file with Notepad, click on the Edit menu to find, enter the Onbeforerequest keyword to find

In the found position, be sure to note the location in the static function Onbeforerequest (osession:session) {This line returns to the new row. Paste the following code

         if  (Osession.hostnameis ("Www.hdkindergarten.net"))  {            if ( OSession.oRequest.headers.ExistsAndContains ("Cookies", "asp.net_sessionid="))  {                 osession.orequest.headers.remove (" Cookie ");            } else {                 // Note that the following two lines need to be replaced before the official registration of the code sent to everyone                  var sessionId:String =  "ASP.NET_SESSIONID=QYZSAPJUKJ4NFZ1OFSZPC2PCH";                 var appcookie:string  =  ". Aspnet.applicationcookie=qoo4pbnj4osqn3on7zso3pgh1jjbbqfqhlQto8hy_y8d0_jjzjjb_ Nusmawkimprfddqlar4ywxsx3jxw1c8hz-yzkkjfgmzbyuyilou3botericaxl6ejna5kqpgjjqarw5dz051zv8qkm21quj6chbq-hobd14qblo5qd _mw3m_6fiqv_vdp_fkwc2ixubrde6vtpg712smotyjq92_rf92v9ahrj-a_ Tul1-snctmxwvcm7eu3bt-zwnax6hpbl3qrysy9dt6sjxaqrjck5mfarr4pp1cmyzt-6w9ikqzcaaeoxnxgag56estap6hocghxizwfpad7n_ 5jlanse707b8ayuyoxugk20glktug7ef3vbjpz0vdtcouo5rvpg2ojxz5b_rhta_gzgg3l0ymywp6gccbmdfjxz5_6nd-t8qbdjvuu_ 1y-fwr1l8lbxk5db4osmohpkqdjeopgynfwgsi ";                 //Note that the above two lines need to be replaced before the official registration of the code sent to everyone                  if (!osession.orequest.headers.exists ("Cookie"))  {                      osession.orequest.headers.add ("Cookie", sessionid +  "; "  + appcookie);                 } else {                     var requestCookie:String =  OSession.oRequest.headers.AllValues ("Cookie");                     if (OSession.oRequest.headers.ExistsAndContains (" Cookie ",". Aspnet.applicationcookie= "))  {                         osession.orequest.headers.remove (" Cookie ");                         osession.orequest.headers.add ("Cookie",  sessionId +   "; "  + requestcookie);                     }                     else {                          OSession.oRequest.headers.Remove ("Cookie");                         osession.orequest.headers.add (" Cookie ", sessionid + ";  " + appCookie + ";  " +  Requestcookie);                     }                 }            }         }

Copy and paste after the code to save, then note that the two lines of code variables, need to be formally registered half an hour before the registration of the authentication information sent to everyone, and then everyone the same process, open the file to replace the selected two lines of code, be sure to pay attention to the code location.

Save the file, Notepad can be closed, or can not be closed, if the code has errors, the corresponding Fiddler tool will pop up the error message, if not pop-up on the code without error

At this point, the configuration is complete

5. Open a browser to visit the registration site

After the above configuration, the new open browser access to the registration site, normal words will be shown to have been authenticated, such as, you can see the user information.

Note Here, do not click the logout button, because everyone shared a login session, a logoff is all logged off, and all the authentication authorization information all expire.

The Fiddler tool may pop up the following warning box during use, removing the option below to close the window.

Close all windows when the operation is complete, and never click the Logout button.

The correct login authentication information will be distributed to everyone by QQ half an hour before registration.

Kindergarten registration Website The same account limit multi-person login solution

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.