[go: up one dir, main page]

CN104680063B - A kind of information intercepting method and terminal - Google Patents

A kind of information intercepting method and terminal Download PDF

Info

Publication number
CN104680063B
CN104680063B CN201510093293.7A CN201510093293A CN104680063B CN 104680063 B CN104680063 B CN 104680063B CN 201510093293 A CN201510093293 A CN 201510093293A CN 104680063 B CN104680063 B CN 104680063B
Authority
CN
China
Prior art keywords
information
terminal
url
cookie
domain name
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.)
Active
Application number
CN201510093293.7A
Other languages
Chinese (zh)
Other versions
CN104680063A (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.)
Meizu Technology Co Ltd
Original Assignee
Meizu Technology China 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 Meizu Technology China Co Ltd filed Critical Meizu Technology China Co Ltd
Priority to CN201510093293.7A priority Critical patent/CN104680063B/en
Publication of CN104680063A publication Critical patent/CN104680063A/en
Application granted granted Critical
Publication of CN104680063B publication Critical patent/CN104680063B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The present embodiments relate to Internet technical fields, and in particular to a kind of information intercepting method and terminal.Wherein, this method comprises: after receiving the access instruction of target URL of user's input, terminal can respond the access instruction, obtain at least one cookie information stored in local folders, then it is directed to each cookie information again, judge whether the domain name of the original URL stored in the domain name and the cookie information of target URL is consistent, if inconsistent, does not just access the information in the cookie information in addition to original URL.Through the embodiment of the present invention, terminal, which will not be accessed, improves the safety that user browses webpage to protect the personal information of user with the different history access information of the domain name of URL original in cookie information.

Description

