[go: up one dir, main page]

CN105141709A - Method and device for determining page jump in application program - Google Patents

Method and device for determining page jump in application program Download PDF

Info

Publication number
CN105141709A
CN105141709A CN201510441257.5A CN201510441257A CN105141709A CN 105141709 A CN105141709 A CN 105141709A CN 201510441257 A CN201510441257 A CN 201510441257A CN 105141709 A CN105141709 A CN 105141709A
Authority
CN
China
Prior art keywords
page
application program
response
request
page access
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510441257.5A
Other languages
Chinese (zh)
Other versions
CN105141709B (en
Inventor
吴张树
李永剑
彭力扬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510441257.5A priority Critical patent/CN105141709B/en
Publication of CN105141709A publication Critical patent/CN105141709A/en
Priority to PCT/CN2016/091539 priority patent/WO2017016458A1/en
Application granted granted Critical
Publication of CN105141709B publication Critical patent/CN105141709B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明公开了一种确定应用程序内页面跳转的方法及装置,涉及通信技术领域,所述方法包括:在应用程序基于用户输入的页面访问指令触发页面访问请求时,接收与页面访问请求对应的第一响应页面;通过调用签到函数来确定所述应用程序内第一响应页面是否发生跳转。本发明通过调用签到函数来确定应用程序内第一响应页面是否发生跳转,能够即时准确地确定所述第一响应页面是否发生跳转,提高了用户体验,并且保证了用户的信息安全及财产安全。

The invention discloses a method and device for determining page jumps in an application program, and relates to the field of communication technology. The method includes: when the application program triggers a page access request based on a page access instruction input by a user, receiving the page corresponding to the page access request the first response page; determine whether the first response page in the application jumps by calling the sign-in function. The present invention determines whether the first response page in the application program jumps by calling the sign-in function, can instantly and accurately determine whether the first response page jumps, improves user experience, and ensures user information security and property Safety.

Description

确定应用程序内页面跳转的方法及装置Method and device for determining page jump in application program

技术领域technical field

本发明涉及通信技术领域,特别涉及一种确定应用程序内页面跳转的方法及装置。The invention relates to the field of communication technologies, in particular to a method and device for determining page jumps in application programs.

背景技术Background technique

DNS(DomainNameSystem,域名系统),因特网上作为域名和IP地址相互映射的一个分布式数据库,能够使用户更方便的访问互联网,而不用去记住能够被机器直接读取的IP数串。DNS (Domain Name System, Domain Name System), a distributed database on the Internet as a mapping between domain names and IP addresses, enables users to access the Internet more conveniently, without having to remember IP numbers that can be directly read by machines.

用户通常需要通过运营商局域DNS服务器来实现页面访问,但现有技术中,由于运营商局域DNS服务器中的内容可能被篡改,又或是用户的路由器上DNS服务器地址被修改,可能导致正常访问页面跳转至其他页面,影响用户体验,也可能导致用户在正常访问页面时,被跳转至钓鱼网站或木马网站等欺诈网站,影响用户的信息安全及财产安全。Users usually need to access the page through the operator's local DNS server, but in the prior art, because the content in the operator's local DNS server may be tampered with, or the DNS server address on the user's router is modified, it may cause The normal access page jumps to other pages, which affects the user experience, and may also cause the user to be redirected to fraudulent websites such as phishing websites or Trojan horse websites when normally accessing the page, affecting the user's information security and property security.

发明内容Contents of the invention

鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的一种确定应用程序内页面跳转的方法及装置。In view of the above problems, the present invention is proposed to provide a method and device for determining page jumps in an application program to overcome the above problems or at least partially solve the above problems.

依据本发明的一个方面,提供了一种确定应用程序内页面跳转的方法,所述方法包括:According to one aspect of the present invention, a method for determining page jumps in an application program is provided, and the method includes:

在应用程序基于用户输入的页面访问指令触发页面访问请求时,接收与页面访问请求对应的第一响应页面;When the application program triggers the page access request based on the page access instruction input by the user, receive the first response page corresponding to the page access request;

通过调用签到函数来确定所述应用程序内第一响应页面是否发生跳转。It is determined whether the first response page in the application is redirected by calling the sign-in function.

可选地,所述通过调用签到函数来确定所述应用程序内的第一响应页面是否发生跳转之后,所述方法还包括:Optionally, after determining whether the first response page in the application is redirected by calling the sign-in function, the method further includes:

在不能调用所述应用程序内第一响应页面的签到函数时,认定所述应用程序内的第一响应页面发生跳转。When the sign-in function of the first response page in the application cannot be called, it is determined that the first response page in the application jumps.

可选地,所述认定所述应用程序内的第一响应页面发生跳转之后,所述方法还包括:Optionally, after it is determined that the first response page in the application is redirected, the method further includes:

通过加密协议重新发送页面访问请求,并接收与重新发送的页面访问请求对应的第二响应页面。Resend the page access request through an encryption protocol, and receive a second response page corresponding to the resent page access request.

可选地,所述接收与重新发送的页面访问请求对应的第二响应页面之后,所述方法还包括:Optionally, after receiving the second response page corresponding to the resent page access request, the method further includes:

在所述应用程序内的显示界面中展示所述第二响应页面。The second response page is displayed on a display interface within the application program.

可选地,所述认定所述应用程序内的第一响应页面发生跳转之后,所述方法还包括:Optionally, after it is determined that the first response page in the application is redirected, the method further includes:

通过所述加密协议发送后续的页面访问请求。Subsequent page access requests are sent through the encryption protocol.

可选地,所述通过所述加密协议发送后续的页面访问请求之后,所述方法还包括:Optionally, after sending the subsequent page access request through the encryption protocol, the method further includes:

判断是否达到预设时间,若否,则执行所述通过所述加密协议发送后续的页面访问请求的步骤。It is judged whether the preset time has been reached, and if not, the step of sending a subsequent page access request through the encryption protocol is executed.

可选地,所述通过所述加密协议发送后续的页面访问请求之后,所述方法还包括:Optionally, after sending the subsequent page access request through the encryption protocol, the method further includes:

判断本地连接的网络是否发生变化,若否,则执行所述通过所述加密协议发送后续的页面访问请求的步骤。Judging whether the locally connected network has changed, if not, performing the step of sending a subsequent page access request through the encryption protocol.

可选地,所述通过所述加密协议发送后续的页面访问请求之后,所述方法还包括:Optionally, after sending the subsequent page access request through the encryption protocol, the method further includes:

判断本地IP地址是否发生变化,若否,则执行所述通过所述加密协议发送后续的页面访问请求的步骤。Judging whether the local IP address has changed, if not, performing the step of sending a subsequent page access request through the encryption protocol.

可选地,所述在应用程序基于用户输入的页面访问指令触发页面访问请求时,接收与页面访问请求对应的第一响应页面之前,所述方法还包括:Optionally, when the application triggers the page access request based on the page access instruction input by the user, before receiving the first response page corresponding to the page access request, the method further includes:

接收用户输入的搜索词,根据所述搜索词查找与所述搜索词相关的网页信息,并将查找到的网页信息展示于所述应用程序内的显示界面中,接收用户在所述应用程序内的显示界面中输入的页面访问指令。Receive the search word input by the user, search for webpage information related to the search word according to the search word, and display the found webpage information on the display interface in the application program, and receive the user's search in the application program The page access instruction entered in the display interface of the .

可选地,所述在应用程序基于用户输入的页面访问指令触发页面访问请求时,接收与页面访问请求对应的第一响应页面之前,所述方法还包括:Optionally, when the application triggers the page access request based on the page access instruction input by the user, before receiving the first response page corresponding to the page access request, the method further includes:

基于用户输入的页面访问指令触发向第一DNS服务器发送域名解析请求,并接收第一DNS服务器返回的与待解析域名对应的第一IP地址;Based on the page access instruction input by the user, trigger sending a domain name resolution request to the first DNS server, and receive the first IP address corresponding to the domain name to be resolved returned by the first DNS server;

将所述域名解析请求发送至第二DNS服务器;sending the domain name resolution request to a second DNS server;

接收所述第二DNS服务器返回的与所述域名解析请求对应的第二IP地址;receiving a second IP address corresponding to the domain name resolution request returned by the second DNS server;

采用所述第二IP地址对所述第一IP地址进行校验;Verifying the first IP address by using the second IP address;

相应地,所述在应用程序基于用户输入的页面访问指令触发页面访问请求时,接收与页面访问请求对应的第一响应页面,进一步包括:Correspondingly, when the application triggers the page access request based on the page access instruction input by the user, receiving the first response page corresponding to the page access request further includes:

在应用程序基于用户输入的页面访问指令触发向校验后的第一IP地址发送页面访问请求时,接收与页面访问请求对应的第一响应页面。When the application triggers sending a page access request to the verified first IP address based on the page access instruction input by the user, a first response page corresponding to the page access request is received.

依据本发明的另一个方面,提供了一种确定应用程序内页面跳转的装置,所述装置包括:According to another aspect of the present invention, a device for determining page jumps in an application program is provided, and the device includes:

页面接收器,适于在应用程序基于用户输入的页面访问指令触发页面访问请求时,接收与页面访问请求对应的第一响应页面;The page receiver is adapted to receive the first response page corresponding to the page access request when the application program triggers the page access request based on the page access instruction input by the user;

跳转确定器,适于通过调用签到函数来确定所述应用程序内第一响应页面是否发生跳转。The jump determiner is adapted to determine whether a jump occurs to the first response page in the application program by calling the check-in function.

可选地,所述装置还包括:Optionally, the device also includes:

跳转认定器,适于在不能调用所述应用程序内第一响应页面的签到函数时,认定所述应用程序内的第一响应页面发生跳转。The jump determiner is adapted to determine that the first response page in the application has been redirected when the sign-in function of the first response page in the application cannot be called.

可选地,所述装置还包括:Optionally, the device also includes:

请求重发器,适于通过加密协议重新发送页面访问请求,并接收与重新发送的页面访问请求对应的第二响应页面。The request repeater is adapted to resend the page access request through an encryption protocol, and receive a second response page corresponding to the resent page access request.

可选地,所述装置还包括:Optionally, the device also includes:

页面展示器,适于在所述应用程序内的显示界面中展示所述第二响应页面。The page displayer is adapted to display the second response page on the display interface in the application program.

可选地,所述装置还包括:Optionally, the device also includes:

加密发送器,适于通过所述加密协议发送后续的页面访问请求。An encryption sender is adapted to send subsequent page access requests through the encryption protocol.

可选地,所述装置还包括:Optionally, the device also includes:

时间判断器,适于判断是否达到预设时间,若否,则调用所述加密发送器。The time judging device is suitable for judging whether the preset time has been reached, and if not, calling the encryption transmitter.

可选地,所述装置还包括:Optionally, the device also includes:

网络判断器,适于判断本地连接的网络是否发生变化,若否,则调用所述加密发送器。The network determiner is adapted to determine whether the locally connected network has changed, and if not, invoke the encrypted transmitter.

可选地,所述装置还包括:Optionally, the device also includes:

地址判断器,适于判断本地IP地址是否发生变化,若否,则调用所述加密发送器。The address determiner is adapted to determine whether the local IP address has changed, and if not, invoke the encryption transmitter.

可选地,所述装置还包括:Optionally, the device also includes:

指令接收器,适于接收用户输入的搜索词,根据所述搜索词查找与所述搜索词相关的网页信息,并将查找到的网页信息展示于所述应用程序内的显示界面中,接收用户在所述应用程序内的显示界面中输入的页面访问指令。The instruction receiver is adapted to receive the search word input by the user, search for webpage information related to the search word according to the search word, and display the found webpage information on the display interface in the application program, and receive the user's A page access instruction entered in a display interface within the application program.

可选地,所述方法还包括:Optionally, the method also includes:

指令触发器,适于基于用户输入的页面访问指令触发向第一DNS服务器发送域名解析请求,并接收第一DNS服务器返回的与待解析域名对应的第一IP地址;The instruction trigger is suitable for triggering sending a domain name resolution request to the first DNS server based on the page access instruction input by the user, and receiving the first IP address corresponding to the domain name to be resolved returned by the first DNS server;

请求发送器,适于将所述域名解析请求发送至第二DNS服务器;a request sender, adapted to send the domain name resolution request to a second DNS server;

地址接收器,适于接收所述第二DNS服务器返回的与所述域名解析请求对应的第二IP地址;an address receiver, adapted to receive a second IP address corresponding to the domain name resolution request returned by the second DNS server;

地址校验器,适于采用所述第二IP地址对所述第一IP地址进行校验;an address checker adapted to check the first IP address by using the second IP address;

相应地,所述页面接收器,进一步适于在应用程序基于用户输入的页面访问指令触发向校验后的第一IP地址发送页面访问请求时,接收与页面访问请求对应的第一响应页面。Correspondingly, the page receiver is further adapted to receive the first response page corresponding to the page access request when the application triggers sending the page access request to the verified first IP address based on the page access instruction input by the user.

本发明通过调用签到函数来确定应用程序内第一响应页面是否发生跳转,能够即时准确地确定所述第一响应页面是否发生跳转,提高了用户体验,并且保证了用户的信息安全及财产安全。The present invention determines whether the first response page in the application program jumps by calling the sign-in function, can instantly and accurately determine whether the first response page jumps, improves the user experience, and ensures the user's information security and property Safety.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same components. In the attached picture:

图1是本发明一种实施方式的确定应用程序内页面跳转的方法的流程图;FIG. 1 is a flow chart of a method for determining page jumps in an application program according to an embodiment of the present invention;

图2是本发明一种实施方式的确定应用程序内页面跳转的方法的流程图;FIG. 2 is a flow chart of a method for determining page jumps within an application in an embodiment of the present invention;

图3是本发明一种实施方式的确定应用程序内页面跳转的方法的流程图;Fig. 3 is a flow chart of a method for determining page jumps in an application program according to an embodiment of the present invention;

图4是本发明一种实施方式的确定应用程序内页面跳转的方法的流程图;Fig. 4 is a flow chart of a method for determining page jumps in an application program according to an embodiment of the present invention;

图5是本发明一种实施方式的确定应用程序内页面跳转的装置的结构框图。Fig. 5 is a structural block diagram of an apparatus for determining a page jump in an application program according to an embodiment of the present invention.

具体实施方式Detailed ways

下面结合附图和实施例,对本发明的具体实施方式作进一步详细描述。以下实施例用于说明本发明,但不用来限制本发明的范围。The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

图1是本发明一种实施方式的确定应用程序内页面跳转的方法的流程图;参照图1,所述方法包括:Fig. 1 is a flowchart of a method for determining page jumps in an application according to an embodiment of the present invention; referring to Fig. 1 , the method includes:

S101:在应用程序基于用户输入的页面访问指令触发页面访问请求时,接收与页面访问请求对应的第一响应页面;S101: When the application triggers the page access request based on the page access instruction input by the user, receive a first response page corresponding to the page access request;

可理解的是,所述应用程序在接收到第一响应页面后,即对所述第一响应页面进行加载。It can be understood that, after receiving the first response page, the application loads the first response page.

S102:通过调用签到函数来确定所述应用程序内第一响应页面是否发生跳转。S102: Determine whether the first response page in the application is redirected by calling the sign-in function.

需要说明的是,所述签到函数为内嵌于第一响应页面中的js脚本,在所述应用程序访问到第一响应页面的前端服务器或所述第一响应页面正常调用显示时,所述签到函数能够被调用,并在被调用后将签到标志进行置位。It should be noted that the sign-in function is a js script embedded in the first response page, and when the application program accesses the front-end server of the first response page or the first response page is normally called and displayed, the The check-in function can be called, and the check-in flag will be set after being called.

因此,当所述应用程序在所述第一响应页面加载时,可先将签到标志设置为初始值(通常设置为0),只有在所述应用程序访问到第一响应页面的前端服务器及所述第一响应页面正常调用显示时,才能调用签到函数,若所述第一响应页面中被添加跳转代码(通常为用于实现301跳转的代码),会使得第一响应页面跳转至其他页面,该签到函数无法被调用,签到标志仍为初始值,故而,可通过所述签到标志来判断所述签到函数是否被调用,相应地,即可通过所述签到标志来判断所述第一响应页面是否发生跳转。Therefore, when the application program is loaded on the first response page, the check-in flag can be set to an initial value (usually set to 0), and only when the application program accesses the front-end server of the first response page and the The sign-in function can only be called when the first response page is normally called and displayed. If a jump code (usually the code used to realize 301 jump) is added to the first response page, the first response page will jump to On other pages, the sign-in function cannot be called, and the sign-in flag is still the initial value. Therefore, it can be judged whether the sign-in function is called through the sign-in mark, and correspondingly, the sign-in mark can be used to judge whether the first One responds to whether the page jumps.

当然,若所述第一响应页面未发生跳转,则直接在所述应用程序内的显示界面中展示所述第一响应页面。Of course, if the first response page does not jump, the first response page is directly displayed on the display interface in the application program.

本实施方式通过调用签到函数来确定应用程序内第一响应页面是否发生跳转,能够即时准确地确定所述第一响应页面是否发生跳转,提高了用户体验,并且保证了用户的信息安全及财产安全。In this embodiment, by calling the sign-in function to determine whether the first response page in the application is redirected, it can be immediately and accurately determined whether the first response page is redirected, which improves the user experience and ensures the user's information security and security. Property security.

图2是本发明一种实施方式的确定应用程序内页面跳转的方法的流程图;参照图2,所述方法包括:Fig. 2 is a flow chart of a method for determining page jumps in an application according to an embodiment of the present invention; referring to Fig. 2 , the method includes:

S201:在应用程序基于用户输入的页面访问指令触发页面访问请求时,接收与页面访问请求对应的第一响应页面;S201: When the application triggers the page access request based on the page access instruction input by the user, receive a first response page corresponding to the page access request;

S202:通过调用签到函数来确定所述应用程序内第一响应页面是否发生跳转;S202: Determine whether the first response page in the application is redirected by calling the sign-in function;

需要说明的是,步骤S201~S202与图1所示的实施方式的步骤S101~S102相同,本实施方式不再赘述。It should be noted that steps S201 to S202 are the same as steps S101 to S102 in the embodiment shown in FIG. 1 , and will not be repeated in this embodiment.

S203:在不能调用所述应用程序内第一响应页面的签到函数时,认定所述应用程序内的第一响应页面发生跳转,通过加密协议重新发送页面访问请求,并接收与重新发送的页面访问请求对应的第二响应页面。S203: When the sign-in function of the first response page in the application cannot be called, determine that the first response page in the application jumps, resend the page access request through an encryption protocol, and receive and resend the page Access the second response page corresponding to the request.

可理解的是,为了提高页面访问速度,通常的页面访问请求是通过明文方式(即HTTP协议等)进行发送的,故而,返回的第一响应页面页是通过明文方式发送的,故而,容易被黑客截获,从而在所述第一响应页面中添加跳转代码,为避免与重新发送的页面访问请求对应的第二响应页面也被黑客截获,本实施方式中,通过加密协议(即HTTPS协议等)重新发送页面访问请求。It is understandable that, in order to improve the page access speed, the usual page access request is sent in clear text (i.e. HTTP protocol, etc.), so the returned first response page is sent in clear text, so it is easy to be Hacker intercepts, thereby adds jump code in described first response page, for avoiding that the second response page corresponding to the page access request that resends is also intercepted by hacker, in this embodiment, through encryption agreement (being HTTPS protocol etc. ) to resend the page access request.

S204:在所述应用程序内的显示界面中展示所述第二响应页面。S204: Display the second response page on a display interface in the application program.

在具体实现中,由于所述第二响应页面是通过加密协议发送的,故而其被添加跳转代码的可能性非常小,在此情况下,则可停止在所述应用程序内加载所述第一响应页面,直接在所述应用程序内的显示界面中展示所述第二响应页面。In a specific implementation, since the second response page is sent through an encrypted protocol, it is very unlikely that a jump code will be added to it. In this case, the loading of the second response page in the application program can be stopped. A response page, directly displaying the second response page on the display interface in the application program.

图3是本发明一种实施方式的确定应用程序内页面跳转的方法的流程图;参照图3,所述方法包括:Fig. 3 is a flowchart of a method for determining page jumps in an application according to an embodiment of the present invention; referring to Fig. 3 , the method includes:

S301:在应用程序基于用户输入的页面访问指令触发页面访问请求时,接收与页面访问请求对应的第一响应页面;S301: Receive a first response page corresponding to the page access request when the application program triggers the page access request based on the page access instruction input by the user;

S302:通过调用签到函数来确定所述应用程序内第一响应页面是否发生跳转;S302: Determine whether the first response page in the application is redirected by calling the sign-in function;

S303:在不能调用所述应用程序内第一响应页面的签到函数时,认定所述应用程序内的第一响应页面发生跳转,通过加密协议重新发送页面访问请求,并接收与重新发送的页面访问请求对应的第二响应页面;S303: When the sign-in function of the first response page in the application cannot be called, determine that the first response page in the application jumps, resend the page access request through an encryption protocol, and receive and resend the page Access the second response page corresponding to the request;

S304:在所述应用程序内的显示界面中展示所述第二响应页面;S304: Display the second response page on the display interface in the application program;

需要说明的是,步骤S301~S304与图2所示的实施方式的步骤S201~S204相同,本实施方式不再赘述。It should be noted that steps S301 to S304 are the same as steps S201 to S204 in the embodiment shown in FIG. 2 , and will not be repeated in this embodiment.

S305:通过所述加密协议发送后续的页面访问请求。S305: Send a subsequent page access request through the encryption protocol.

由于当前的第一响应页面发生跳转,故而,可理解为当前的网络环境并不安全,故而可通过所述加密协议发送后续的页面访问请求。Since the current first response page is redirected, it can be understood that the current network environment is not safe, so subsequent page access requests can be sent through the encryption protocol.

若后续的所有页面访问请求都通过加密协议发送,则会导致页面访问速度过慢,影响用户体验,为避免该问题,可在达到预设时间时,通过明文方式发送后续的页面访问请求。If all subsequent page access requests are sent through an encrypted protocol, the page access speed will be too slow and user experience will be affected. To avoid this problem, subsequent page access requests can be sent in clear text when the preset time is reached.

另外,在网络环境发生变化(例如本地连接的网络发生变化或)本地IP地址发生变化)时,通过明文方式发送后续的页面访问请求。In addition, when the network environment changes (for example, the locally connected network changes or the local IP address changes), the subsequent page access request is sent in plain text.

