CN109670123A - A kind of method and apparatus of data processing - Google Patents
A kind of method and apparatus of data processing Download PDFInfo
- Publication number
- CN109670123A CN109670123A CN201811626363.0A CN201811626363A CN109670123A CN 109670123 A CN109670123 A CN 109670123A CN 201811626363 A CN201811626363 A CN 201811626363A CN 109670123 A CN109670123 A CN 109670123A
- Authority
- CN
- China
- Prior art keywords
- character
- parameter
- string
- separating
- pair
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/70—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
- G06F21/71—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information
Abstract
A kind of method and device of the application for data processing, after determining URL to be processed, first determine that first character is bebinning character in parameter character string, the mark character nearest apart from the bebinning character is determined again, as the first character, judged in the parameter character string after the separating character nearest apart from first character later, whether there is also others to identify character, if determining in the parameter character string after the separating character, the mark character nearest apart from the separating character, as the second character, and in the parameter character string before determining second character, the separating character nearest apart from second character, as third character, parameter pair is determined according to the bebinning character and the third character, and really this determines third character the latter character for bebinning character again, parameter is redefined to until determining Until all parameters pair, separating character is not present if not or after first character, it is determined that the parameter character string is a parameter pair.
Description
Technical field
This application involves network communication technology field, the method and apparatus for being specifically designed a kind of data processing.
Background technique
Uniform resource locator (Uniform Resource Locator, URL) is a kind of to can obtain from internet
The position of the resource arrived and a kind of succinct expression of access method, are the addresses of standard resource on internet.URL uses the U.S.
In standard code for information interchange (American Standard Code for Information Interchange, ASCII)
Character indicate the address of internet.The general format of URL be " agreement: // user name: password@domain name: port numbers/catalogue/
Filename file suffixes? parameter # mark ".
Wherein, " parameter " part is usually by several pairs of parameters to forming.Every a pair of parameter is to " parameter name=parameter value "
Format write.Wherein, using "=" character as mark, by parameter to parameter name part and parameter value part is divided into, herein
It is middle that "=" character is referred to as mark character.When parameter centering does not include parameter value, the content of parameter value part can be omitted.Example
Such as, parameter is 1 to the entitled a parameter value of parameter in " a=1 ", and parameter is sky to the entitled b parameter value of parameter in " b=".Also, work as
" parameter " partially includes multiple parameters clock synchronization, and each parameter is divided to using " & " character as separating character.
Since the content of " parameter " this part in URL is the configuration parameter that user is committed to server, make server root
Execute business according to " parameter " that carries in the URL, therefore by distorting to " parameter " in URL, can to server into
Row attack.
In the prior art, in order to defend this attack, the equipment such as server or gateway can be in the URL received
" parameter " legitimacy is verified, and executes corresponding business again after being verified.And due to " parameter " can partially carry it is multiple
Parameter pair, thus before authentication firstly the need of to the parameter in " parameter " to carry out cutting, so as to for each parameter into
Row legitimate verification.
Specifically, in the prior art, to " parameter " cutting process in URL, be first using " & " character as separating character,
It is different parameters pair by " parameter " part cutting.The each parameter pair obtained again for cutting, is looked into from first character sequence
It askes and whether there is "=" character, if so, first "=" character to find determines the parameter centering for mark character
Parameter name and parameter value (when the parameter centering there are when multiple "=" characters, determine first "=" character for mark character,
His "=" character is considered a part of parameter value), if not, it is determined that the parameter is to only parameter name.In addition, if
Separating character (that is, " & " character) is not found in " parameter ", it is determined that " parameter " part only includes the parameter of a parameter pair
Name.
But when due to " parameter " attack server of utilization URL, the parameter value or parameter name of parameter centering may also
It include " & " character, there are still defects for the method for cutting " parameter " in the prior art, therefore the application provides a kind of new data
Processing method.
Summary of the invention
In view of this, the application provides a kind of method and apparatus of data processing, make the parameter in the URL determined to more
It is accurate to add.
Specifically, the application is achieved by the following technical solution:
A kind of method of data processing, comprising:
First character in the parameter character string that uniform resource position mark URL to be processed is carried, is determined as banner word
Symbol;
From the parameter character string, the mark character nearest apart from the bebinning character is determined, as the first character;
If judging there are separating character apart from first character in the parameter character string after first character
In the parameter character string after nearest separating character, if there is also others to identify character;
If the determination result is YES, then from the parameter character string after the separating character, described point of distance is determined
Every the nearest mark character of character, as the second character, and from the parameter character string before second character, really
The nearest separating character of second character described in set a distance, as third character, according to the bebinning character and the third word
It accords with and determines parameter pair, the latter character of the third character is redefined as bebinning character, to redefine parameter pair, directly
Until determining all parameters pair in the parameter character string;
If is separating character is not present in the parameter character string after no or described first character in judging result, really
The fixed parameter character string is a parameter pair.
A kind of device of data processing, comprising:
Locating module determines first character in the parameter character string of uniform resource position mark URL carrying to be processed
For bebinning character;
Determining module determines the mark character nearest apart from the bebinning character from the parameter character string, as the
One character;
Judgement and processing module,
If judging there are separating character apart from first character in the parameter character string after first character
In the parameter character string after nearest separating character, if there is also others to identify character, if the determination result is YES,
Then from the parameter character string after the separating character, the mark character nearest apart from the separating character is determined, make
For the second character, and from the parameter character string before second character, determination is nearest apart from second character
Separating character parameter pair is determined according to the bebinning character and the third character, by the third as third character
The latter character of character is redefined as bebinning character, to redefine parameter pair, until determining the parameter character string
In all parameters pair until, if judging result be in the parameter character string after no or first character there is no point
Every character, it is determined that the parameter character string is a parameter pair.
By the above technical solution provided by the present application as it can be seen that after determining URL to be processed, parameter character string is first determined
Middle first character is bebinning character, then determines that the mark character nearest apart from the bebinning character is sentenced later as the first character
In the parameter character string after the turn-off separating character nearest from first character, if there is also others to identify character,
If determining in the parameter character string after the separating character, the mark character nearest apart from the separating character, as
In the parameter character string before second character, and determining second character, the separating character nearest apart from second character,
As third character, parameter pair is determined according to the bebinning character and the third character, and again really this to determine third character latter
A character is bebinning character, redefines parameter to until determining all parameters pair, if not or after first character
There is no separating characters, it is determined that the parameter character string is a parameter pair.The application according to URL configuration parameter pair internet
Standard, it is determined that the method for rule searching mark character and separating character in a certain order determines the ginseng of the URL one by one
Parameter pair in numeric string.Directly according to separating character " & " come the method for dividing parameter pair in compared to the prior art, avoid
When in parameter name or parameter value including " " character, on determining that parameter influences bring, improve in determining parameter character string
The accuracy of parameter pair.
Detailed description of the invention
Fig. 1 is a kind of flow chart of data processing shown in the application;
Fig. 2 to 5 is the determination parameter shown in the application to each character determination process schematic diagram in the process;
Fig. 6 is a kind of device of data processing shown in the application.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application.
It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority
Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps
It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from
In the case where the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determination ".
Referring to Figure 1, Fig. 1 is a kind of flow chart of data processing shown in the application, and detailed process is as follows:
Step 101: determining first character in the parameter character string of uniform resource position mark URL carrying to be processed, be
Bebinning character.
In the embodiment of the present application, the process of the data processing is the parameter pair that parameter character string includes in determining URL
Process so that it is subsequent can according to the parameter determined to execute other business (e.g., judge whether URL legal, determines configuration parameter
Etc.).Then, the data handling procedure can be executed by the equipment such as server or gateway, the equipment for receiving URL, this certain Shen
Please for specifically execute the data processing business equipment be which kind of equipment without limitation.For the convenience of description, after the application
In continuous embodiment, it is illustrated so that server executes the data handling procedure as an example.
Specifically, server after receiving URL to be processed, can first determine parameter character string in the URL.And it should
First character in parameter character string searches cutting parameter pair so that subsequent step is based on the original character as bebinning character
Position.
Parameter character string described herein, " parameter " in URL as above-mentioned.Be located in namely URL "? " word
Character after symbol before " # " character, thus the bebinning character be specially in the URL "? " character after character.
For example, some URL of vacation is https: //www.XXX.com:82/APP1/1.aspx? a=1&b=2, then server
Can determine after receiving the URL "? " character (that is, " a " character) after character is bebinning character.
It should be noted that in the embodiment of the present application, mark character is specially "=" character, and separating character is specially
" & " character.
Step 102: from the parameter character string, the mark character nearest apart from the bebinning character is determined, as the
One character.
Due to if there is the parameter pair of complete " parameter name=parameter value " format, parameter character in parameter character string
It there will necessarily be mark character (that is, "=" character) in string, therefore in order to determine in the parameter character string with the presence or absence of complete ginseng
Several right, in the embodiment of the present application, which can determine the mark character nearest apart from the bebinning character, and as the first word
Symbol.The situation of cutting mistake is caused to occur to avoid directly searching separating character (that is, " " character), again so as to subsequent step
Separating character is searched from first character.
Specifically, server can be since the bebinning character, according to the sequence after arriving first, after searching bebinning character
Mark character in parameter character string, and determine first mark character found, as the first character.
For example, it is assumed that server determines that the parameter character string of some URL is " a=1&b=2&3&4&c=5 ", then in determination
After " a " character is bebinning character out, server is nearest apart from bebinning character by determining according to the sequential search after arriving first
"=" character is the first character, as shown in Figure 2.Fig. 2 is the schematic diagram of the first character of determination provided in the embodiment of the present application.Clothes
Device determining " a " be engaged in as after bebinning character, it may be determined that "=" character thereafter is the first character.
In addition, then illustrating the parameter character due to being also possible to out in first parameter character string the case where there is no mark characters
It only include parameter name in string, without the parameter value of the corresponding parameter name, if therefore server lookup result is that there is no marks
Character, then server can directly determine the parameter name that all characters of the parameter character string are a parameter pair.Also, due to
Have confirmed parameter pair all in the URL, therefore server can determine data processed result, and all according to what is determined
Parameter is to other business of execution.
Step 103: if there are separating characters in the parameter character string after first character, judging described in distance
In the parameter character string after the nearest separating character of first character, if there is also others to identify character, if then
Step 104 is executed, separating character is not present in the parameter character string if not or after first character, thens follow the steps
105。
In the embodiment of the present application, server can determine the starting by judging twice after determining the first character
Being in parameter character string after character only includes a parameter pair, or comprising multiple parameters pair, if including multiple parameters pair
Execute step 104, however, it is determined that only include a parameter pair, then follow the steps 105.
It can also continue to judge in the parameter character string after first character with the presence or absence of separating character, if so, can be into
Row judges in next step, if it is not, only including then a parameter pair in the parameter character string after the described bebinning character, step can be performed
Rapid 105.Also, when, there are when separating character, server can further judge distance in the parameter character string after the first character
In parameter character string after the nearest separating character of first character, if there is also other identifier characters, if then illustrating
Parameter pair is contained at least two in parameter character string after the bebinning character, step 104 is executed, if otherwise illustrating the banner word
Only comprising a parameter to execution step 105 in parameter character string after symbol.
Specifically, due to being had confirmed in a step 102 in the presence of mark character, thus may determine that the parameter character string
In at least there is a parameter pair, and each character before the parameter entitled bebinning character to the first character of the parameter pair.In
It is the process that server can be judged twice in step 103, server can determine whether deposit after first character first
In separating character, if parameter pair may be contained at least two in parameter character string after then illustrating the bebinning character, need
It carries out second to judge, if only including a parameter pair in the parameter character string after otherwise illustrating the bebinning character, executes step
Rapid 105.
Further, it needs to carry out second to judge if server determines, judges point nearest apart from first character
In parameter character string after character, if there are other identifier characters, if so, determining the parameter after the bebinning character
Parameter pair is contained at least two in character string, is needed to continue to divide parameter character string, is executed step 104, if not, it is determined that the ginseng
There is no other parameters right in numeric string, executes step 105.
Continue to use the example above, in parameter character string " a=1&b=2&3&4&c=5 ", server be can determine from left to right
First "=" character in sequence is the first character, judges that there is also separating characters after the first character later, then carries out the
Secondary judgement still remains other identifier character, then services in the character string after the nearest separating character of the first character
Device, which determines, executes step 104, as shown in Figure 3.
Fig. 3 is the schematic diagram that server provided by the embodiments of the present application is judged twice, and the first character is the 2nd word
It according with, in character string thereafter, the 4th, 8,10 and 12 character is separating character, therefore server carries out second and judges,
Determine that the 2nd nearest separating character of character of distance is the 4th character (dark signs in figure), judge after the 4th character whether
There are also other identifier characters, then can determine that the 6th and the 14th character is also mark character, it is thus determined that executing step 104.
Step 104: from the parameter character string after the separating character, determination is nearest apart from the separating character
Mark character, as the second character, and from the parameter character string before second character, determine distance described in
The nearest separating character of second character determines parameter according to the bebinning character and the third character as third character
It is right, the latter character of the third character is redefined as bebinning character, to redefine parameter pair, until determining institute
Until stating all parameters pair in parameter character string.
In the embodiment of the present application, if server judging result is the ginseng after the nearest separating character of the first character of distance
There are other mark characters in numeric string, then explanation at least has two from the parameter character string after the bebinning character
A parameter pair, therefore server can first determine the content of the wherein parameter pair comprising bebinning character, redefine starting again later
Character repeats the process of step 102,103, to continue to determine parameter pair, until determining all in the parameter character string
Until parameter pair.
Specifically, server can determine in step 103 first when determining the content of the parameter pair comprising bebinning character
In parameter character string after separating character, the mark character nearest apart from the separating character, as the second character.
Secondly as in normal parameter pair in parameter name do not include mark character, thus determine that the second word
Symbol, it is believed that be the mark character of another parameter pair adjacent with the parameter comprising the bebinning character.Then, server can be from
In parameter character string before second character, the separating character nearest apart from second character is determined, as third character.Then
The third character is then the separating character between the corresponding parameter pair of the second character parameter pair corresponding with the first character.
Then, server can determine parameter pair according to bebinning character, the first character and third character is determined.Specifically
, it determining in the parameter character string, the character before from the bebinning character to first character is the parameter name of the parameter centering,
Determine in the parameter character string, after first character to the character before the third character be the parameter pair parameter value.
Finally, due to include also other parameters pair in the parameter character string, therefore server can redefine the third word
Symbol the latter character is bebinning character, repeats the above steps and redefines parameter pair, until determining institute in the parameter character string
Until having parameter pair.
Continue to use the example above, in parameter character string " a=1&b=2&3&4&c=5 ", the first character is the 2nd character,
Server can continue to determine based on the 4th character that nearest mark character after the 4th character of distance, i.e. the 6th character are
Second character determines the nearest separating character of the front distance of the 6th character, i.e. the 4th character, as third character again later.
As shown in figure 4, Fig. 4 is the schematic diagram that server provided by the embodiments of the present application determines second and third character.
After determining second and third character, server determines bebinning character " a " to the word between the 2nd character "="
Symbol is the parameter name of parameter pair, i.e. parameter is entitled " a ", from the 2nd character "=" after to before the 4th character " "
Character is the parameter value of parameter pair and parameter value is " 1 ".
Further, it is bebinning character that server, which can redefine the character " b " after the 4th character " & ", repeats step
102, then the 6th character "=", which can be redefined, as the first character determines that there are separating characters after the 6th character later, and away from
It is redefined there are also other identifier character it is thus determined that repeating step 104 after from the 6th nearest separating character of character
The distance separating character is most after the 6th nearest separating character of character of distance (that is, the 8th character, label is in Fig. 5)
Close mark character (that is, the 14th character) is the second character, redefines the nearest separation word of the front distance of the 14th character
It accords with (that is, the 12nd character), is third character, as shown in Figure 5.So that it is determined that the parameter of next parameter pair is entitled " b ", parameter
Value is " 2&3&4 ", etc..Until determining all parameters pair.
Step 105: determining that the parameter character string is a parameter pair.
In the embodiment of the present application, if server determines the character string after the separating character nearest apart from first character
In, there is no separating character is not present in the parameter character string after other mark characters or first character, then can determine
A parameter pair is only existed in the parameter character string, then server can determine the parameter pair according to first character.
Specifically, server can determine in the parameter character string, the word before from the bebinning character to first character
Symbol is the parameter name of parameter centering, is the parameter value of the parameter pair from the character after first character.
Continue to use the example above, it is assumed that in parameter character string " a=1&b=2&3&4&c=5 ", the banner word that redefines
Then for " c " (that is, the 13rd character), server can determine that the first character is the 14th character to symbol, and after the 14th character
There is no separating characters, then can determine that the 13rd character is the parameter name (that is, parameter is entitled " c ") of parameter pair, the parameter pair
Parameter value is all characters (that is, parameter value is " 5 ") after the 14th character.
Assuming that some parameter character string is " abc=2&3 ", server determines that bebinning character is the 1st character (that is, character
" a "), determine that the first character is the 4th character, there are separating character (that is, the 6th characters) later for first character, but sentence
Break and other identifier character is not present after the separating character, step 105 is then executed, before determining bebinning character to the first character
Character is the parameter name of parameter pair, that is, parameter is entitled " abc ", and the character after the first character is parameter value, that is, parameter value
For 2&3.
Further, when server determine all parameters of parameter character string in URL to be processed to after, Bian Kegen
It is not limited this according to each parameter determined to follow-up business, the application is executed.For example, can be according to each parameter determined
It is right, the parameter pair for not meeting redaction rule is judged whether there is, if then determining that the URL carries attack parameter, needs to carry out
Risk control etc..
By the above technical solution provided by the present application as it can be seen that after receiving URL to be processed, server can be determined first
First character is bebinning character in parameter character string, then determines the mark character nearest apart from the bebinning character, as first
Character judges in the character string after the separating character nearest apart from first character, if there is also other identifier words later
Symbol determines that distance should as the second character and inverted order if then sequence determines the mark character nearest apart from the separating character
The nearest separating character of second character determines parameter pair according to described first and third character, and again as third character
Determine that third character the latter character is bebinning character, until determining all parameters pair, if not or first character
Separating character is not present afterwards, then basis states first character and determines parameter pair.
It can be seen that the application is by searching mark character and separating character according to predetermined order, determining one by one should
Parameter pair in the parameter character string of URL.The side of parameter pair is directly divided in compared to the prior art according to separating character " & "
Method when avoiding in parameter name or parameter value comprising " & " character, determining parameter is influenced on bring, improves determining parameter
The accuracy of parameter pair in character string.
Referring to FIG. 6, Fig. 6 is a kind of device of data processing shown in the application, which includes:
Locating module 201 determines first character in the parameter character string of uniform resource position mark URL carrying to be processed
Symbol is bebinning character;
Determining module 202 determines the mark character nearest apart from the bebinning character from the parameter character string, makees
For the first character;
Judgement and processing module 203 are sentenced if there are separating characters in the parameter character string after first character
In the parameter character string after the turn-off separating character nearest from first character, if there is also other identifier words
Symbol if the determination result is YES then from the parameter character string after the separating character, is determined apart from the separating character
Nearest mark character as the second character, and from the parameter character string before second character, determines distance
The nearest separating character of second character is determined as third character according to the bebinning character and the third character
The latter character of the third character is redefined as bebinning character by parameter pair, to redefine parameter pair, until determining
Out until all parameters pair in the parameter character string, if judging result is the parameter after no or described first character
Separating character is not present in character string, it is determined that the parameter character string is a parameter pair.
The determining module 202, if there is no mark characters in the parameter character string, it is determined that the parameter character string
In all characters be a parameter pair parameter name.
The judgement and processing module 203, determine in the parameter character string, from the bebinning character to first word
Character before symbol is the parameter name of parameter centering, and is determined in the parameter character string, after first character to
Character before the third character is the parameter value of the parameter pair.
The judgement and processing module 203, determine in the parameter character string, from the bebinning character to first word
Character before symbol is the parameter name of parameter centering, and determines in the parameter character string, after first character
Character is the parameter value of the parameter pair.
The mark character is "=" in ASCII ASCII, and the separating character is in ASCII
" & ".
The function of modules and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus
Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit
The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with
It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual
The purpose for needing to select some or all of the modules therein to realize application scheme.Those of ordinary skill in the art are not paying
Out in the case where creative work, it can understand and implement.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.
Claims (10)
1. a kind of method of data processing, comprising:
It determines first character in the parameter character string of uniform resource position mark URL carrying to be processed, is bebinning character;
From the parameter character string, the mark character nearest apart from the bebinning character is determined, as the first character;
If judging nearest apart from first character there are separating character in the parameter character string after first character
Separating character after the parameter character string in, if there is also others identify characters;
If the determination result is YES, then it from the parameter character string after the separating character, determines apart from the separation word
Accord with nearest mark character, as the second character, and from the parameter character string before second character, determine away from
The separating character nearest from second character, it is true according to the bebinning character and the third character as third character
Determine parameter pair, the latter character of the third character is redefined as bebinning character, to redefine parameter pair, until really
Until making all parameters pair in the parameter character string;
If judging result is there is no separating characters in the parameter character string after no or described first character, it is determined that institute
Stating parameter character string is a parameter pair.
2. the method according to claim 1, wherein the method also includes:
If there is no mark characters in the parameter character string, it is determined that all characters are a ginseng in the parameter character string
Several pairs of parameter name.
3. the method according to claim 1, wherein being determined according to the bebinning character and the third character
Parameter pair specifically includes:
It determines in the parameter character string, the character before from the bebinning character to first character is the ginseng of parameter centering
It is several;And
Determine in the parameter character string, after first character to the character before the third character be the parameter
Pair parameter value.
4. the method according to claim 1, wherein determining that the parameter character string is a parameter pair, specifically
Include:
It determines in the parameter character string, the character before from the bebinning character to first character is the ginseng of parameter centering
It is several;And
It determines in the parameter character string, the character after first character is the parameter value of the parameter pair.
5. method according to any one of claims 1 to 4, which is characterized in that the mark character is U.S. information exchange
"=" in standard code ASCII, the separating character are " & " in ASCII.
6. a kind of device of data processing, comprising:
Locating module determines first character in the parameter character string of uniform resource position mark URL carrying to be processed, for starting
Character;
Determining module determines the mark character nearest apart from the bebinning character, as the first word from the parameter character string
Symbol;
Judgement and processing module judge distance if there are separating characters in the parameter character string after first character
In the parameter character string after the nearest separating character of first character, if there is also others to identify character, if
Judging result be it is yes, then from the parameter character string after the separating character, determination it is nearest apart from the separating character
Mark character, as the second character, and from the parameter character string before second character, determine distance described in
The nearest separating character of second character determines parameter according to the bebinning character and the third character as third character
It is right, the latter character of the third character is redefined as bebinning character, to redefine parameter pair, until determining institute
Until stating all parameters pair in parameter character string, if judging result is the parameter character after no or described first character
Separating character is not present in string, it is determined that the parameter character string is a parameter pair.
7. device according to claim 6, which is characterized in that the determining module, if not deposited in the parameter character string
In mark character, it is determined that all characters are the parameter name of a parameter pair in the parameter character string.
8. device according to claim 6, which is characterized in that the judgement and processing module determine the parameter character
In string, the character before from the bebinning character to first character is the parameter name of parameter centering, and determines the ginseng
In numeric string, after first character to the character before the third character be the parameter pair parameter value.
9. device according to claim 6, which is characterized in that the judgement and processing module determine the parameter character
In string, the character before from the bebinning character to first character is the parameter name of parameter centering, and determines the ginseng
It is the parameter value of the parameter pair from the character after first character in numeric string.
10. according to the described in any item devices of claim 6 to 9, which is characterized in that the mark character is U.S. information exchange
"=" in standard code ASCII, the separating character are " & " in ASCII.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811626363.0A CN109670123B (en) | 2018-12-28 | 2018-12-28 | Data processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811626363.0A CN109670123B (en) | 2018-12-28 | 2018-12-28 | Data processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109670123A true CN109670123A (en) | 2019-04-23 |
CN109670123B CN109670123B (en) | 2021-02-26 |
Family
ID=66147471
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811626363.0A Active CN109670123B (en) | 2018-12-28 | 2018-12-28 | Data processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109670123B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1290371A (en) * | 1998-02-13 | 2001-04-04 | 微软公司 | Segmentation of Chinese text into words |
CN103530336A (en) * | 2013-09-30 | 2014-01-22 | 北京奇虎科技有限公司 | Equipment and method for identifying invalid parameters in URLs |
US9330093B1 (en) * | 2012-08-02 | 2016-05-03 | Google Inc. | Methods and systems for identifying user input data for matching content to user interests |
US20170344655A1 (en) * | 2016-05-31 | 2017-11-30 | Bootstrap Collective LLC | System And Method Of Creating And Processing Semantic URL |
CN108319589A (en) * | 2018-03-14 | 2018-07-24 | 腾讯科技(深圳)有限公司 | Parameter string processing method, apparatus, computer readable storage medium and equipment |
-
2018
- 2018-12-28 CN CN201811626363.0A patent/CN109670123B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1290371A (en) * | 1998-02-13 | 2001-04-04 | 微软公司 | Segmentation of Chinese text into words |
US9330093B1 (en) * | 2012-08-02 | 2016-05-03 | Google Inc. | Methods and systems for identifying user input data for matching content to user interests |
CN103530336A (en) * | 2013-09-30 | 2014-01-22 | 北京奇虎科技有限公司 | Equipment and method for identifying invalid parameters in URLs |
US20170344655A1 (en) * | 2016-05-31 | 2017-11-30 | Bootstrap Collective LLC | System And Method Of Creating And Processing Semantic URL |
CN108319589A (en) * | 2018-03-14 | 2018-07-24 | 腾讯科技(深圳)有限公司 | Parameter string processing method, apparatus, computer readable storage medium and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109670123B (en) | 2021-02-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20190207972A1 (en) | Entity ip mapping | |
CN106919555B (en) | System and method for field extraction of data contained within a log stream | |
EP2411913B1 (en) | Method and system for identifying suspected phishing websites | |
US9369418B2 (en) | Determining additional information associated with geographic location information | |
CN105141605B (en) | Session method, Website server and browser | |
JP7029003B2 (en) | Password protection Question setting method and device | |
CN106453216A (en) | Malicious website interception method, malicious website interception device and client | |
CN107688733B (en) | Service interface calling method, device, user terminal and readable storage medium | |
CN106681921B (en) | Method and device for realizing data parameterization | |
JP2009017298A (en) | Data analysis apparatus | |
CN103227786A (en) | Method and device for filling in website login information | |
CN109951475A (en) | Multi-platform user account information synchronous method and system, server | |
CN105049546B (en) | A kind of Dynamic Host Configuration Protocol server is the method and device of client distribution IP address | |
CN109600458B (en) | Website access method and device | |
US8910281B1 (en) | Identifying malware sources using phishing kit templates | |
WO2015000342A1 (en) | Method and client device for accessing webpage | |
CN111224878B (en) | Route forwarding method and device, electronic equipment and storage medium | |
Thakur et al. | Cybersecurity fundamentals: a real-world perspective | |
CN111209029A (en) | Code modification determination method and device, electronic equipment and storage medium | |
EP3211539A1 (en) | Text segmentation | |
EP3790260B1 (en) | Device and method for identifying network devices in a nat based communication network | |
CN109670123A (en) | A kind of method and apparatus of data processing | |
US20220350686A1 (en) | Application programming interface (api) and site discovery via request similarity | |
US20230112092A1 (en) | Detecting visual similarity between dns fully qualified domain names | |
CN116192445A (en) | User login verification method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for 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: 20210616 Address after: 310051 05, room A, 11 floor, Chung Cai mansion, 68 Tong Xing Road, Binjiang District, Hangzhou, Zhejiang. Patentee after: Hangzhou Dip Information Technology Co.,Ltd. Address before: 6 / F, Zhongcai building, 68 Tonghe Road, Binjiang District, Hangzhou City, Zhejiang Province Patentee before: Hangzhou DPtech Technologies Co.,Ltd. |