A kind of information intercepting method and terminal
Technical field
The present invention relates to Internet technical fields, and in particular to a kind of information intercepting method and terminal.
Background technique
In daily life, user is when using browser browsing webpage in the terminals such as mobile phone, computer, the information that is accessed It is often tracked by other websites, for example, user has searched for some tourist attractions on a certain website, and has browsed the tourism The relevant information at sight spot, and when user is when accessing another website, the access historical record of user can be sent to this by terminal Network address, so that the website may show the advertisement of the tourist attractions relevant information according to the access historical record of user, it is this It is easy to expose the personal information of user come the behavior of advertisement by the historical record of tracking user's access, to bring Very big security risk.
Summary of the invention
The embodiment of the invention discloses a kind of information intercepting method and terminals, can protect the personal information of user, improve The safety of user's browsing webpage.
The embodiment of the invention discloses a kind of information intercepting methods, this method comprises:
Terminal receives the access instruction of the destination Uniform Resource finger URL URL of user's input;
The terminal responds the access instruction, obtains at least one cookie information stored in local folders, institute When stating cookie information to access original URL, the information including the original URL of generation;
For cookie information described in each, the terminal judges that the domain name of the target URL and the cookie are believed Whether the domain name of the original URL stored in breath is consistent;
If it is not, then the terminal does not access in the cookie information, the information in addition to the original URL.
Correspondingly, the embodiment of the invention discloses a kind of terminal, which includes:
First receiving unit, the access instruction of the destination Uniform Resource finger URL URL for receiving user's input;
Acquiring unit, the access instruction received for responding first receiving unit obtain local folders At least one cookie information of middle storage, the cookie information are when accessing original URL, and generation includes described original The information of URL;
Judging unit, cookie information described in each got for the acquiring unit, judges the target URL Domain name and the cookie information in the domain name of original URL that stores it is whether consistent;
When trigger unit for the judging result in the judging unit is no, trigger the terminal do not access it is described Information in cookie information, in addition to the original URL.
The implementation of the embodiments of the present invention has the following beneficial effects:
In the embodiment of the present invention, after receiving the access instruction of target URL of user's input, terminal can respond the visit It asks instruction, obtains at least one cookie information stored in local folders, be then directed to each cookie information again, sentence Whether the domain name of the original URL stored in the domain name and the cookie information of the target of breaking URL is consistent, if inconsistent, just not Access the information in the cookie information in addition to original URL.Through the embodiment of the present invention, terminal will not be accessed believes with cookie The different history access information of the domain name of original URL in breath improves user's browsing to protect the personal information of user The safety of webpage.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of information intercepting method disclosed by the embodiments of the present invention;
Fig. 2 is the flow diagram of another information intercepting method disclosed by the embodiments of the present invention;
Fig. 3 is a kind of structural schematic diagram of terminal disclosed by the embodiments of the present invention;
Fig. 4 is the structural schematic diagram of another terminal disclosed by the embodiments of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a kind of information intercepting method and terminals, can protect the personal information of user, improve The safety of user's browsing webpage.It is described in detail separately below.
Referring to Fig. 1, Fig. 1 is a kind of flow diagram of information intercepting method disclosed by the embodiments of the present invention.Wherein, scheme Method shown in 1 can be applied to smart phone (such as Android phone, iOS mobile phone), tablet computer, palm PC, movement Internet device (Mobile Internet Devices, MID) and PAD etc. are equipped in the terminal of browser application.Such as figure Shown in 1, which be may comprise steps of:
S101, terminal receive the access instruction of the destination Uniform Resource finger URL URL of user's input.
In the embodiment of the present invention, uniform resource position mark URL is by mode (or agreement), server name (or IP Location), the composition such as path and filename, for user perspective, when agreement is http protocol, by service name, road in URL The part of diameter and filename composition can be known as network address.
In the embodiment of the present invention, need to access the network address of webpage when user inputs in the browser of terminal, and click into It is fashionable, an access instruction can be generated, therefore, terminal can receive the access instruction.Wherein, which is used to indicate end Hold web page content information corresponding to access target URL.
S102, terminal respond the access instruction, obtain at least one cookie information stored in local folders.
In the embodiment of the present invention, it is previously stored in the corresponding file of the browser application of terminal one or more of Cookie information, when these cookie informations access webpage by browser before being user, terminal is automatically generated and is stored in In local folders.Cookie information may include the original URL information for the webpage that user accessed, the webpage information, use The advertising information etc. of family shown mistake on the webpage when the data inputted on the webpage and user access webpage, the present invention are real Apply example without limitation.Wherein, the data that user inputs on webpage can include but is not limited to the account of user's registration or login The keyword etc. inputted with password, user in searched page.
In the embodiment of the present invention, after terminal receives the access instruction of the target URL of user's input, it can respond first The access instruction obtains the cookie information stored in the local folders of terminal, which can be one, can also Be it is a plurality of, the embodiment of the present invention is without limitation.
S103, it is directed to each cookie information, terminal judges to store in the domain name and the cookie information of target URL Original URL domain name it is whether consistent, if so, continuing to execute this step S103;If it is not, thening follow the steps S104.
It, can be successively from every after terminal gets the cookie information stored in local folders in the embodiment of the present invention The original URL stored in the cookie information is extracted in one cookie information, then judge again the domain name of the original URL with Whether the domain name of target URL is consistent, if unanimously, terminal just accesses all information stored in the cookie information;If Inconsistent, terminal would not access any information stored in the cookie information.
As a kind of feasible embodiment, terminal judges to store in the domain name and the cookie information of target URL The whether consistent concrete mode of the domain name of original URL can be with are as follows:
Step 11) terminal parses target URL to obtain the first domain name, and original by what is stored in the cookie information URL parses to obtain the second domain name;
Whether step 12) terminal compares first domain name consistent with the second domain name.
In the embodiment of the present invention, terminal can respectively be solved the original URL stored in target URL and the cookie information Analysis, obtains corresponding domain name, i.e., terminal is parsed target URL to obtain the first domain name, and will be stored in the cookie information Original URL parsed to obtain the second domain name, then the first domain name and the second domain name are compared, analyze the two domains Whether name is consistent.
For example, when target URL is http://zhidao.baidu.com/question/14674128.html, Terminal is zhidao.baidu.com by the first domain name for parsing available target URL, is deposited when in the cookie information Does is the original URL of storage http://wenwen.sogou.com/s/? when sp=S domain name is with url&p=58331900, terminal is to this Original URL carries out parsing available second domain name being wenwen.sogou.com, therefore, the first domain that terminal can compare Whether name is consistent with the second domain name.
S104, step S103 judge target URL domain name and the original URL domain name it is inconsistent when, terminal is not It accesses in the cookie information, the information in addition to the original URL, and terminates this process.
It can also include the webpage letter that user accessed in cookie information in addition to original URL in the embodiment of the present invention The advertising information etc. once shown in breath and webpage, the embodiment of the present invention is without limitation.
In the embodiment of the present invention, when terminal judges the domain of the domain name of target URL and the original URL of cookie storage When name is inconsistent, terminal will not access the information in the cookie information in addition to original URL.Specifically, terminal does not access this In cookie information, information in addition to the original URL it is to be understood that terminal will not access stored in cookie information it is wide Information, user data etc. are accused, the original URL stored in the cookie information will not be visited again.
For example, it when the domain name of target URL is zhidao.baidu.com, and is stored in cookie information original When the domain name of URL is wenwen.sogou.com, terminal judges that the two domain names are inconsistent, therefore terminal will not both access this The information in addition to original URL stored in cookie information, and the original URL in the cookie information will not be accessed.
In the embodiment of the present invention, after receiving the access instruction of target URL of user's input, terminal can respond the visit It asks instruction, obtains at least one cookie information stored in local folders, be then directed to each cookie information again, sentence Whether the domain name of the original URL stored in the domain name and the cookie information of the target of breaking URL is consistent, if inconsistent, just not Access the information in the cookie information in addition to original URL.Through the embodiment of the present invention, terminal will not be accessed believes with cookie The different history access information of the domain name of original URL in breath improves user's browsing to protect the personal information of user The safety of webpage.
Referring to Fig. 2, Fig. 2 is the flow diagram that the present invention implements disclosed another information intercepting method.Wherein, scheme Method shown in 2 can be applied to smart phone (such as Android phone, iOS mobile phone), tablet computer, palm PC, movement Internet device (Mobile Internet Devices, MID) and PAD etc. are equipped in the terminal of browser application.Such as figure Shown in 2, which be may comprise steps of:
S201, terminal receive the access instruction of the destination Uniform Resource finger URL URL of user's input.
S202, terminal respond the access instruction, obtain at least one cookie information stored in local folders.
S203, it is directed to each cookie information, terminal judges to store in the domain name and the cookie information of target URL Original URL domain name it is whether consistent, if so, continuing to execute this step S203;If it is not, thening follow the steps S204.
S204, step S203 judge target URL domain name and the original URL domain name it is inconsistent when, terminal is not It accesses in the cookie information, the information in addition to the original URL.
The access instruction of target URL is sent to server by S205, terminal.
In the embodiment of the present invention, when terminal complete the domain name of original URL for judge to store in all cookie informations and After whether target URL/domain name is consistent, consistent with the domain name of target URL if there is there is the domain name of original URL, terminal can be accessed Then the access instruction of target URL is sent to by the original URL in the cookie information, advertising information, user data etc. again Server can carry any one information in advertising information and the original URL at this time in access instruction;If all The domain name of original URL in cookie information is inconsistent with the domain name of target URL, then terminal would not access these Cookie information, therefore, terminal, which is sent in the access instruction of the target URL of server, would not carry any advertising information Or original URL.
S206, terminal receive the content information that the server responds access instruction transmission.
In the embodiment of the present invention, uniform resource position mark URL be to the position of the resource that can be obtained from internet and The succinct expression of one kind of access method, is the address of standard resource on internet.Each file on internet has one Unique URL, the information that it includes point out how the position of file and browser should handle it.
In the embodiment of the present invention, content information is the file information specified by target URL on the internet, i.e. user The corresponding webpage information of the network address of input.When server receives the access instruction of the target URL of terminal transmission, server The access instruction can be responded, target URL is parsed into IP address, and according to IP address from the IP address specified by target it is whole Content information is obtained in end, wherein server identifies different terminal devices generally by IP address.Then, server will The content information of file in target terminal specified by the IP address is sent to the terminal.Therefore, terminal can receive the service The content information of transmission.Wherein, when not carrying advertising information or original URL in access instruction, which is only wrapped Include the corresponding content information of target URL;When carrying any one information in advertising information and original URL in access instruction When, it can also include the advertising information etc. in cookie information in the content information, i.e., it includes advertisement letter that terminal, which can receive, The web page content information of breath.
For example, when target URL is http://zhidao.baidu.com/question/14674128.html, Target URL can be parsed into IP address, such as 220.181.18.110 by server, and therefore, server can be looked for according to the IP address To corresponding target terminal, so as to obtain out the content information of file specified by target URL from the target terminal, That is webpage information, and the webpage information is sent to terminal.At this point, terminal will receive the target URL of server transmission Corresponding web page content information.Wherein, when not carrying advertising information or original URL in access instruction, server can only The corresponding web page content information of target URL is sent to terminal;And advertising information and original is carried in the access instruction In URL when any one information, server can be by content information corresponding to advertising information or original URL and target URL Corresponding web page content information is sent to the terminal together.
The content information is shown on display interface by S207, terminal.
In the embodiment of the present invention, display interface may include having advertisement display window, which includes fixing Advertisement position, pop-up, dynamic advertisement windows and above-mentioned form combination, the embodiment of the present invention is without limitation.Work as visit It asks in instruction when not carrying advertising information or original URL, it only can be corresponding to displaying target URL on the display interface of the terminal Content information.But if carrying any one information in advertising information and original URL in access instruction, terminal is just Advertisement display window can be distributed on its display interface to show content information corresponding to advertising information or original URL.
S208, terminal generate a new cookie information, and the new cookie information is stored in the sheet of the terminal In ground file.
In the embodiment of the present invention, after the content information received is shown on display interface by terminal, terminal can be given birth to It is stored in the local folders of terminal at a new cookie information, and by the new cookie information.
S209, terminal are stored in target URL as original URL in the new cookie information, and terminate this process.
In the embodiment of the present invention, target URL can be stored in the new cookie information generated in step S208 by terminal In.When terminal sends the access instruction of the new target URL of access next time, i.e. user enters browser application next time and inputs When network address logon web page, target URL can be used as original URL.Terminal equally judges this new target URL and the target Whether URL (i.e. original URL) is consistent.User can also be stored in new cookie information in the corresponding webpage of target URL The data of upper input and access the advertising information etc. shown in the corresponding webpage of target URL.Wherein, user is in the target The data inputted on the corresponding webpage of URL can include but is not limited to the account of user's registration or login and password, user are searching The keyword etc. of rope page input.
Referring to Fig. 3, Fig. 3 is a kind of structural schematic diagram of terminal disclosed by the embodiments of the present invention.Wherein, the terminal 300 It may include smart phone (such as Android phone, iOS mobile phone), tablet computer, palm PC, mobile internet device (Mobile Internet Devices, MID) and PAD etc., and browser application is installed in the terminal 300.Such as Fig. 3 institute Show, which may include with lower unit:
First receiving unit 301, the access instruction of the destination Uniform Resource finger URL URL for receiving user's input.
In the embodiment of the present invention, uniform resource position mark URL is by mode (or agreement), server name (or IP Location), the composition such as path and filename, for user perspective, when agreement is http protocol, by service name, road in URL The part of diameter and filename composition can be known as network address.
In the embodiment of the present invention, need to access the network address of webpage when user inputs in the browser of terminal 300, and click Into when, terminal 300 can generate an access instruction, and therefore, the first receiving unit 301 can receive the access instruction.Wherein, should Access instruction is used to indicate web page content information corresponding to 300 access target URL of terminal.
Acquiring unit 302, the access instruction received for responding above-mentioned first receiving unit 301 obtain local file At least one cookie information stored in folder.
In the embodiment of the present invention, one or more is previously stored in the corresponding file of the browser application of terminal 300 Cookie information, when these cookie informations access webpage by browser before being user, terminal 300 is automatically generated and is protected There are in local folders.Cookie information may include the original URL information for the webpage that user accessed, webpage letter Breath, user advertising information of shown mistake etc. on the webpage when the data inputted on the webpage and user access webpage, this Inventive embodiments are without limitation.Wherein, the data that user inputs on webpage can include but is not limited to user's registration or login Account and the keyword etc. that is inputted in searched page of password, user.
In the embodiment of the present invention, when the first receiving unit 301 receive user input target URL access instruction it Afterwards, acquiring unit 302 can respond the access instruction first, obtain the cookie information stored in the local folders of terminal, should Cookie information can be one, be also possible to a plurality of, and the embodiment of the present invention is without limitation.
Judging unit 303, each cookie information for getting for above-mentioned acquiring unit 302, judges the mesh Whether the domain name for marking the original URL stored in the domain name and the cookie information of URL is consistent.
In the embodiment of the present invention, after acquiring unit 302 gets the cookie information stored in local folders, judgement Then unit 303 can judge again successively from the original URL stored in the cookie information is extracted in each cookie information Whether the domain name of the original URL is consistent with the domain name of target URL, if unanimously, terminal 300 just accesses in the cookie information All information of storage;If inconsistent, trigger unit 304 will triggering terminal 300 do not access and stored in the cookie information Any information.
Trigger unit 304, for judging the domain name of target URL and the domain of the original URL in above-mentioned judging unit 303 When name is inconsistent, triggering terminal 300 is not accessed in the cookie information that above-mentioned acquiring unit 302 is got, and removes the original URL Except information.
It can also include the webpage letter that user accessed in cookie information in addition to original URL in the embodiment of the present invention The advertising information etc. once shown in breath and webpage, the embodiment of the present invention is without limitation.
In the embodiment of the present invention, when to judge that the domain name of target URL is stored with the cookie original for judging unit 303 When the domain name of URL is inconsistent, trigger unit 304 will triggering terminal 300 do not access in the cookie information in addition to original URL Information.Specifically, 304 triggering terminal 300 of trigger unit does not access in the cookie information, the letter in addition to the original URL Breath is not it is to be understood that 304 triggering terminal 300 of trigger unit accesses the advertising information stored in cookie information, user data Deng, also can triggering terminal 300 do not visit again the original URL stored in the cookie information.
For example, it when the domain name of target URL is zhidao.baidu.com, and is stored in cookie information original When the domain name of URL is wenwen.sogou.com, judging unit 303 judges that the two domain names are inconsistent, therefore trigger unit 301 meeting triggering terminals 300 will not only access the information gone out except original URL stored in the cookie information, but also will not Access the original URL in the cookie information.
In the embodiment of the present invention, after receiving the access instruction of target URL of user's input, terminal can respond the visit It asks instruction, obtains at least one cookie information stored in local folders, be then directed to each cookie information again, sentence Whether the domain name of the original URL stored in the domain name and the cookie information of the target of breaking URL is consistent, if inconsistent, just not Access the information in the cookie information in addition to original URL.Through the embodiment of the present invention, terminal will not be accessed believes with cookie The different history access information of the domain name of original URL in breath improves user's browsing to protect the personal information of user The safety of webpage.
Referring to Fig. 4, Fig. 4 is the structural schematic diagram of another terminal disclosed by the embodiments of the present invention.Wherein, the terminal 400 may include smart phone (such as Android phone, iOS mobile phone), tablet computer, palm PC, mobile internet device (Mobile Internet Devices, MID) and PAD etc., and browser application is installed in the terminal 300.Such as Fig. 4 institute Show, which may include with lower unit:
First receiving unit 401, the access instruction of the destination Uniform Resource finger URL URL for receiving user's input.
Acquiring unit 402, the access instruction received for responding above-mentioned first receiving unit 401 obtain local file At least one cookie information stored in folder.
Judging unit 403, each cookie information for getting for above-mentioned acquiring unit 402, judges the mesh Whether the domain name for marking the original URL stored in the domain name and the cookie information of URL is consistent.
In the embodiment of the present invention, after acquiring unit 402 gets the cookie information stored in local folders, judgement Then unit 403 can judge again successively from the original URL stored in the cookie information is extracted in each cookie information Whether the domain name of the original URL is consistent with the domain name of target URL, if unanimously, terminal 400 just accesses in the cookie information All information of storage;If inconsistent, trigger unit 404 will triggering terminal 400 do not access and stored in the cookie information Any information.
As a kind of feasible embodiment, judging unit 403 may include that parsing subunit 4031 and comparison are single Member 4032, in which:
Parsing subunit 4031 obtains the first domain name for parsing target URL, and will store in the cookie information Original URL parse to obtain the second domain name.
Contrast subunit 4032, for compare the first domain name that parsing subunit 4031 parses and the second domain name whether one It causes.
In the embodiment of the present invention, original that parsing subunit 4031 will can store in target URL and the cookie information respectively Beginning, URL was parsed, and obtained corresponding domain name, i.e. parsing subunit 4031 is parsed target URL to obtain the first domain name, and It is parsed the original URL stored in the cookie information to obtain the second domain name, then contrast subunit 4032 is to the first domain Name and the second domain name compare, and whether consistent analyze the two domain names.
For example, when target URL is http://zhidao.baidu.com/question/14674128.html, Parsing subunit 4031 is zhidao.baidu.com by the first domain name for parsing available target URL, when this Does is the original URL stored in cookie information http://wenwen.sogou.com/s/? sp=S domain name and url&p= When 58331900, parsing subunit 4031 the original URL is carried out parsing available second domain name be Whether wenwen.sogou.com, therefore, the first domain name that contrast subunit 4032 can compare and the second domain name are consistent.Touching Bill member 404, for judging that the domain name of target URL and the domain name of the original URL are inconsistent in above-mentioned judging unit 403 When, triggering terminal 400 does not access in the cookie information that above-mentioned acquiring unit 402 is got, the letter in addition to the original URL Breath.
In the embodiment of the present invention, the first receiving unit 401, acquiring unit 402 and trigger unit 404 are real with upper one respectively The function of applying the first receiving unit 301, acquiring unit 302 and trigger unit 304 in example is identical, and the embodiment of the present invention is herein not It repeats again.
The access instruction of transmission unit 405, the target URL for receiving above-mentioned first receiving unit 401 is sent to Server.
In the embodiment of the present invention, when judging unit 403 completes the original URL's for judging to store in all cookie informations After whether domain name and target URL/domain name are consistent, if there is, the terminal consistent with the domain name of target URL that have the domain name of original URL 400 can access original URL, advertising information, user data etc. in the cookie information, and then transmission unit 405 is again by first The access instruction for the target URL that receiving unit 401 receives is sent to server, can carry advertisement letter in access instruction at this time Breath and the original URL in any one information;If the domain name of the original URL in all cookie informations is and target The domain name of URL is inconsistent, then terminal 400 would not access these cookie informations, therefore, transmission unit 405 is sent to clothes Any advertising information or original URL would not be carried in the access instruction of the target URL of business device.
Second receiving unit 406 responds the content information of access instruction transmission for receiving the server.
In the embodiment of the present invention, uniform resource position mark URL be to the position of the resource that can be obtained from internet and The succinct expression of one kind of access method, is the address of standard resource on internet.Each file on internet has one Unique URL, the information that it includes point out how the position of file and browser should handle it.
In the embodiment of the present invention, content information is the file information specified by target URL on the internet, i.e. user The corresponding webpage information of the network address of input.When server receives the access instruction of the target URL of the transmission unit 405 transmission When, server can respond the access instruction, target URL is parsed into IP address, and signified from the IP address according to IP address Content information is obtained in fixed target terminal, wherein server identifies different terminal devices generally by IP address.So Afterwards, the content information of the file in target terminal specified by the IP address is sent to the terminal 400 by server.Therefore, Two receiving units 406 can receive the content information of service transmission.Wherein, when do not carried in access instruction advertising information or When original URL, which only includes the corresponding content information of target URL;When carrying advertising information in access instruction It can also include the advertising information etc. in cookie information and in original URL when any one information, in the content information, i.e., Second receiving unit 406 can receive include advertising information web page content information.
For example, when target URL is http://zhidao.baidu.com/question/14674128.html, Target URL can be parsed into IP address, such as 220.181.18.110 by server, and therefore, server can be looked for according to the IP address To corresponding target terminal, so as to obtain out the content information of file specified by target URL from the target terminal, That is webpage information, and the webpage information is sent to terminal 300.At this point, the second receiving unit 406 will receive server hair The corresponding web page content information of target URL sent.Wherein, when advertising information or original URL are not carried in access instruction When, the corresponding web page content information of target URL can only be sent to terminal 400 by server;And it is carried when in access instruction In advertising information and original URL when any one information, server can be by content corresponding to advertising information or original URL The terminal 300 is sent to together with information web page content information corresponding with target URL.
Display unit 407 is shown in display interface for receiving the content information that unit 406 receives for above-mentioned second On.
In the embodiment of the present invention, display interface may include having advertisement display window, which includes fixing Advertisement position, pop-up, dynamic advertisement windows and above-mentioned form combination, the embodiment of the present invention is without limitation.Work as visit It asks in instruction when not carrying advertising information or original URL, the display unit 407 can be interior corresponding to displaying target URL Hold information.But if any one information in advertising information and original URL, display unit 407 are carried in access instruction Advertisement display window will be distributed on its display interface to show content information corresponding to advertising information or original URL.
Processing unit 408, the cookie information for generating an information, and the new cookie information is stored in this In the local folders of terminal.
In the embodiment of the present invention, after the content information received is shown on display interface by display unit 407, place Reason unit 408 can generate a new cookie information, and the new cookie information is stored in the local file of terminal 400 In folder.
Storage unit 409, for using target URL as original URL be stored in that above-mentioned processing unit 408 generates it is new In cookie information.
In the embodiment of the present invention, target URL can be stored in processing unit 408 as original URL and generated by storage unit 409 New cookie information in.When next time terminal 400 sends the access instruction of the new target URL of access, i.e. user next time When into browser application and inputting network address logon web page, target URL can be used as original URL.The same meeting of judging unit 403 Judge whether this new target URL and target URL (i.e. original URL) are consistent.It can also be stored in new cookie information The data that have user to input on the corresponding webpage of target URL and accessing show wide in the corresponding webpage of target URL Accuse information etc..Wherein, the data that user inputs on the corresponding webpage of target URL can include but is not limited to user's registration or The keyword etc. that the account and password of login, user input in searched page.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.