图4是本发明一种实施方式的确定应用程序内页面跳转的方法的流程图;参照图4,所述方法包括:Fig. 4 is a flowchart of a method for determining page jumps in an application according to an embodiment of the present invention; referring to Fig. 4, the method includes:

S400:接收用户输入的搜索词,根据所述搜索词查找与所述搜索词相关的网页信息,并将查找到的网页信息展示于所述应用程序内的显示界面中,接收用户在所述应用程序内的显示界面中输入的页面访问指令。S400: Receive the search word input by the user, search for webpage information related to the search word according to the search word, and display the found webpage information on the display interface in the application program, and receive the The page access command input in the display interface in the program.

可理解的是,由于查找到的网页信息展示于应用程序内的显示界面中,此时,用户通常会输入与需要访问的网页信息对应的页面访问指令。It is understandable that since the found webpage information is displayed on the display interface in the application program, at this time, the user usually inputs a page access instruction corresponding to the webpage information to be accessed.

S401:在应用程序基于用户输入的页面访问指令触发页面访问请求时,接收与页面访问请求对应的第一响应页面;S401: When the application triggers the page access request based on the page access instruction input by the user, receive a first response page corresponding to the page access request;

S402:通过调用签到函数来确定所述应用程序内第一响应页面是否发生跳转;S402: Determine whether the first response page in the application is redirected by calling the sign-in function;

