CN103685494B - Cookies recognition methods and device and Cookies method for cleaning and device - Google Patents

Cookies recognition methods and device and Cookies method for cleaning and device Download PDF

Info

Publication number
CN103685494B
CN103685494B CN201310652671.1A CN201310652671A CN103685494B CN 103685494 B CN103685494 B CN 103685494B CN 201310652671 A CN201310652671 A CN 201310652671A CN 103685494 B CN103685494 B CN 103685494B
Authority
CN
China
Prior art keywords
cookies
automatically
files
targeted website
logging
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
CN201310652671.1A
Other languages
Chinese (zh)
Other versions
CN103685494A (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 CN201310652671.1A priority Critical patent/CN103685494B/en
Publication of CN103685494A publication Critical patent/CN103685494A/en
Application granted granted Critical
Publication of CN103685494B publication Critical patent/CN103685494B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The present invention discloses a kind of Cookies recognition methods and device and Cookies method for cleaning and device, belongs to Internet technical field.The Cookies recognition methods includes:Targeted website is logged in using preprepared username and password, the corresponding Cookies listed files in the targeted website is obtained;The targeted website is carried out logging in test automatically successively using the various combinations of one or more of Cookies listed files Cookies files;According to the automatic Cookies file set relevant with logging in automatically for logging in test result, obtaining the targeted website.In accordance with the invention it is possible to conveniently and efficiently identify the Cookies file set relevant with logging in automatically.

Description

Cookies recognition methods and device and Cookies method for cleaning and device
Technical field
The present invention relates to Internet technical field, and in particular to a kind of Cookies recognition methods and device and Cookies Method for cleaning and device.
Background technology
Cookies is the text being placed in by Web server in subscriber computer hard disk or internal memory when user browses web sites File, it can record the information such as user name, password, browsed webpage and the residence time of user.When user steps on again During the website of land, the relevant information of user is learnt, it is possible to make phase in website by reading the Cookies files in computer The action answered, for example, showing welcome sign in the page, or allows user without inputting username and password just directly login etc. Deng.
Most of content in Cookies files have passed through encryption, therefore apparently simply some have no general user The alphanumeric of meaning.Some existing instruments can read Cookies field and field respective value, such as IeCookiesView, ChromeCookiesView etc..
Reference picture 1, for ieCookiesView, it reads in the Cookies files of ie browsers, lists the Cookies The attribute of file, such as web site (website), hits (hits), accessed date (last access date), modified Date (modification date), created date (building maths modec), size (size), user (user) and filename (files Name) etc., and the information included in the Cookies files is listed, according to key (key), value (value), domain (domain name), Secure (security), expiration date (expiration date), modified date (modification date) and created in (foundation) provides corresponding value respectively.
As can be seen that it is only to be showed the content of Cookies files that existing Cookies, which reads instrument, it is impossible to give Go out the specific effect of Cookies files.For example, some websites are that username and password is stored with Cookies files, and log in One website often produces multiple Cookies files, but reads instrument according to existing Cookies, it is impossible to know which is Or which Cookies file stores username and password information.So, can not just the automatic premise for logging in website ensured Under, carry out the cleaning of Cookies files.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on State Cookies recognition methods and device and Cookies method for cleaning and the device of problem.
According to an aspect of the invention, there is provided a kind of Cookies recognition methods, including:
Targeted website is logged in using preprepared username and password, the targeted website is obtained corresponding Cookies listed files;
Using the various combinations of one or more of Cookies listed files Cookies files successively to described Targeted website carries out logging in test automatically;
According to the automatic Cookies file set relevant with logging in automatically for logging in test result, obtaining the targeted website Close.
Alternatively, the various combinations using one or more of Cookies listed files Cookies files The targeted website is carried out successively to log in test automatically, including:
The targeted website is stepped on automatically after deleting a Cookies file from Cookies listed files every time Land is tested;
If can log in automatically, it is determined that the Cookies files of deletion are unrelated with logging in automatically, carry out next time automatic Log in test;
If can not log in automatically, it is determined that the Cookies files of deletion are relevant with logging in automatically, by deletion Cookies file access patterns to being logged in test after current Cookies listed files next time automatically.
Alternatively, the various combinations using one or more of Cookies listed files Cookies files The targeted website is carried out successively to log in test automatically, including:
Since n=1, n Cookies file is chosen to the targeted website from the Cookies listed files every time Progress logs in test automatically;
If can log in automatically, it is determined that n Cookies file of selection is relevant with logging in automatically, stopping is stepped on automatically Land is tested;
If n takes and can not logged in automatically during currency every time, make and proceed described to log in automatically after n=n+1 Test.
Alternatively, it is described to log in targeted website using preprepared username and password, obtain the targeted website Corresponding Cookies listed files, including:
The homepage of browser is set to the url of the targeted website;
Empty all Cookies files of browser;
Browser is opened, the targeted website is logged in using preprepared username and password;
Browser is closed, Cookies files row are obtained from the Cookies storage catalogues of browser or Cookies storehouses Table, obtains the corresponding Cookies listed files in the targeted website.
According to another aspect of the present invention there is provided a kind of Cookies method for cleaning, including:
Obtain the Cookies file set relevant with logging in automatically obtained according to above-mentioned Cookies recognition methods;
Delete other in addition to the Cookies file set relevant with logging in automatically in user equipment Cookies files.
According to a further aspect of the invention there is provided a kind of Cookies identifying devices, including:
Cookies list acquiring units, are adapted in use to preprepared username and password to log in targeted website, obtain The corresponding Cookies listed files in the targeted website;
Test cell, various groups suitable for using one or more of Cookies listed files Cookies files Close and the targeted website is carried out logging in test automatically successively;
Cookies recognition units, suitable for logging in test result according to automatic, obtain the targeted website with logging in automatically Relevant Cookies file sets.
Alternatively, the test cell is further adapted for:
The targeted website is stepped on automatically after deleting a Cookies file from Cookies listed files every time Land is tested;
If can log in automatically, it is determined that the Cookies files of deletion are unrelated with logging in automatically, carry out next time automatic Log in test;
If can not log in automatically, it is determined that the Cookies files of deletion are relevant with logging in automatically, by deletion Cookies file access patterns to being logged in test after current Cookies listed files next time automatically.
Alternatively, the test cell is further adapted for:
Since n=1, n Cookies file is chosen to the targeted website from the Cookies listed files every time Progress logs in test automatically;
If can log in automatically, it is determined that n Cookies file of selection is relevant with logging in automatically, stopping is stepped on automatically Land is tested;
If n takes and can not logged in automatically during currency every time, make and proceed described to log in automatically after n=n+1 Test.
Alternatively, the Cookies lists acquiring unit is further adapted for:
The homepage of browser is set to the url of the targeted website;
Empty all Cookies files of browser;
Browser is opened, the targeted website is logged in using preprepared username and password;
Browser is closed, Cookies files row are obtained from the Cookies storage catalogues of browser or Cookies storehouses Table, obtains the corresponding Cookies listed files in the targeted website.
According to a further aspect of the invention there is provided a kind of Cookies cleaning plants, including:
Cookies recognition result acquiring units, obtained suitable for obtaining according to above-mentioned Cookies identifying devices with it is automatic Log in relevant Cookies file sets;
Cookies clears up unit, suitable for deleting in user equipment except the Cookies file relevant with logging in automatically Other Cookies files outside set.
According to the above-mentioned one or more technical schemes of the present invention, using the corresponding Cookies listed files in targeted website One or more of Cookies files various combinations successively to the targeted website carry out log in test automatically, according to oneself It is dynamic to log in test result, the Cookies file set relevant with logging in automatically can be conveniently and efficiently identified, so that convenient use Family is used.
Further, when carrying out Cookies cleanings, it can be retained according to Cookies recognition results with having logged in automatically The Cookies file sets of pass, so as to ensure that user remains able to log in targeted website automatically.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the embodiment of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit is common for this area Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows that a kind of existing Cookies reads the runnable interface of instrument;
Fig. 2 shows the flow chart according to one embodiment of the invention Cookies recognition methods;
Fig. 3 shows the interface for carrying out website logins in the embodiment of the present invention by automatic form filling;
Fig. 4 shows the flow chart according to one embodiment of the invention Cookies method for cleaning;
Fig. 5 shows the structure chart according to one embodiment of the invention Cookies identifying devices;
Fig. 6 shows the structure chart according to one embodiment of the invention Cookies cleaning plants.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Complete conveys to those skilled in the art.
Fig. 2 shows the flow chart according to one embodiment of the invention Cookies recognition methods.Reference picture 2, methods described It can include:
Step 202, targeted website is logged in using preprepared username and password, obtains the targeted website correspondence Cookies listed files;
Can be by operating in user equipment (such as computer, smart mobile phone and personal digital assistant (PDA)) Code or plug-in unit are realized to be logged in the automatic of targeted website, to obtain the corresponding Cookies listed files in targeted website, certainly, The corresponding Cookies listed files in targeted website can also be obtained using other any means.
As shown in figure 3, using code or plug-in unit can complete user name, the input of password by automatic form filling and log in Triggering, it is conventional meanses that it, which is implemented, for example, can use the means provided in following network address:http:// yuanzhym.blog.163.com/blog/static/262117720088257847902/。
One that the corresponding Cookies listed files in targeted website is obtained using code or plug-in unit given below is specific real It is existing, comprise the following steps:
First, the homepage of browser is set to the url of the targeted website, for example, for Taobao website, its url is http://www.taobao.com/。
Then, all Cookies files (ensureing that data are clean) of browser are emptied, for example, for ie browsers, Described empty can be carried out in accordance with the following steps:Click tools menu, selects internet option, clicks on conventional tags, point Deletion cookies buttons are hit, confirming button is clicked in acknowledgement window, confirming button is clicked on and closes " internet option " window Mouthful;
Secondly, browser is opened, the targeted website is logged in using preprepared username and password, for example, can Taobao website is logged in apply for the username and password of a test in Taobao website;
Finally, browser is closed, Cookies texts are obtained from the Cookies storage catalogues of browser or Cookies storehouses Part list, obtains the corresponding Cookies listed files in the targeted website.For example, in Windows 9X component computers, The deposit position of Cookies files is C:/ Windows/Cookies, in Windows NT/2000/XP computer, The deposit position of Cookies files is C:/ Documents and Settings/ user names/Cookies, are closed after browser, Cookies listed files can be got from above position.
Wherein, the Cookies files in the Cookies listed files can be used as major key using domain name (domain) field Storage.
Step 204, using one or more of Cookies listed files Cookies files various combinations according to It is secondary that the targeted website is carried out to log in test automatically;
Log in a website and often produce multiple Cookies files, and have one or several in these Cookies files Individual preservation username and password is used to log in automatically.So, in this step using these various possibility of Cookies files Combination to targeted website carry out log in test automatically, can determine it is each combine whether can log in the targeted website automatically.
Step 206, log in test result according to automatic, obtain the targeted website with log in automatically it is relevant Cookies file sets.
According to step 204, the various combinations for the Cookies files that can log in the targeted website automatically have been got, In step 206, it is possible to filtered out from various combinations including the minimum combination of Cookies quantity of documents as the mesh Mark the Cookies file set relevant with logging in automatically of website.
It can be seen that, technical scheme according to embodiments of the present invention, using in the corresponding Cookies listed files in targeted website The various combinations of one or more Cookies files carry out logging in test automatically successively to the targeted website, according to stepping on automatically Land test result, can conveniently and efficiently identify the Cookies file set relevant with logging in automatically, so as to facilitate user to make With
One kind of step 204 given below is implemented, and its realization principle is:Deleted one by one from Cookies listed files Except the Cookies file unrelated with logging in automatically, the Cookies listed files finally obtained be with log in automatically it is relevant Cookies file sets (minimal set).Specifically it may include steps of:
The targeted website is stepped on automatically after deleting a Cookies file from Cookies listed files every time Land is tested;
If can log in automatically, it is determined that the Cookies files of deletion are unrelated with logging in automatically, carry out next time automatic Log in test;
If can not log in automatically, it is determined that the Cookies files of deletion are relevant with logging in automatically, by deletion Cookies file access patterns to being logged in test after current Cookies listed files next time automatically;
Stop logging in test automatically after all Cookies files unrelated with logging in automatically, which are deleted, to be finished, finally obtain Cookies listed files be the Cookies file set (minimal set) relevant with logging in automatically.
For example, it is assumed that logging in the Cookies files row got behind Taobao website using the username and password of test Table includes 4 Cookies files, is Cookies1, Cookies2, Cookies3 and Cookies4 respectively, and assume Cookies2+Cookies4 is the minimal set that can be logged in automatically, then the process screened is as follows:
Cookies1 is deleted, carries out logging in test with Cookies2+Cookies3+Cookies4, as a result for can be automatic Log in, it is determined that Cookies1 is unrelated with logging in automatically, current Cookies listed files include Cookies2, Cookies3 and Cookies4;
Cookies2 is deleted, carries out logging in test with Cookies3+Cookies4, as a result for that can not log in automatically, then Determine that Cookies2 is relevant with logging in automatically, restore it in Cookies listed files, current Cookies listed files Still Cookies2, Cookies3 and Cookies4 are included;
Cookies3 is deleted, carries out logging in test with Cookies2+Cookies4, as a result for that can log in automatically, then really Determine that Cookies3 is unrelated with logging in automatically, current Cookies listed files includes Cookies2 and Cookies4;
Cookies4 is deleted, carries out logging in test with Cookies3, as a result can not to log in automatically, it is determined that Cookies4 is relevant with logging in automatically, restores it in Cookies listed files, current Cookies listed files still Including Cookies2 and Cookies4.
So, the Cookies file set relevant with logging in automatically finally obtained is Cookies2 and Cookies4.
The another of step 204 given below is implemented, and its realization principle is:Selected from Cookies listed files The various combinations of Cookies files carry out logging in test, the Cookies quantity of documents that testing sequence includes according to combination one by one From small to large, if using certain combination can successful log, the combination is the Cookies file relevant with logging in automatically Set.Specifically it may include steps of:
Since n=1, n Cookies file is chosen to the targeted website from the Cookies listed files every time Progress logs in test automatically;
If can log in automatically, it is determined that n Cookies file of selection is relevant with logging in automatically, stopping is stepped on automatically Land is tested;
If n takes and can not logged in automatically during currency every time, make and proceed described to log in automatically after n=n+1 Test.
For example, it is assumed that logging in the Cookies files row got behind Taobao website using the username and password of test Table includes 4 Cookies files, is Cookies1, Cookies2, Cookies3 and Cookies4 respectively, and assume Cookies2+Cookies4 is the minimal set that can be logged in automatically, then the process screened is as follows:
The first round, n=1 chooses a Cookies file and carries out logging in test, for example, using respectively every time Cookies1, Cookies2, Cookies3 and Cookies4 are logged in, and as a result can not be logged in automatically, into the second wheel;
Second wheel, n=2 chooses two Cookies files and carries out logging in test, possible combination has 6 kinds every time, point It is not:Cookies1+Cookies2, Cookies1+Cookies3, Cookies1+Cookies4, Cookies2+Cookies3, Cookies2+Cookies4, Cookies3+Cookies4, carry out logging in test in the order described above, first 4 times can not be automatic Log in, the 5th can be logged in automatically, stop test (i.e. Cookies3+Cookies4's is no longer tested from conjunction), finally obtain The Cookies file set relevant with logging in automatically obtained is Cookies2 and Cookies4.
Certainly, if it is possible to which the minimal set logged in automatically includes 3 Cookies files, then the test knot of preceding two-wheeled Fruit is can not to log in automatically every time, and the Cookies text relevant with logging in automatically can be successfully got when third round is tested Part set.
Although it should be noted that giving 2 kinds of specific screening modes above, those skilled in the art can also adopt With other possible various screening modes, the embodiment of the present invention is not restricted to this.
As it was previously stated, logging in a website often produces multiple Cookies files, and have in these Cookies files One or several, which preserve username and password, is used to log in automatically, can by using the above method of the embodiment of the present invention To identify the Cookies file set relevant with logging in automatically, it is possible to using all Cookies files according to domain as Major key is stored.When implementing, it is " storage user name password " that can increase each Cookies files an attribute, Sky is defaulted as, may remind the user that those Cookies files are relevant with logging in automatically according to the attribute.So, carrying out When Cookies is cleared up, it is possible to retain the Cookies file set relevant with logging in automatically according to Cookies recognition results, So as to ensure that user remains able to log in targeted website automatically.
Fig. 4 shows the flow chart according to one embodiment of the invention Cookies method for cleaning.Reference picture 4, methods described It can include:
Step 402, the Cookies file relevant with logging in automatically obtained according to above-mentioned Cookies recognition methods is obtained Set;
Step 404, its in addition to the Cookies file set relevant with logging in automatically in user equipment is deleted His Cookies files, the user equipment can be computer, smart mobile phone and personal digital assistant (PDA) etc..
The device for realizing above-mentioned Cookies recognition methods and Cookies method for cleaning is provided individually below.
Fig. 5 shows the structure chart according to one embodiment of the invention Cookies identifying devices.Reference picture 5, it is described Cookies identifying devices can include Cookies lists acquiring unit 502, test cell 504 and Cookies recognition units 506, wherein:
Cookies lists acquiring unit 502 is adapted in use to preprepared username and password to log in targeted website, obtains Take the corresponding Cookies listed files in the targeted website.Cookies lists acquiring unit 502 can be obtained as follows Take the corresponding Cookies listed files in the targeted website:The homepage of browser is set to the url of the targeted website;Clearly All Cookies files of empty browser;Browser is opened, the target is logged in using preprepared username and password Website;Browser is closed, Cookies listed files is obtained from the Cookies storage catalogues of browser or Cookies storehouses, Obtain the corresponding Cookies listed files in the targeted website.Wherein, the Cookies files in the Cookies listed files It can be stored using domain name (domain) field as major key.
Test cell 504 is suitable to using the various of one or more of Cookies listed files Cookies files Combination carries out logging in test automatically successively to the targeted website.Log in a website and often produce multiple Cookies files, And having one or several to preserve username and password in these Cookies files is used to log in automatically.So, test is single Member 504 carries out logging in test automatically using the various possible combinations of these Cookies files to targeted website, can determine each group Whether conjunction can log in the targeted website automatically.
Cookies recognition units 506 are suitable to log in test result according to automatic, obtain the targeted website with stepping on automatically Lu Youguan Cookies file sets.Cookies recognition units 506 can be sieved from the various combinations that test cell 504 is obtained Select including the minimum combination of Cookies quantity of documents as the targeted website the Cookies relevant with logging in automatically File set.
Wherein, a kind of realization principle of test cell 504 is:Deleted one by one with stepping on automatically from Cookies listed files Lu Wuguan Cookies files, the Cookies listed files finally obtained is the Cookies file relevant with logging in automatically Gather (minimal set).Specifically, test cell 504 can carry out logging in test automatically as follows:
The targeted website is stepped on automatically after deleting a Cookies file from Cookies listed files every time Land is tested;
If can log in automatically, it is determined that the Cookies files of deletion are unrelated with logging in automatically, carry out next time automatic Log in test;
If can not log in automatically, it is determined that the Cookies files of deletion are relevant with logging in automatically, by deletion Cookies file access patterns to being logged in test after current Cookies listed files next time automatically.
Wherein, another realization principle of test cell 504 is:Cookies files are selected from Cookies listed files Various combinations carry out logging in test one by one, the Cookies quantity of documents that testing sequence includes according to combination from small to large, such as Fruit using certain combination can successful log, then the combination is the Cookies file set relevant with logging in automatically.Specifically Ground, test cell 504 can carry out logging in test automatically as follows:
Since n=1, n Cookies file is chosen to the targeted website from the Cookies listed files every time Progress logs in test automatically;
If can log in automatically, it is determined that n Cookies file of selection is relevant with logging in automatically, stopping is stepped on automatically Land is tested;
If n takes and can not logged in automatically during currency every time, make and proceed described to log in automatically after n=n+1 Test.
Although it should be noted that giving 2 kinds of specific implementations of test cell 504, art technology above Personnel can also use other possible various implementations, and the embodiment of the present invention is not restricted to this.
Fig. 6 shows the structure chart according to one embodiment of the invention Cookies cleaning plants.Reference picture 6, it is described Cookies cleaning plants can include:
Cookies recognition results acquiring unit 602, obtained suitable for the Cookies identifying devices described in acquisition with it is automatic Log in relevant Cookies file sets;
Cookies clears up unit 604, suitable for deleting in user equipment except the Cookies relevant with logging in automatically Other Cookies files outside file set, the user equipment can be computer, smart mobile phone and personal digital assistant (PDA) etc..
In summary, one or more technical schemes according to embodiments of the present invention, corresponding using targeted website The various combinations of one or more of Cookies listed files Cookies files carry out automatic to the targeted website successively Test is logged in, according to test result is logged in automatically, the Cookies file relevant with logging in automatically can be conveniently and efficiently identified Set, so as to be user-friendly.Further, when carrying out Cookies cleanings, it can be protected according to Cookies recognition results The Cookies file set relevant with logging in automatically is stayed, so as to ensure that user remains able to log in targeted website automatically.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with based on teaching in this.As described above, construct required by this kind of system Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It is understood that, it is possible to use it is various Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the specification that this place is provided, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, exist Above in the description of the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required to protect The application claims of shield features more more than the feature being expressly recited in each claim.More precisely, such as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself All as the separate embodiments of the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit is required, summary and accompanying drawing) disclosed in each feature can or similar purpose identical, equivalent by offer alternative features come generation Replace.
Although in addition, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of be the same as Example does not mean in of the invention Within the scope of and form different embodiments.For example, in the following claims, times of embodiment claimed One of meaning mode can be used in any combination.
The present invention all parts embodiment can be realized with hardware, or with one or more processor run Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that can use in practice Microprocessor or digital signal processor (DSP) come realize Cookies identifying devices according to embodiments of the present invention and The some or all functions of some or all parts in Cookies cleaning plants.The present invention is also implemented as being used for The some or all equipment or program of device of method as described herein are performed (for example, computer program and calculating Machine program product).Such program for realizing the present invention can be stored on a computer-readable medium, or can have one Or the form of multiple signals.Such signal can be downloaded from internet website and obtained, or be provided on carrier signal, Or provided in any other form.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of some different elements and coming real by means of properly programmed computer It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame Claim.

Claims (8)

1. a kind of Cookies recognition methods, including:
Targeted website is logged in using preprepared username and password, the corresponding Cookies texts in the targeted website are obtained Part list;
Using the various combinations of one or more of Cookies listed files Cookies files successively to the target Website carries out logging in test automatically;Specifically include:Delete right after a Cookies file from Cookies listed files every time The targeted website carries out logging in test automatically;If can log in automatically, it is determined that the Cookies files of deletion with stepping on automatically Lu Wuguan, is logged in test automatically next time;If can not log in automatically, it is determined that the Cookies files of deletion with from It is dynamic to log in relevant, survey will be logged in automatically next time after the Cookies file access patterns of deletion to current Cookies listed files Examination;
According to the automatic Cookies file set relevant with logging in automatically for logging in test result, obtaining the targeted website.
2. Cookies recognition methods as claimed in claim 1, wherein, one in the use Cookies listed files The various combinations of individual or multiple Cookies files carry out logging in test automatically successively to the targeted website, specifically also include:
Since n=1, choose n Cookies file from the Cookies listed files every time and the targeted website is carried out Automatically test is logged in;
If can log in automatically, it is determined that n Cookies file of selection is relevant with logging in automatically, stopping logs in survey automatically Examination;
If n takes and can not logged in automatically during currency every time, make and proceed described to log in test automatically after n=n+1.
3. Cookies recognition methods as claimed in claim 1, wherein, it is described to use preprepared username and password Targeted website is logged in, the corresponding Cookies listed files in the targeted website is obtained, including:
The homepage of browser is set to the url of the targeted website;
Empty all Cookies files of browser;
Browser is opened, the targeted website is logged in using preprepared username and password;
Browser is closed, Cookies listed files is obtained from the Cookies storage catalogues of browser or Cookies storehouses, is obtained To the corresponding Cookies listed files in the targeted website.
4. a kind of Cookies method for cleaning, including:
Obtain that Cookies recognition methods according to any one of claim 1 to 3 obtains with log in automatically it is relevant Cookies file sets;
Delete other Cookies texts in addition to the Cookies file set relevant with logging in automatically in user equipment Part.
5. a kind of Cookies identifying devices, including:
Cookies list acquiring units, are adapted in use to preprepared username and password to log in targeted website, obtain described The corresponding Cookies listed files in targeted website;
Test cell, suitable for the various combinations using one or more of Cookies listed files Cookies files according to It is secondary that the targeted website is carried out to log in test automatically;It is particularly adapted to:One is deleted from Cookies listed files every time The targeted website is carried out after Cookies files to log in test automatically;If can log in automatically, it is determined that deletion Cookies files are unrelated with logging in automatically, logged in test automatically next time;If can not log in automatically, it is determined that delete The Cookies files removed are relevant with logging in automatically, after the Cookies file access patterns of deletion to current Cookies listed files Logged in test automatically next time;
Cookies recognition units, suitable for logging in test result according to automatic, obtain the targeted website with log in automatically it is relevant Cookies file sets.
6. Cookies identifying devices as claimed in claim 5, wherein, the test cell is specifically further adapted for:
Since n=1, choose n Cookies file from the Cookies listed files every time and the targeted website is carried out Automatically test is logged in;
If can log in automatically, it is determined that n Cookies file of selection is relevant with logging in automatically, stopping logs in survey automatically Examination;
If n takes and can not logged in automatically during currency every time, make and proceed described to log in test automatically after n=n+1.
7. Cookies identifying devices as claimed in claim 5, wherein, the Cookies lists acquiring unit is further fitted In:
The homepage of browser is set to the url of the targeted website;
Empty all Cookies files of browser;
Browser is opened, the targeted website is logged in using preprepared username and password;
Browser is closed, Cookies listed files is obtained from the Cookies storage catalogues of browser or Cookies storehouses, is obtained To the corresponding Cookies listed files in the targeted website.
8. a kind of Cookies cleaning plants, including:
Cookies recognition result acquiring units, suitable for obtaining the Cookies identifications according to any one of claim 5 to 7 The Cookies file set relevant with logging in automatically that device is obtained;
Cookies clears up unit, suitable for deleting in user equipment except the Cookies file set relevant with logging in automatically Outside other Cookies files.
CN201310652671.1A 2013-12-05 2013-12-05 Cookies recognition methods and device and Cookies method for cleaning and device Active CN103685494B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310652671.1A CN103685494B (en) 2013-12-05 2013-12-05 Cookies recognition methods and device and Cookies method for cleaning and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310652671.1A CN103685494B (en) 2013-12-05 2013-12-05 Cookies recognition methods and device and Cookies method for cleaning and device

Publications (2)

Publication Number Publication Date
CN103685494A CN103685494A (en) 2014-03-26
CN103685494B true CN103685494B (en) 2017-09-19

Family

ID=50321769

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310652671.1A Active CN103685494B (en) 2013-12-05 2013-12-05 Cookies recognition methods and device and Cookies method for cleaning and device

Country Status (1)

Country Link
CN (1) CN103685494B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104392170A (en) * 2014-11-17 2015-03-04 国云科技股份有限公司 Cookie security testing method
CN107092697A (en) * 2017-04-27 2017-08-25 努比亚技术有限公司 Webpage cookie acquisition methods and device
CN108563759B (en) * 2018-04-17 2022-05-24 泰康保险集团股份有限公司 Method for clearing login user, device storage medium and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030018707A1 (en) * 2001-07-20 2003-01-23 Flocken Philip Andrew Server-side filter for corrupt web-browser cookies
CN101651671A (en) * 2008-08-14 2010-02-17 鸿富锦精密工业(深圳)有限公司 Inter-system subscriber identity authentication system and method
CN102346823B (en) * 2010-08-03 2016-02-03 腾讯科技(深圳)有限公司 The method and system that in a kind of internet, user logs in
CN102495855B (en) * 2011-11-21 2013-09-25 奇智软件(北京)有限公司 Automatic login method and device

Also Published As

Publication number Publication date
CN103685494A (en) 2014-03-26

Similar Documents

Publication Publication Date Title
CN103678487B (en) Method and device for generating web page snapshot
CN103744853B (en) The method and device of Research of Search Engine Website Snapshot System information is provided
CN103618698B (en) The processing method and processing device of cookie information
CN103401835A (en) Method and device for presenting safety detection results of microblog page
CN107908959A (en) Site information detection method, device, electronic equipment and storage medium
CN102968451B (en) The browser form page loads method and the client of website data
CN103634317A (en) Method and system of performing safety appraisal on malicious web site information on basis of cloud safety
CN102982117B (en) Information search method and device
CN103078967B (en) A kind of generate conventional network address client terminal, server, system and method
CN103297469A (en) Method and device of collecting website data
CN102982118B (en) Searching method and device based on favorites
CN105959371A (en) Webpage sharing system
CN104462985A (en) Detecting method and device of bat loopholes
CN103647678A (en) Method and device for online verification of website vulnerabilities
CN104468790A (en) Method for processing cookie data and client side
CN106992981A (en) A kind of website back door detection method, device and computing device
CN104699837B (en) Method, device and server for selecting illustrated pictures of web pages
McCalley et al. Analysis of back-doored phishing kits
CN103685494B (en) Cookies recognition methods and device and Cookies method for cleaning and device
Dadkhah et al. An approach for preventing the indexing of hijacked journal articles in scientific databases
CN103618742A (en) Method and system for acquiring sub domain names and webmaster permission verification method
CN103618760B (en) Processing method of cookie information in browser and browser
Sivanesan et al. A google chromium browser extension for detecting XSS attack in html5 based websites
CN104361094A (en) Storage method and device for file in search result, and browser client
CN108388796A (en) Dynamic domain name verification method, system, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 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
TR01 Transfer of patent right

Effective date of registration: 20220714

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.