Claims (10)

1. a kind of information intercepting method, which is characterized in that the described method includes:
Terminal receives the access instruction of the destination Uniform Resource finger URL URL of user's input;
The terminal responds the access instruction, obtains at least one cookie information stored in local folders, described The advertisement letter of shown mistake on the webpage that cookie information is the original URL for the webpage that user accessed and the user accessed Breath;
For cookie information described in each, the terminal judges in the domain name and the cookie information of the target URL Whether the domain name of the original URL of storage is consistent;
If so, the original URL and the advertising information that the terminal will access in the cookie information, by the target The access instruction of URL is sent to server, carries in the access instruction any in the original URL and the advertising information A kind of information;The terminal receives the content information that the server is sent;The content information is that the server receives The response when access instruction;The content information includes the corresponding web page content information of the target URL and described Advertising information in cookie information;
If it is not, then the terminal does not access the cookie information, the access instruction of the target URL is sent to by the terminal The server, the terminal receive the content information that the server is sent, and the content information is server reception The response of the access instruction arrived, the content information be include the corresponding web page content information of the target URL.
2. the method according to claim 1, wherein the terminal receives the content information that the server is sent Later, the method also includes:
The content information is shown on display interface by the terminal.
3. according to the method described in claim 2, it is characterized in that, the content information is shown in display interface by the terminal After upper, the method also includes:
The terminal generates a new cookie information, and the new cookie information is stored in the local of the terminal In file;
The terminal is stored in the target URL as original URL in the new cookie information.
4. described in any item methods according to claim 1~3, which is characterized in that the terminal judges the domain of the target URL Whether name is consistent with the domain name of the original URL stored in the cookie information, comprising:
The terminal parses the target URL to obtain the first domain name, and the original URL stored in the cookie information is solved Analysis obtains the second domain name;
The terminal compares first domain name and whether second domain name is consistent.
5. the method according to claim 1, wherein the content information is to receive the visit by the server After asking instruction, the target URL is parsed into IP address, and whole according to the target that the IP address is identified from the IP address The webpage information obtained in end.
6. a kind of terminal, which is characterized in that the terminal includes:
First receiving unit, the access instruction of the destination Uniform Resource finger URL URL for receiving user's input;
Acquiring unit obtains at least one cookie information stored in local folders, institute for responding the access instruction State the advertisement of shown mistake on the original URL that cookie information is the webpage that user accessed and the webpage that the user accessed Information;
Judging unit, cookie information described in each got for the acquiring unit, judges the domain of the target URL Whether name is consistent with the domain name of the original URL stored in the cookie information;
Trigger unit is when being for the judging result in the judging unit, and the cookie will be accessed by triggering the terminal The original URL and the advertising information in information, are sent to server, the visit for the access instruction of the target URL Ask any one information carried in the original URL and the advertising information in instruction;The terminal receives the server The content information of transmission;The content information is the response when server receives the access instruction;The content letter Breath includes the advertising information in the corresponding web page content information of the target URL and the cookie information;
The trigger unit is also used to when the judging result of the judging unit is no, trigger the terminal do not access it is described The access instruction of the target URL is sent to the server by cookie information, the terminal, and the terminal receives the clothes The content information that business device is sent, the content information are the response for the access instruction that the server receives, described interior Holding information to be includes the corresponding web page content information of the target URL.
7. terminal according to claim 6, which is characterized in that the terminal further include:
Display unit, for the content information received to be shown in display interface.
8. terminal according to claim 7, which is characterized in that the terminal further include:
Processing unit is stored in the terminal for generating a new cookie information, and by the new cookie information Local folders in;
Storage unit, for being stored in the target URL as original URL in the new cookie information.
9. according to the described in any item terminals of claim 6~8, which is characterized in that the judging unit includes parsing subunit And comparison unit, in which:
The parsing subunit obtains the first domain name, and the original that the cookie is stored for parsing the target URL Beginning URL parses to obtain the second domain name;
The contrast subunit, it is whether consistent for comparing first domain name and second domain name.
10. terminal according to claim 7, which is characterized in that the content information is as described in server reception After access instruction, the target URL is parsed into IP address, and the target identified according to the IP address from the IP address The webpage information obtained in terminal.
CN201510093293.7A 2015-03-02 2015-03-02 A kind of information intercepting method and terminal Active CN104680063B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510093293.7A CN104680063B (en) 2015-03-02 2015-03-02 A kind of information intercepting method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510093293.7A CN104680063B (en) 2015-03-02 2015-03-02 A kind of information intercepting method and terminal