S403:在不能调用所述应用程序内第一响应页面的签到函数时,认定所述应用程序内的第一响应页面发生跳转,通过加密协议重新发送页面访问请求,并接收与重新发送的页面访问请求对应的第二响应页面;S403: When the sign-in function of the first response page in the application cannot be called, determine that the first response page in the application jumps, resend the page access request through an encryption protocol, and receive and resend the page Access the second response page corresponding to the request;

S404:在所述应用程序内的显示界面中展示所述第二响应页面;S404: Display the second response page on a display interface in the application program;

需要说明的是,步骤S401~S404与图2所示的实施方式的步骤S201~S204相同,本实施方式不再赘述。It should be noted that steps S401 to S404 are the same as steps S201 to S204 in the embodiment shown in FIG. 2 , and will not be repeated in this embodiment.

由于运营商局域DNS服务器中的内容可能被篡改,又或是用户的路由器上DNS服务器地址被修改,可能导致不能正常访问页面,影响用户体验,也可能导致用户在正常访问页面时,被链接至钓鱼网站或木马网站等欺诈网站,影响用户的信息安全及财产安全,本实施方式中,步骤S400~S401之间,所述方法还包括:Because the contents of the operator's local DNS server may be tampered with, or the DNS server address on the user's router is modified, it may result in the inability to access the page normally, affect the user experience, and may also cause the user to be linked when accessing the page normally. Go to fraudulent websites such as phishing websites or Trojan horse websites, which will affect the information security and property security of users. In this embodiment, between steps S400~S401, the method also includes:

A:基于用户输入的页面访问指令触发向第一DNS服务器发送域名解析请求,并接收第一DNS服务器返回的与待解析域名对应的第一IP地址;A: Based on the page access instruction input by the user, trigger sending a domain name resolution request to the first DNS server, and receive the first IP address corresponding to the domain name to be resolved returned by the first DNS server;

需要说明的是,所述第一DNS服务器通常为运营商局域DNS服务器,但该DNS服务器中的内容可能被篡改,当然,也有可能为被黑客修改的DNS服务器(即应用程序的DNS服务器地址被修改)。It should be noted that the first DNS server is usually the operator's local DNS server, but the content in the DNS server may be tampered with, of course, it may also be the DNS server modified by hackers (that is, the DNS server address of the application modified).

B:将所述域名解析请求发送至第二DNS服务器;B: sending the domain name resolution request to the second DNS server;

需要说明的是,所述第二DNS服务器可理解为第三方提供的DNS服务器,第二DNS服务器的链接地址可直接存储于本地,在需要执行步骤B时,则直接从本地找到第二DNS服务器的链接地址,将所述域名解析请求根据链接地址发送至第二DNS服务器。It should be noted that the second DNS server can be understood as a DNS server provided by a third party, and the link address of the second DNS server can be directly stored locally. When step B needs to be executed, the second DNS server can be found locally the link address, and send the domain name resolution request to the second DNS server according to the link address.

可理解的是,若直接将所述域名解析请求以明文方式(即HTTP协议等)发送至第二DNS服务器,则容易被黑客截获,从而难以保证所述第二DNS服务器所返回信息的真实性,为避免出现该问题,本实施方式中,将所述域名解析请求通过加密协议(即HTTPS协议等)发送至第二DNS服务器;It is understandable that if the domain name resolution request is directly sent to the second DNS server in plain text (that is, HTTP protocol, etc.), it is easy to be intercepted by hackers, so it is difficult to guarantee the authenticity of the information returned by the second DNS server , in order to avoid this problem, in this embodiment, the domain name resolution request is sent to the second DNS server through an encryption protocol (ie HTTPS protocol, etc.);

C:接收所述第二DNS服务器返回的与所述域名解析请求对应的第二IP地址;C: receiving the second IP address corresponding to the domain name resolution request returned by the second DNS server;