Publications (2)

Publication Number Publication Date
CN104680063A CN104680063A (en) 2015-06-03
CN104680063B true CN104680063B (en) 2019-03-15

Family

ID=53315094

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510093293.7A Active CN104680063B (en) 2015-03-02 2015-03-02 A kind of information intercepting method and terminal

Country Status (1)

Country Link
CN (1) CN104680063B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106921622B (en) * 2015-12-25 2020-08-18 北京奇虎科技有限公司 Method and device for processing cookie information
CN107092697A (en) * 2017-04-27 2017-08-25 努比亚技术有限公司 Webpage cookie acquisition methods and device
CN110020246B (en) * 2017-11-24 2023-04-07 腾讯科技(深圳)有限公司 Terminal identification information generation method and related equipment
CN112511499B (en) * 2020-11-12 2023-03-24 视若飞信息科技(上海)有限公司 Method and device for processing AIT in HBBTV terminal

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101039317A (en) * 2006-03-14 2007-09-19 中兴通讯股份有限公司 Method for realizing browse service COOKIE of wireless application protocol gateway
CN102158493A (en) * 2011-04-15 2011-08-17 奇智软件(北京)有限公司 Cookie analyzing method, device thereof and client
CN102521760A (en) * 2011-12-02 2012-06-27 互动通天图信息技术有限公司 User data acquisition method base on internet
CN103618761A (en) * 2013-11-07 2014-03-05 北京奇虎科技有限公司 Method and browser for processing cookie information
CN103971059A (en) * 2014-05-09 2014-08-06 中国科学院计算技术研究所 Cookie local storage and usage method
CN104283903A (en) * 2013-07-01 2015-01-14 深圳市腾讯计算机系统有限公司 Downloading method for files and device thereof
CN104283839A (en) * 2013-07-02 2015-01-14 腾讯科技(深圳)有限公司 Cookie obtaining method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7359976B2 (en) * 2002-11-23 2008-04-15 Microsoft Corporation Method and system for improved internet security via HTTP-only cookies

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101039317A (en) * 2006-03-14 2007-09-19 中兴通讯股份有限公司 Method for realizing browse service COOKIE of wireless application protocol gateway
CN102158493A (en) * 2011-04-15 2011-08-17 奇智软件(北京)有限公司 Cookie analyzing method, device thereof and client
CN102521760A (en) * 2011-12-02 2012-06-27 互动通天图信息技术有限公司 User data acquisition method base on internet
CN104283903A (en) * 2013-07-01 2015-01-14 深圳市腾讯计算机系统有限公司 Downloading method for files and device thereof
CN104283839A (en) * 2013-07-02 2015-01-14 腾讯科技(深圳)有限公司 Cookie obtaining method and device
CN103618761A (en) * 2013-11-07 2014-03-05 北京奇虎科技有限公司 Method and browser for processing cookie information
CN103971059A (en) * 2014-05-09 2014-08-06 中国科学院计算技术研究所 Cookie local storage and usage method

Also Published As

Publication number Publication date
CN104680063A (en) 2015-06-03

Similar Documents

Publication Publication Date Title
US9485240B2 (en) Multi-account login method and apparatus
CN106453216A (en) Malicious website interception method, malicious website interception device and client
CN104035753A (en) Double-WebView customized page display method and system
KR102090982B1 (en) How to identify malicious websites, devices and computer storage media
CN104168316B (en) A kind of Webpage access control method, gateway
CN104680063B (en) A kind of information intercepting method and terminal
CN110266661A (en) A kind of authorization method, device and equipment
CN102541853A (en) A method and device for obtaining application information by using browser address bar
CN110430188A (en) A kind of quick url filtering method and device
CA2890866A1 (en) System and method of automatic generation and insertion of analytic tracking codes
CN106446113A (en) Mobile big data analysis method and device
CN102750352A (en) Method and device for classified collection of historical access records in browser
CN103237003B (en) To the method and apparatus that the high flowing of access in network responds
US20240281479A1 (en) Systems and Method for Domain Mapping
CN104423991A (en) Webpage loading and webpage data providing method and device of mobile terminal
CN103793495B (en) Application message search method and system and application message acquisition methods and system
KR101537555B1 (en) A direct search system for message on the instant messenger
CN103077349B (en) A kind of method of browser side prompting access secure information and device
CN103455492B (en) A kind of method and apparatus of search and webpage
CN103581321B (en) A kind of creation method of refer chains, device and safety detection method and client
CN108108381B (en) Page monitoring method and device
CN105491064B (en) A kind of method for pushing and equipment
KR101184809B1 (en) Method and server for providing web page
CN103793499A (en) Method and device for obtaining application information through address bar of browser
CN109802925A (en) A kind of authentication method and system of public WiFi access

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
CP03 Change of name, title or address

Address after: 519085 Guangdong Zhuhai science and technology innovation coastal Meizu Technology Building

Patentee after: MEIZU TECHNOLOGY Co.,Ltd.

Address before: 519080 Technology Innovation Coast Meizu science and technology building, Xiangzhou District, Zhuhai, Guangdong

Patentee before: Meizu Technology (China) Co.,Ltd.

CP03 Change of name, title or address