需要说明的是,若将所述域名解析请求是通过加密协议(即HTTPS协议等)发送至第二DNS服务器,则所述第二DNS服务器通过加密协议返回所述第二IP地址。It should be noted that, if the domain name resolution request is sent to the second DNS server through an encryption protocol (ie HTTPS protocol, etc.), the second DNS server returns the second IP address through an encryption protocol.

D:采用所述第二IP地址对所述第一IP地址进行校验;D: verifying the first IP address by using the second IP address;

可理解的是,在所述第一IP地址与所述第二IP地址相同时,则认定所述第一IP地址校验通过,此时,所述校验后的第一IP地址即为该第一IP地址本身;在所述第一IP地址与所述第二IP地址不相同,则认定所述第一IP地址未验证通过,并将所述第一IP地址修改为第二IP地址,此时,所述校验后的第一IP地址即为所述第二IP地址。It is understandable that when the first IP address is the same as the second IP address, it is determined that the first IP address has passed the verification, and at this time, the verified first IP address is the The first IP address itself; if the first IP address is not the same as the second IP address, it is determined that the first IP address has not been verified, and the first IP address is changed to the second IP address, At this time, the verified first IP address is the second IP address.

下面以一个具体的实例来说明,但不限定本发明的保护范围,设所述域名解析请求中包括的待解析域名为M.haoshou.com,将该域名解析请求发送至第一DNS服务器后,接收所述第一DNS服务器返回的第一IP地址为125.88.193.213,再将所述域名解析请求发送至第二DNS服务器后,若接收所述第二DNS服务器返回的第二IP地址为125.88.193.213时,则认为所述第一IP地址校验通过,校验后的第一IP地址即为125.88.193.213;Describe with a specific example below, but do not limit protection scope of the present invention, suppose the domain name to be resolved included in the domain name resolution request to be M.haoshou.com, after sending this domain name resolution request to the first DNS server, After receiving the first IP address returned by the first DNS server as 125.88.193.213, and then sending the domain name resolution request to the second DNS server, if the second IP address returned by the second DNS server is 125.88. 193.213, it is considered that the first IP address has passed the verification, and the first IP address after verification is 125.88.193.213;

若接收所述第二DNS服务器返回的第二IP地址为125.88.192.144时,则认为所述第一IP地址未校验通过,并将所述第一IP地址修改为125.88.192.144,校验后的第一IP地址即为125.88.192.144。If the second IP address returned by the second DNS server is 125.88.192.144, it is considered that the first IP address has not passed the verification, and the first IP address is modified to 125.88.192.144, after verification The first IP address is 125.88.192.144.

相应地,步骤S401进一步包括:Correspondingly, step S401 further includes:

在应用程序基于用户输入的页面访问指令触发向校验后的第一IP地址发送页面访问请求时,接收与页面访问请求对应的第一响应页面。When the application triggers sending a page access request to the verified first IP address based on the page access instruction input by the user, a first response page corresponding to the page access request is received.

对于方法实施方式,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施方式并不受所描述的动作顺序的限制,因为依据本发明实施方式,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施方式均属于优选实施方式,所涉及的动作并不一定是本发明实施方式所必须的。For the method implementation, for the sake of simple description, it is expressed as a series of action combinations, but those skilled in the art should know that the implementation of the present invention is not limited by the described action order, because according to the implementation of the present invention , certain steps may be performed in other order or simultaneously. Secondly, those skilled in the art should also know that the implementations described in the specification belong to preferred implementations, and the actions involved are not necessarily required by the implementations of the present invention.

图5是本发明一种实施方式的确定应用程序内页面跳转的装置的结构框图;参照图5,所述装置包括:Fig. 5 is a structural block diagram of a device for determining page jumps in an application according to an embodiment of the present invention; referring to Fig. 5 , the device includes:

页面接收器501,适于在应用程序基于用户输入的页面访问指令触发页面访问请求时,接收与页面访问请求对应的第一响应页面;The page receiver 501 is adapted to receive the first response page corresponding to the page access request when the application program triggers the page access request based on the page access instruction input by the user;

跳转确定器502,适于通过调用签到函数来确定所述应用程序内第一响应页面是否发生跳转。The jump determiner 502 is adapted to determine whether a jump occurs to the first response page in the application program by calling a check-in function.

在本发明的一种可选实施方式中,所述装置还包括:In an optional embodiment of the present invention, the device also includes:

跳转认定器,适于在不能调用所述应用程序内第一响应页面的签到函数时,认定所述应用程序内的第一响应页面发生跳转。The jump determiner is adapted to determine that the first response page in the application has been redirected when the sign-in function of the first response page in the application cannot be called.

在本发明的一种可选实施方式中,所述装置还包括:In an optional embodiment of the present invention, the device also includes:

请求重发器,适于通过加密协议重新发送页面访问请求,并接收与重新发送的页面访问请求对应的第二响应页面。The request repeater is adapted to resend the page access request through an encryption protocol, and receive a second response page corresponding to the resent page access request.

在本发明的一种可选实施方式中,所述装置还包括:In an optional embodiment of the present invention, the device also includes:

页面展示器,适于在所述应用程序内的显示界面中展示所述第二响应页面。The page displayer is adapted to display the second response page on the display interface in the application program.

在本发明的一种可选实施方式中,所述装置还包括:In an optional embodiment of the present invention, the device also includes:

加密发送器,适于通过所述加密协议发送后续的页面访问请求。An encryption sender is adapted to send subsequent page access requests through the encryption protocol.

在本发明的一种可选实施方式中,所述装置还包括:In an optional embodiment of the present invention, the device also includes:

时间判断器,适于判断是否达到预设时间,若否,则调用所述加密发送器。The time judging device is suitable for judging whether the preset time has been reached, and if not, calling the encryption transmitter.

在本发明的一种可选实施方式中,所述装置还包括:In an optional embodiment of the present invention, the device also includes:

网络判断器,适于判断本地连接的网络是否发生变化,若否,则调用所述加密发送器。The network determiner is adapted to determine whether the locally connected network has changed, and if not, invoke the encrypted transmitter.

在本发明的一种可选实施方式中,所述装置还包括:In an optional embodiment of the present invention, the device also includes:

地址判断器,适于判断本地IP地址是否发生变化,若否,则调用所述加密发送器。The address determiner is adapted to determine whether the local IP address has changed, and if not, invoke the encryption transmitter.

在本发明的一种可选实施方式中,所述装置还包括:In an optional embodiment of the present invention, the device also includes:

指令接收器,适于接收用户输入的搜索词,根据所述搜索词查找与所述搜索词相关的网页信息,并将查找到的网页信息展示于所述应用程序内的显示界面中,接收用户在所述应用程序内的显示界面中输入的页面访问指令。The instruction receiver is adapted to receive the search word input by the user, search for webpage information related to the search word according to the search word, and display the found webpage information on the display interface in the application program, and receive the user's A page access instruction entered in a display interface within the application program.

在本发明的一种可选实施方式中,所述方法还包括:In an optional embodiment of the present invention, the method also includes:

指令触发器,适于基于用户输入的页面访问指令触发向第一DNS服务器发送域名解析请求,并接收第一DNS服务器返回的与待解析域名对应的第一IP地址;The instruction trigger is suitable for triggering sending a domain name resolution request to the first DNS server based on the page access instruction input by the user, and receiving the first IP address corresponding to the domain name to be resolved returned by the first DNS server;

请求发送器,适于将所述域名解析请求发送至第二DNS服务器;a request sender, adapted to send the domain name resolution request to a second DNS server;

地址接收器,适于接收所述第二DNS服务器返回的与所述域名解析请求对应的第二IP地址;an address receiver, adapted to receive a second IP address corresponding to the domain name resolution request returned by the second DNS server;

地址校验器,适于采用所述第二IP地址对所述第一IP地址进行校验;an address checker adapted to check the first IP address by using the second IP address;

相应地,所述页面接收器,进一步适于在应用程序基于用户输入的页面访问指令触发向校验后的第一IP地址发送页面访问请求时,接收与页面访问请求对应的第一响应页面。Correspondingly, the page receiver is further adapted to receive the first response page corresponding to the page access request when the application triggers sending the page access request to the verified first IP address based on the page access instruction input by the user.

对于装置实施方式而言,由于其与方法实施方式基本相似,所以描述的比较简单,相关之处参见方法实施方式的部分说明即可。As for the device implementation, since it is basically similar to the method implementation, the description is relatively simple, and for related parts, please refer to the part of the description of the method implementation.

应当注意的是,在本发明的装置的各个部件中,根据其要实现的功能而对其中的部件进行了逻辑划分,但是,本发明不受限于此,可以根据需要对各个部件进行重新划分或者组合,例如,可以将一些部件组合为单个部件,或者可以将一些部件进一步分解为更多的子部件。It should be noted that among the various components of the device of the present invention, the components are logically divided according to the functions to be realized, but the present invention is not limited thereto, and each component can be re-divided as required Or combined, for example, some components can be combined into a single component, or some components can be further broken down into more subcomponents.

本发明的各个部件实施方式可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施方式的装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component implementations of the present invention can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in the device according to the embodiments of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.

应该注意的是上述实施方式对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施方式。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.

以上实施方式仅用于说明本发明,而并非对本发明的限制,有关技术领域的普通技术人员,在不脱离本发明的精神和范围的情况下,还可以做出各种变化和变型,因此所有等同的技术方案也属于本发明的范畴,本发明的专利保护范围应由权利要求限定。The above embodiments are only used to illustrate the present invention, but not to limit the present invention. Those of ordinary skill in the relevant technical field can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, all Equivalent technical solutions also belong to the category of the present invention, and the scope of patent protection of the present invention should be defined by the claims.

本发明公开了A1、一种确定应用程序内页面跳转的方法,所述方法包括:The invention discloses A1. A method for determining page jumps in an application program, the method comprising:

在应用程序基于用户输入的页面访问指令触发页面访问请求时,接收与页面访问请求对应的第一响应页面;When the application program triggers the page access request based on the page access instruction input by the user, receive the first response page corresponding to the page access request;

通过调用签到函数来确定所述应用程序内第一响应页面是否发生跳转。It is determined whether the first response page in the application is redirected by calling the sign-in function.

A2、如A1所述的方法,所述通过调用签到函数来确定所述应用程序内的第一响应页面是否发生跳转之后,所述方法还包括:A2. The method as described in A1, after determining whether the first response page in the application is redirected by calling the sign-in function, the method further includes:

在不能调用所述应用程序内第一响应页面的签到函数时,认定所述应用程序内的第一响应页面发生跳转。When the sign-in function of the first response page in the application cannot be called, it is determined that the first response page in the application jumps.

A3、如A1-A2任一项所述的方法,所述认定所述应用程序内的第一响应页面发生跳转之后,所述方法还包括:A3. The method according to any one of A1-A2, after it is determined that the first response page in the application jumps, the method further includes:

通过加密协议重新发送页面访问请求,并接收与重新发送的页面访问请求对应的第二响应页面。Resend the page access request through an encryption protocol, and receive a second response page corresponding to the resent page access request.

A4、如A1-A3任一项所述的方法,所述接收与重新发送的页面访问请求对应的第二响应页面之后,所述方法还包括:A4. The method according to any one of A1-A3, after receiving the second response page corresponding to the resent page access request, the method further includes:

在所述应用程序内的显示界面中展示所述第二响应页面。The second response page is displayed on a display interface within the application program.

A5、如A1-A4任一项所述的方法,所述认定所述应用程序内的第一响应页面发生跳转之后,所述方法还包括:A5. The method according to any one of A1-A4, after it is determined that the first response page in the application jumps, the method further includes:

通过所述加密协议发送后续的页面访问请求。Subsequent page access requests are sent through the encryption protocol.

A6、如A1-A5任一项所述的方法,所述通过所述加密协议发送后续的页面访问请求之后,所述方法还包括:A6. The method according to any one of A1-A5, after sending a subsequent page access request through the encryption protocol, the method further includes:

判断是否达到预设时间,若否,则执行所述通过所述加密协议发送后续的页面访问请求的步骤。It is judged whether the preset time has been reached, and if not, the step of sending a subsequent page access request through the encryption protocol is executed.

A7、如A1-A6任一项所述的方法,所述通过所述加密协议发送后续的页面访问请求之后,所述方法还包括:A7. The method according to any one of A1-A6, after sending a subsequent page access request through the encryption protocol, the method further includes:

判断本地连接的网络是否发生变化,若否,则执行所述通过所述加密协议发送后续的页面访问请求的步骤。Judging whether the locally connected network has changed, if not, performing the step of sending a subsequent page access request through the encryption protocol.

A8、如A1-A7任一项所述的方法,所述通过所述加密协议发送后续的页面访问请求之后,所述方法还包括:A8. The method according to any one of A1-A7, after sending a subsequent page access request through the encryption protocol, the method further includes:

判断本地IP地址是否发生变化,若否,则执行所述通过所述加密协议发送后续的页面访问请求的步骤。Judging whether the local IP address has changed, if not, performing the step of sending a subsequent page access request through the encryption protocol.

A9、如A1-A8任一项所述的方法,所述在应用程序基于用户输入的页面访问指令触发页面访问请求时,接收与页面访问请求对应的第一响应页面之前,所述方法还包括:A9. The method according to any one of A1-A8, when the application triggers the page access request based on the page access instruction input by the user, before receiving the first response page corresponding to the page access request, the method further includes :

接收用户输入的搜索词,根据所述搜索词查找与所述搜索词相关的网页信息,并将查找到的网页信息展示于所述应用程序内的显示界面中,接收用户在所述应用程序内的显示界面中输入的页面访问指令。Receive the search word input by the user, search for webpage information related to the search word according to the search word, and display the found webpage information on the display interface in the application program, and receive the user's search in the application program The page access instruction entered in the display interface of the .

A10、如A1-A9所述的方法,所述在应用程序基于用户输入的页面访问指令触发页面访问请求时,接收与页面访问请求对应的第一响应页面之前,所述方法还包括:A10. The method described in A1-A9, when the application triggers the page access request based on the page access instruction input by the user, before receiving the first response page corresponding to the page access request, the method further includes:

基于用户输入的页面访问指令触发向第一DNS服务器发送域名解析请求,并接收第一DNS服务器返回的与待解析域名对应的第一IP地址;Based on the page access instruction input by the user, trigger sending a domain name resolution request to the first DNS server, and receive the first IP address corresponding to the domain name to be resolved returned by the first DNS server;

将所述域名解析请求发送至第二DNS服务器;sending the domain name resolution request to a second DNS server;

接收所述第二DNS服务器返回的与所述域名解析请求对应的第二IP地址;receiving a second IP address corresponding to the domain name resolution request returned by the second DNS server;

采用所述第二IP地址对所述第一IP地址进行校验;Verifying the first IP address by using the second IP address;

相应地,所述在应用程序基于用户输入的页面访问指令触发页面访问请求时,接收与页面访问请求对应的第一响应页面,进一步包括:Correspondingly, when the application triggers the page access request based on the page access instruction input by the user, receiving the first response page corresponding to the page access request further includes:

在应用程序基于用户输入的页面访问指令触发向校验后的第一IP地址发送页面访问请求时,接收与页面访问请求对应的第一响应页面。When the application triggers sending a page access request to the verified first IP address based on the page access instruction input by the user, a first response page corresponding to the page access request is received.

本发明还公开了B11、一种确定应用程序内页面跳转的装置,所述装置包括:The present invention also discloses B11, a device for determining page jumps in an application program, the device comprising:

页面接收器,适于在应用程序基于用户输入的页面访问指令触发页面访问请求时,接收与页面访问请求对应的第一响应页面;The page receiver is adapted to receive the first response page corresponding to the page access request when the application program triggers the page access request based on the page access instruction input by the user;

跳转确定器,适于通过调用签到函数来确定所述应用程序内第一响应页面是否发生跳转。The jump determiner is adapted to determine whether a jump occurs to the first response page in the application program by calling the check-in function.

B12、如B11所述的装置,所述装置还包括:B12, the device as described in B11, said device also includes:

跳转认定器,适于在不能调用所述应用程序内第一响应页面的签到函数时,认定所述应用程序内的第一响应页面发生跳转。The jump determiner is adapted to determine that the first response page in the application has been redirected when the sign-in function of the first response page in the application cannot be called.

B13、如B11-B12任一项所述的装置,所述装置还包括:B13. The device according to any one of B11-B12, said device also comprising:

请求重发器,适于通过加密协议重新发送页面访问请求,并接收与重新发送的页面访问请求对应的第二响应页面。The request repeater is adapted to resend the page access request through an encryption protocol, and receive a second response page corresponding to the resent page access request.

B14、如B11-B13任一项所述的装置,所述装置还包括:B14. The device according to any one of B11-B13, said device further comprising:

页面展示器,适于在所述应用程序内的显示界面中展示所述第二响应页面。The page displayer is adapted to display the second response page on the display interface in the application program.

B15、如B11-B14任一项所述的装置,所述装置还包括:B15. The device according to any one of B11-B14, said device also comprising:

加密发送器,适于通过所述加密协议发送后续的页面访问请求。An encryption sender is adapted to send subsequent page access requests through the encryption protocol.

B16、如B11-B15任一项所述的装置,所述装置还包括:B16. The device according to any one of B11-B15, said device also comprising:

时间判断器,适于判断是否达到预设时间,若否,则调用所述加密发送器。The time judging device is suitable for judging whether the preset time has been reached, and if not, calling the encryption transmitter.

B17、如B11-B16任一项所述的装置,所述装置还包括:B17. The device according to any one of B11-B16, said device further comprising:

网络判断器,适于判断本地连接的网络是否发生变化,若否,则调用所述加密发送器。The network determiner is adapted to determine whether the locally connected network has changed, and if not, invoke the encrypted transmitter.

B18、如B11-B17任一项所述的装置,所述装置还包括:B18. The device according to any one of B11-B17, said device further comprising:

地址判断器,适于判断本地IP地址是否发生变化,若否,则调用所述加密发送器。The address determiner is adapted to determine whether the local IP address has changed, and if not, invoke the encryption transmitter.

B19、如B11-B18任一项所述的装置,所述装置还包括:B19. The device according to any one of B11-B18, said device further comprising:

指令接收器,适于接收用户输入的搜索词,根据所述搜索词查找与所述搜索词相关的网页信息,并将查找到的网页信息展示于所述应用程序内的显示界面中,接收用户在所述应用程序内的显示界面中输入的页面访问指令。The instruction receiver is adapted to receive the search word input by the user, search for webpage information related to the search word according to the search word, and display the found webpage information on the display interface in the application program, and receive the user's A page access instruction entered in a display interface within the application program.

B20、如B11-B19任一项所述的装置,所述方法还包括:B20. The device according to any one of B11-B19, said method further comprising:

指令触发器,适于基于用户输入的页面访问指令触发向第一DNS服务器发送域名解析请求,并接收第一DNS服务器返回的与待解析域名对应的第一IP地址;The instruction trigger is suitable for triggering sending a domain name resolution request to the first DNS server based on the page access instruction input by the user, and receiving the first IP address corresponding to the domain name to be resolved returned by the first DNS server;

请求发送器,适于将所述域名解析请求发送至第二DNS服务器;a request sender, adapted to send the domain name resolution request to a second DNS server;

地址接收器,适于接收所述第二DNS服务器返回的与所述域名解析请求对应的第二IP地址;an address receiver, adapted to receive a second IP address corresponding to the domain name resolution request returned by the second DNS server;

地址校验器,适于采用所述第二IP地址对所述第一IP地址进行校验;an address checker adapted to check the first IP address by using the second IP address;

相应地,所述页面接收器,进一步适于在应用程序基于用户输入的页面访问指令触发向校验后的第一IP地址发送页面访问请求时,接收与页面访问请求对应的第一响应页面。Correspondingly, the page receiver is further adapted to receive the first response page corresponding to the page access request when the application triggers sending the page access request to the verified first IP address based on the page access instruction input by the user.

Claims (10)

1. determine a method for page jump in application program, it is characterized in that, described method comprises:
When the page access instruction triggers accessing page request that application program inputs based on user, receive first response page corresponding with accessing page request;
Determine in described application program, whether the first response page redirect occurs by calling function of registering.
2. the method for claim 1, is characterized in that, after whether described the first response page determining in described application program by calling function of registering redirect occurs, described method also comprises:
Can not call the first response page in described application program register function time, assert the first response page generation redirect in described application program.
3. the method as described in any one of claim 1-2, is characterized in that, after the first response page generation redirect in the described application program of described identification, described method also comprises:
Resend accessing page request by cryptographic protocol, and receive second response page corresponding with the accessing page request resend.
4. the method as described in any one of claim 1-3, is characterized in that, after the second response page that described reception is corresponding with the accessing page request resend, described method also comprises:
Described second response page is shown in display interface in described application program.
5. the method as described in any one of claim 1-4, is characterized in that, after the first response page generation redirect in the described application program of described identification, described method also comprises:
Follow-up accessing page request is sent by described cryptographic protocol.
6. the method as described in any one of claim 1-5, is characterized in that, described send follow-up accessing page request by described cryptographic protocol after, described method also comprises:
Judge whether to reach Preset Time, if not, then perform the described step being sent follow-up accessing page request by described cryptographic protocol.
7. the method as described in any one of claim 1-6, is characterized in that, described send follow-up accessing page request by described cryptographic protocol after, described method also comprises:
Judge whether locally-attached network changes, if not, then perform the described step being sent follow-up accessing page request by described cryptographic protocol.
8. the method as described in any one of claim 1-7, is characterized in that, described send follow-up accessing page request by described cryptographic protocol after, described method also comprises:
Judge whether local ip address changes, if not, then perform the described step being sent follow-up accessing page request by described cryptographic protocol.
9. the method as described in any one of claim 1-8, is characterized in that, described when the page access instruction triggers accessing page request that application program inputs based on user, before receiving the first response page corresponding with accessing page request, described method also comprises:
Receive the search word of user's input, the info web relevant to described search word is searched according to described search word, and the info web found is showed in the display interface in described application program, receive the page access instruction inputted in the display interface of user in described application program.
10. determine a device for page jump in application program, it is characterized in that, described device comprises:
Page receiver, when being suitable for the page access instruction triggers accessing page request inputted based on user in application program, receives first response page corresponding with accessing page request;
Redirect determiner, is suitable for determining in described application program, whether the first response page redirect occurs by calling function of registering.
CN201510441257.5A 2015-07-24 2015-07-24 Method and device for determining page jump in application program Active CN105141709B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510441257.5A CN105141709B (en) 2015-07-24 2015-07-24 Method and device for determining page jump in application program
PCT/CN2016/091539 WO2017016458A1 (en) 2015-07-24 2016-07-25 Application internal page processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510441257.5A CN105141709B (en) 2015-07-24 2015-07-24 Method and device for determining page jump in application program

Publications (2)

Publication Number Publication Date
CN105141709A true CN105141709A (en) 2015-12-09
CN105141709B CN105141709B (en) 2019-02-05

Family

ID=54726912

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510441257.5A Active CN105141709B (en) 2015-07-24 2015-07-24 Method and device for determining page jump in application program

Country Status (1)

Country Link
CN (1) CN105141709B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017016458A1 (en) * 2015-07-24 2017-02-02 北京奇虎科技有限公司 Application internal page processing method and device
CN107133053A (en) * 2017-06-05 2017-09-05 上海鋆创信息技术有限公司 Method for page jump and device, the storage medium and terminal of a kind of application program
CN107835228A (en) * 2017-09-28 2018-03-23 链家网(北京)科技有限公司 A kind of command processing method and device based on DYNAMIC GENERALIZED route
CN109005096A (en) * 2017-06-14 2018-12-14 北京小米移动软件有限公司 Using exchange method and device
CN109981664A (en) * 2019-03-29 2019-07-05 北京致远互联软件股份有限公司 Website logging method, device and the realization device of page end
CN111738803A (en) * 2020-07-16 2020-10-02 拉扎斯网络科技(上海)有限公司 Method and device for determining item information
US10990461B2 (en) 2017-06-14 2021-04-27 Beijing Xiaomi Mobile Software Co., Ltd. Application interaction method, interaction method and apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110125587A1 (en) * 2008-06-23 2011-05-26 Double Verify, Inc. Automated Monitoring and Verification of Internet Based Advertising
CN102594934A (en) * 2011-12-30 2012-07-18 奇智软件(北京)有限公司 Method and device for identifying hijacked website
CN104092665A (en) * 2014-06-19 2014-10-08 小米科技有限责任公司 Access request filtering method, device and facility

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110125587A1 (en) * 2008-06-23 2011-05-26 Double Verify, Inc. Automated Monitoring and Verification of Internet Based Advertising
CN102594934A (en) * 2011-12-30 2012-07-18 奇智软件(北京)有限公司 Method and device for identifying hijacked website
CN104092665A (en) * 2014-06-19 2014-10-08 小米科技有限责任公司 Access request filtering method, device and facility

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017016458A1 (en) * 2015-07-24 2017-02-02 北京奇虎科技有限公司 Application internal page processing method and device
CN107133053A (en) * 2017-06-05 2017-09-05 上海鋆创信息技术有限公司 Method for page jump and device, the storage medium and terminal of a kind of application program
CN109005096A (en) * 2017-06-14 2018-12-14 北京小米移动软件有限公司 Using exchange method and device
US10990461B2 (en) 2017-06-14 2021-04-27 Beijing Xiaomi Mobile Software Co., Ltd. Application interaction method, interaction method and apparatus
US11360834B2 (en) 2017-06-14 2022-06-14 Beijing Xiaomi Mobile Software Co., Ltd. Application interaction method and apparatus
CN107835228A (en) * 2017-09-28 2018-03-23 链家网(北京)科技有限公司 A kind of command processing method and device based on DYNAMIC GENERALIZED route
CN109981664A (en) * 2019-03-29 2019-07-05 北京致远互联软件股份有限公司 Website logging method, device and the realization device of page end
CN111738803A (en) * 2020-07-16 2020-10-02 拉扎斯网络科技(上海)有限公司 Method and device for determining item information

Also Published As

Publication number Publication date
CN105141709B (en) 2019-02-05

Similar Documents

Publication Publication Date Title
US10554655B2 (en) Method and system for verifying an account operation
CN105141709A (en) Method and device for determining page jump in application program
US11886619B2 (en) Apparatus and method for securing web application server source code
US8789204B2 (en) Method and apparatus for secure cross-site scripting
US8505102B1 (en) Detecting undesirable content
TWI679550B (en) Account login method and device
WO2019047513A1 (en) Internet defense method and authentication server
CN107277025A (en) A kind of Secure Network Assecc method, mobile terminal and computer-readable recording medium
CN104468592B (en) Login method and login system
CN105991589A (en) Method, apparatus, and system for redirection
CN103117893B (en) A kind of monitoring method of network access behavior, device and a kind of client device
CN106899549B (en) Network security detection method and device
WO2015007231A1 (en) Method and device for identification of malicious url
CN106789939A (en) A kind of detection method for phishing site and device
TW201516910A (en) Method and system for authenticating service
WO2014114127A1 (en) Method, apparatus and system for webpage access control
CN111163095A (en) Network attack analysis method, network attack analysis device, computing device, and medium
CN108574721B (en) A login method, device and server, user terminal, and readable storage medium
CN103561063B (en) A kind of method of Register top box and terminal
CN105100298A (en) Page access method in application program and apparatus thereof
CN105354511A (en) Method and apparatus for detecting page tampering in application
WO2017016458A1 (en) Application internal page processing method and device
CN110177096B (en) Client authentication method, device, medium and computing equipment
US10079856B2 (en) Rotation of web site content to prevent e-mail spam/phishing attacks
WO2024208097A1 (en) Webpage authentication method and apparatus, and medium and electronic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220801

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right