CN104933061B - character string detection method and device and electronic equipment - Google Patents

character string detection method and device and electronic equipment Download PDF

Info

Publication number
CN104933061B
CN104933061B CN201410102364.0A CN201410102364A CN104933061B CN 104933061 B CN104933061 B CN 104933061B CN 201410102364 A CN201410102364 A CN 201410102364A CN 104933061 B CN104933061 B CN 104933061B
Authority
CN
China
Prior art keywords
character string
domain name
address
result
name resolution
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
CN201410102364.0A
Other languages
Chinese (zh)
Other versions
CN104933061A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410102364.0A priority Critical patent/CN104933061B/en
Publication of CN104933061A publication Critical patent/CN104933061A/en
Application granted granted Critical
Publication of CN104933061B publication Critical patent/CN104933061B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a character string detection method and device and electronic equipment, and belongs to the field of computers. The method comprises the following steps: receiving a character string input in an input box; performing domain name resolution according to the character string; detecting whether the result of the domain name resolution contains an IP address; and if the detection result is that the result of the domain name resolution contains the IP address, determining that the character string is a character string corresponding to the webpage address. According to the invention, the domain name is analyzed according to the character string input by the user, whether the domain name analysis result contains the IP address is judged, if yes, the character string is determined to be the character string corresponding to the webpage address, the problem that the webpage cannot be opened correctly when the character string conforming to the URL rule is regarded as the webpage address and the webpage request is initiated in the prior art is solved, and the purposes of improving the accuracy of character string detection and saving the time of the user are achieved.

Description

Character string detection method and device and electronic equipment
Technical Field
The present invention relates to the field of computers, and in particular, to a method and an apparatus for detecting a character string, and an electronic device.
background
With the continuous development of network technology and the continuous popularization of network terminals, the proportion of networks in daily life of people is higher and higher, and people select to acquire information through network search more and more.
When a user searches on a network, the user can input a character string consisting of key words in an input box of a search engine to search related contents, and can also input a webpage address to directly jump to a related page, so that the search engine is required to detect whether the character string input in the input box by the user is the webpage address. In the existing detection method, the search engine may detect whether a character string input in the input box by the user conforms to a URL (Uniform Resource Locator) rule. If the character string accords with the URL rule, the character string is regarded as a webpage address, and a webpage request is initiated according to the character string. And if the character string does not accord with the URL rule, processing according to a common search flow.
in the process of implementing the invention, the inventor finds that the prior art has at least the following problems:
the character strings conforming to the URL rule are not necessarily all real web addresses, and when the search engine regards the character strings conforming to the URL rule as web addresses and initiates a web request, a situation that a web page cannot be opened correctly may occur, accuracy of character string detection is low, and user time is wasted.
Disclosure of Invention
In order to solve the problem that a search engine in the prior art may not open a webpage correctly when the search engine regards a character string conforming to a URL rule as a webpage address and initiates a webpage request, embodiments of the present invention provide a character string detection method, an apparatus, and an electronic device. The technical scheme is as follows:
in one aspect, a method for detecting a character string is provided, where the method includes:
Receiving a character string input in an input box;
performing domain name resolution according to the character string;
Detecting whether the result of the domain name resolution contains an IP address;
and if the detection result is that the result of the domain name resolution contains the IP address, determining that the character string is a character string corresponding to the webpage address.
in another aspect, there is provided a character string detection apparatus, the apparatus including:
The receiving module is used for receiving the character string input in the input box;
the resolution module is used for carrying out domain name resolution according to the character string;
the first detection module is used for judging whether the result of the domain name resolution contains an IP address;
and the first determining module is used for determining the character string to be the character string corresponding to the webpage address if the detection result of the first detecting module is that the result of the domain name resolution contains the IP address.
In still another aspect, an electronic device is provided, which includes:
The character string detecting apparatus according to the above aspect.
the technical scheme provided by the embodiment of the invention has the following beneficial effects:
The domain name is analyzed according to the character string input by the user, whether the IP address is contained in the domain name analysis result is judged, if yes, the character string is determined to be the character string corresponding to the webpage address, and the search engine can perform subsequent processing according to the detection result, so that the problem that the webpage cannot be opened correctly when the character string conforming to the URL rule is regarded as the webpage address and the webpage request is initiated in the prior art is solved, the accuracy of character string detection is improved, and the time of the user is saved.
Drawings
in order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow chart of a method for string detection according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method for detecting a string according to another embodiment of the present invention;
FIG. 3 is a schematic diagram of a prompt message display according to another embodiment of the present invention;
fig. 4 is a device configuration diagram of a character string detection device according to an embodiment of the present invention;
fig. 5 is a device configuration diagram of a character string detection device according to another embodiment of the present invention;
Fig. 6 is a device configuration diagram of an electronic device provided in one embodiment of the present invention.
Detailed Description
in order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Referring to fig. 1, a flowchart of a method for detecting a character string according to an embodiment of the invention is shown. The character string detection method may be used in an electronic device having a search engine, for example, the electronic device may be a smartphone, a tablet Computer, or a PC (Personal Computer) equipped with a search engine. The character string detection method may include:
In step 102, receiving a character string input in an input box;
In step 104, performing domain name resolution according to the character string;
In step 106, detecting whether the result of the domain name resolution includes an IP (Internet Protocol) address;
In step 108, if the detection result is that the result of the domain name resolution includes an IP address, it is determined that the character string is a character string corresponding to a web page address.
Because domain name resolution can be completed only in a short time, the character string detection method provided by the embodiment of the invention can detect whether the character string input by the user in the input box is related to the webpage address in a short time, and the search engine can perform subsequent processing according to the detection result, thereby avoiding webpage request on the character string which can not request the webpage correctly.
in summary, in the method for detecting a character string provided in the embodiments of the present invention, domain name resolution is performed according to a character string input by a user, and whether an IP address is included in a result of the domain name resolution is determined, if yes, the character string is determined to be a character string corresponding to a web address, and a search engine may perform subsequent processing according to a detection result, so as to solve a problem in the prior art that a web page may not be correctly opened when a character string conforming to a URL rule is regarded as a web address and a web request is initiated, thereby achieving the purposes of improving accuracy of character string detection and saving time for a user.
Referring to fig. 2, a flowchart of a method for detecting a string according to another embodiment of the invention is shown. The character string detection method can be used in an electronic device with a search engine, for example, the electronic device can be a smartphone, a tablet computer, a PC or the like which is provided with the search engine. Taking the example that the character string detection method is used for detecting whether a character string input in an input box of a search engine is a web address, the character string detection method may include:
in step 202, receiving a character string input in an input box;
taking the input box as an input box of a search engine as an example, when a user uses the search engine, the user can perform ordinary search and also can perform web page search. When the search engine detects that the content is input in the input box, the character string input in the input box can be extracted in real time and subsequent detection is carried out.
in step 204, determining whether the character string conforms to the URL rule, if yes, entering step 206, otherwise, entering step 208;
In order to reduce the detection of character strings for unnecessary content and save processing resources and detection time, the search engine may first determine whether the character strings input in the input box need to be subsequently detected, i.e., determine whether the character strings meet the URL rules.
In order to facilitate domain name resolution, the network domain name must comply with certain rules, wherein the network domain name usually consists of arabic numerals, english letters and specific symbols. If the character string in the input box of the search engine contains non-English letters, such as Chinese characters, it can be determined that the character does not conform to the URL rule of the Internet.
in step 206, performing domain name resolution on the character string, and entering step 212;
the search engine may send a Domain Name resolution request including the character string to a DNS (Domain Name System) server, and the DNS server performs Domain Name resolution on the character string and returns a resolution result.
the DNS server stores the corresponding relation between the domain name and the IP address of each webpage address, and when the network equipment requests for a webpage, the network equipment firstly requests the DNS server for the IP address corresponding to the website, and then acquires and displays webpage content from the webpage server according to the IP address. In the embodiment of the invention, when judging that the character string accords with the URL rule, the search engine sends a domain name resolution request containing the character string to the DNS server, and the DNS server carries out domain name resolution on the character string according to the domain name resolution request and returns a resolution result.
In step 208, the character string is completed, and whether the completed character string meets the URL rule is detected;
The search engine may complete the string according to the URL rules. For example, the search engine may complement the top-level domain name at the end of the character string, obtain the complemented character string, detect whether the complemented character string meets the URL rule, and perform domain name resolution on the complemented character string if the detection result indicates that the complemented character string meets the URL rule.
Specifically, the search engine extracts the input character string in real time when detecting that the content is input in the input box, so that the character string which is not input by the user is likely to be extracted, and if the character string is directly detected whether to meet the URL rule, the incomplete webpage address input by the user is likely to be erroneously determined as the character string irrelevant to the webpage address. To avoid this situation, the search engine may add a commonly used top-level domain name, such as ". com" or ". cn", at the end of the character string to complete the character string, obtain a completed character string, and further detect whether the completed character string meets the URL rule.
for example, the character string input in the input box is "www.xxyyzz", and the search engine detects that the character string does not conform to the URL rule, the character string is complemented by using the commonly used top-level domain name ". com", and the complemented character string is "www.xxyyzz.com", and at this time, the search engine further detects whether "www.xxyyzz.com" conforms to the URL rule.
in step 210, if the completed string conforms to the URL rule, performing domain name resolution on the completed string, and entering step 212;
The search engine may send a domain name resolution request including the completed character string to the DNS server, and the DNS server performs domain name resolution on the character string and returns a resolution result.
Specifically, when the search engine detects that "www.xxyyzz.com" matches the URL rule, it sends a domain name resolution request including www.xxyyzz.com to the DNS server, and the DNS server performs domain name resolution on www.xxyyzz.com.
In step 212, detecting whether the result of domain name resolution includes an IP address;
When the DNS server carries out domain name resolution, if the character string extracted from the input box or the complemented character string corresponds to the IP address according to the corresponding relation between the domain name and the IP address, returning a resolution result carrying the IP address, and if the queried corresponding IP address does not exist, returning the resolution result to be null.
In step 214, if the detection result is that the result of domain name resolution includes an IP address, the character string is determined to be a character string corresponding to the web page address.
specifically, if the character string input in the input box conforms to the URL rule and the resolution result returned by the DNS server includes an IP address, it is determined that the character string is a web page address, and the search engine can request web page data through the IP address and display a related web page. If the completed character string conforms to the URL rule and the resolution result returned by the DNS contains the IP address, the character string is determined to be a part of the webpage address, at the moment, the search engine can prompt the user to input the finished network address, and after the user finishes inputting the address, the user requests webpage data through the IP address and displays the related webpage.
in addition, if the character string or the completed character string conforms to the URL rule and the result of the domain name resolution does not include an IP address, a prompt message for prompting the user to check whether the input web address is wrong is displayed.
Specifically, when the search engine detects that the character string input by the user or the completed character string matches the URL, but the resolution result returned by the DNS server is empty, which may be caused by an error in inputting a web page address by the user, the search engine may prompt the user to check whether the input character string is the correct web page address.
For example, please refer to the schematic diagram of the prompt information display shown in fig. 3, in which a user inputs a character string "www.baiduu.com" in an input box, a search engine detects that the character string input by the user or a completed character string conforms to a URL rule, initiates a domain name resolution request to a DNS server, and detects that a received resolution result is empty, at this time, the search engine displays the prompt information in a shadow below the input box to prompt the user to check whether the input character string is a correct web page address.
In addition, when the search engine performs domain name resolution, it may also detect whether the resolved time of the domain name resolution exceeds a preset time threshold, and if the detected result is that the resolved time exceeds the time threshold, cancel the domain name resolution and determine that the domain name resolution is the character string corresponding to the web page address.
when the network condition is poor, domain name resolution may fail, and at this time, because it is not possible to determine whether the character string or the supplemented character string is the network address, the character string or the supplemented character string may be used as the network address for subsequent processing. Specifically, a time threshold may be preset, the search engine starts a timer to time after sending a domain name resolution request including a character string or a completed character string to the DNS server, when the timer times the time threshold, if an resolution result returned by the DNS is not received, it is determined that the resolution is overtime, the domain name resolution process is cancelled, the character string input by the user is determined to be a character string corresponding to the web page address, and when the user clicks a search button, the web page request is sent according to the character string.
if the search engine detects that the character string extracted from the input box does not accord with the URL rule and the completed character string does not accord with the URL rule, the character string can be processed by ordinary search.
In summary, in the method for detecting a character string provided in the embodiments of the present invention, domain name resolution is performed according to a character string input by a user, and whether an IP address is included in a result of the domain name resolution is determined, if yes, the character string is determined to be a character string corresponding to a web address, and a search engine may perform subsequent processing according to a detection result, so as to solve a problem in the prior art that a web page may not be correctly opened when a character string conforming to a URL rule is regarded as a web address and a web request is initiated, thereby achieving the purposes of improving accuracy of character string detection and saving time for a user.
In addition, the character string detection method provided by the embodiment of the invention judges whether the character string input in the input box conforms to the URL rule before performing domain name resolution, and if so, performs domain name resolution, thereby avoiding resolution of character strings obviously not belonging to the web page address, and saving processing resources and resolution time.
in addition, according to the character string detection method provided by the embodiment of the invention, when the character string in the input box is judged not to accord with the URL rule, the character string is complemented, whether the complemented character string accords with the URL rule is further detected, and when the complemented character string accords with the URL rule is detected, the complemented character string is subjected to domain name resolution, so that an error that an incomplete webpage address input by a user is judged to be a character string irrelevant to the webpage address is avoided, and the detection accuracy is improved.
in addition, according to the character string detection method provided by the embodiment of the invention, if the character string or the completed character string conforms to the URL rule and the result of domain name resolution does not include an IP address, the user is prompted to check whether the input webpage address is wrong, so that the user experience is further improved.
Referring to fig. 4, a block diagram of an apparatus for detecting a character string according to an embodiment of the present invention is shown. The character string detection apparatus may be used to execute the character string detection method shown in fig. 1 or 2 in an electronic device having a search engine, which may be a smartphone, a tablet computer, a PC, or the like, in which the search engine is installed. The string detection means may be part of a search engine. The character string monitoring apparatus may include:
A receiving module 301, configured to receive a character string input in an input box;
the resolution module 302 is configured to perform domain name resolution according to the character string;
a first detecting module 303, configured to detect whether the result of domain name resolution includes an IP address;
A first determining module 304, configured to determine that the character string is a character string corresponding to a web page address if the detection result of the first detecting module 303 is that the result of domain name resolution includes an IP address.
in summary, the character string detection device provided in the embodiment of the present invention performs domain name resolution according to the character string input by the user, and determines whether the result of the domain name resolution includes an IP address, if yes, the character string is determined to be a character string corresponding to a web address, and the search engine may perform subsequent processing according to the detection result, so as to solve the problem that a web page may not be correctly opened when the character string conforming to the URL rule is regarded as the web address and a web page request is initiated in the prior art, thereby achieving the purposes of improving the accuracy of character string detection and saving the time of the user.
referring to fig. 5, a block diagram of an apparatus for detecting a character string according to another embodiment of the present invention is shown. The character string detection apparatus may be used to execute the character string detection method shown in fig. 1 or 2 in an electronic device having a search engine, which may be a smartphone, a tablet computer, a PC, or the like, in which the search engine is installed. The string detection means may be part of a search engine. The character string monitoring apparatus may include:
A receiving module 401, configured to receive a character string input in an input box;
an analyzing module 402, configured to perform domain name analysis according to the character string;
A first detecting module 403, configured to detect whether the result of domain name resolution includes an IP address;
A first determining module 404, configured to determine that the character string is a character string corresponding to a web page address if the detection result of the first detecting module 403 is that the result of domain name resolution includes an IP address.
The parsing module 402 includes:
A determining unit 402a, configured to determine whether the character string conforms to a Uniform Resource Locator (URL) rule;
a first analyzing unit 402b, configured to perform domain name analysis on the character string if the judgment result of the judging unit 402a is that the character string meets the URL rule.
The parsing module 402 further includes:
A completion unit 402c, configured to complete the top-level domain name at the end of the character string to obtain a completed character string if the judgment result of the judgment unit 402a is that the character string does not conform to the URL rule;
A detecting unit 402d, configured to detect whether the completed character string meets a URL rule;
a second analyzing unit 402e, configured to perform domain name analysis on the supplemented character string if the detection result of the detecting unit 402d is that the supplemented character string meets the URL rule.
The device further comprises:
And a prompt module 405, configured to display a prompt message if the character string or the completed character string meets the URL rule and the result of domain name resolution does not include an IP address, where the prompt message is used to prompt a user to check whether an input web address is wrong.
The device further comprises:
A second detecting module 406, configured to detect whether the resolved time of domain name resolution exceeds a preset time threshold;
A cancellation module 407, configured to cancel the domain name resolution if the detection result of the second detection module 406 is that the resolved time exceeds the time threshold;
a second determining module 408, configured to determine the character string as a character string corresponding to the web page address.
in summary, the character string detection device provided in the embodiment of the present invention performs domain name resolution according to the character string input by the user, and determines whether the result of the domain name resolution includes an IP address, if yes, the character string is determined to be a character string corresponding to a web address, and the search engine may perform subsequent processing according to the detection result, so as to solve the problem that a web page may not be correctly opened when the character string conforming to the URL rule is regarded as the web address and a web page request is initiated in the prior art, thereby achieving the purposes of improving the accuracy of character string detection and saving the time of the user.
In addition, the character string detection device provided by the embodiment of the invention judges whether the character string input in the input box conforms to the URL rule before performing domain name resolution, and if so, performs domain name resolution, thereby avoiding resolution of character strings obviously not belonging to the web page address, and saving processing resources and resolution time.
in addition, the character string detection device provided in the embodiment of the present invention completes the character string when it is determined that the character string in the input box does not conform to the URL rule, further detects whether the completed character string conforms to the URL rule, and performs domain name resolution on the completed character string when it is detected that the completed character string conforms to the URL rule, thereby avoiding an error in determining an incomplete web address input by a user as a character string unrelated to the web address, and improving detection accuracy.
In addition, according to the character string detection device provided by the embodiment of the invention, if the character string or the completed character string meets the URL rule and the result of domain name resolution does not include an IP address, the user is prompted to check whether the input webpage address is wrong, so that the user experience is further improved.
Referring to fig. 6, an apparatus configuration diagram of an electronic apparatus according to an embodiment of the present invention is shown. The method can be used for executing the character string detection method shown in fig. 1 or fig. 2, and the electronic device can be a smartphone, a tablet computer, a PC or the like which is provided with a search engine. The electronic device may include:
such as the character string detection device 001 shown in fig. 4 or 5.
In summary, in the electronic device provided in the embodiment of the present invention, domain name resolution is performed according to a character string input by a user, and whether an IP address is included in a result of the domain name resolution is determined, if yes, the character string is determined to be a character string corresponding to a web address, and a search engine may perform subsequent processing according to a detection result, so as to solve a problem that a web page may not be correctly opened when a character string conforming to a URL rule is regarded as a web address and a web page request is initiated in the prior art, thereby achieving the purposes of improving accuracy of character string detection and saving time of a user.
in addition, the electronic device provided by the embodiment of the invention judges whether the character string input in the input box conforms to the URL rule before performing domain name resolution, and if so, performs domain name resolution, thereby avoiding resolution of character strings obviously not belonging to the web page address, and saving processing resources and resolution time.
in addition, according to the electronic device provided by the embodiment of the invention, when the character string in the input box is judged not to accord with the URL rule, the character string is complemented, whether the complemented character string accords with the URL rule is further detected, and when the complemented character string accords with the URL rule is detected, domain name resolution is performed on the complemented character string, so that an error that an incomplete webpage address input by a user is judged to be a character string irrelevant to the webpage address is avoided, and the detection accuracy is improved.
in addition, according to the electronic device provided by the embodiment of the invention, if the character string or the supplemented character string meets the URL rule and the result of domain name resolution does not include an IP address, the user is prompted to check whether the input webpage address is wrong, so that the user experience is further improved.
it should be noted that: in the above-described embodiment, when detecting a character string, the character string detection apparatus is exemplified by only dividing the functional modules, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules to complete all or part of the functions described above. In addition, the character string detection device and the character string detection method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments in detail and are not described herein again.
the above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (7)

1. A character string detection method is applied to electronic equipment, and the method comprises the following steps:
receiving a character string input in an input box in real time;
Judging whether the character string accords with a Uniform Resource Locator (URL) rule or not;
If the judgment result is that the character string does not accord with the URL rule, a top-level domain name is complemented at the tail end of the character string to obtain a complemented character string, whether the complemented character string accords with the URL rule or not is detected, if the detection result is that the complemented character string accords with the URL rule, domain name resolution is carried out on the complemented character string, wherein the character string which does not accord with the URL rule is a character string which is not input by a user;
detecting whether the result of the domain name resolution contains an IP address;
If the detection result is that the result of the domain name resolution contains the IP address, determining that the character string is a part of the webpage address, and prompting the user to input a webpage address;
And if the detection result is that the result of the domain name resolution does not contain the IP address, displaying prompt information, wherein the prompt information is used for prompting the user to check whether the input webpage address is wrong.
2. The method of claim 1, wherein after determining whether the character string complies with a Uniform Resource Locator (URL) rule, further comprising:
And if the judgment result is that the character string conforms to the URL rule, performing domain name resolution on the character string.
3. The method of claim 1, further comprising:
Detecting whether the resolved time of the domain name resolution exceeds a preset time threshold;
And if the detection result is that the analyzed time exceeds the time threshold, canceling the domain name analysis and determining the character string to be the character string corresponding to the webpage address.
4. a character string detection device, applied to an electronic device, the device comprising:
The receiving module is used for receiving the character string input in the input box in real time;
The resolution module is used for carrying out domain name resolution according to the character string;
the first detection module is used for judging whether the result of the domain name resolution contains an IP address;
a first determining module, configured to determine that the character string is a part of a web address if a detection result of the first detecting module is that the result of domain name resolution includes an IP address, and prompt the user to input a web address to be completed;
the prompting module is used for displaying prompting information if the detection result is that the result of the domain name resolution does not contain the IP address, wherein the prompting information is used for prompting a user to check whether the input webpage address is wrong or not;
wherein, the analysis module comprises:
The judging unit is used for judging whether the character string accords with a Uniform Resource Locator (URL) rule or not;
A completion unit, configured to complete a top-level domain name at the end of the character string to obtain a completed character string if the judgment result of the judgment unit indicates that the character string does not meet the URL rule, where the character string that does not meet the URL rule is a character string that is not completely input by the user;
The detection unit is used for detecting whether the completed character string accords with a URL rule or not;
and the second analysis unit is used for carrying out domain name analysis on the supplemented character string if the detection result of the detection unit indicates that the supplemented character string conforms to the URL rule.
5. the apparatus of claim 4, wherein the parsing module further comprises:
And the first analysis unit is used for carrying out domain name analysis on the character string if the judgment result of the judgment unit shows that the character string conforms to the URL rule.
6. the apparatus of claim 4, further comprising:
the second detection module is used for detecting whether the analyzed time of the domain name analysis exceeds a preset time threshold value;
A cancellation module, configured to cancel the domain name resolution if the detection result of the second detection module is that the resolved time exceeds the time threshold;
and the second determining module is used for determining the character string as the character string corresponding to the webpage address.
7. an electronic device, characterized in that the electronic device comprises:
The character string detecting apparatus as claimed in any one of claims 4 to 6.
CN201410102364.0A 2014-03-19 2014-03-19 character string detection method and device and electronic equipment Active CN104933061B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410102364.0A CN104933061B (en) 2014-03-19 2014-03-19 character string detection method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410102364.0A CN104933061B (en) 2014-03-19 2014-03-19 character string detection method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN104933061A CN104933061A (en) 2015-09-23
CN104933061B true CN104933061B (en) 2019-12-10

Family

ID=54120229

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410102364.0A Active CN104933061B (en) 2014-03-19 2014-03-19 character string detection method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN104933061B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110069678A (en) * 2019-04-12 2019-07-30 中国银行股份有限公司 A kind of data processing method and device
CN110928709B (en) * 2019-11-21 2023-08-29 中国民航信息网络股份有限公司 Service calling method and device under micro-service framework and server

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7325045B1 (en) * 2003-08-05 2008-01-29 A9.Com, Inc. Error processing methods for providing responsive content to a user when a page load error occurs
CN1967534A (en) * 2006-11-06 2007-05-23 魏新成 Immediately suggested online search results in process of input character string in address search column
CN100585599C (en) * 2007-10-31 2010-01-27 北京搜狗科技发展有限公司 Network resource address input method and input method system
CN101477540A (en) * 2009-01-21 2009-07-08 佛朗索瓦·卢克·科利侬 URL rewriting method and equipment
CN102456063A (en) * 2011-03-02 2012-05-16 奇智软件(北京)有限公司 Webpage access error correction method and system
CN102801814A (en) * 2012-08-29 2012-11-28 易莲无限(北京)科技发展有限责任公司 Internet access method, device and system

Also Published As

Publication number Publication date
CN104933061A (en) 2015-09-23

Similar Documents

Publication Publication Date Title
CN108092962B (en) Malicious URL detection method and device
US10484424B2 (en) Method and system for security protection of account information
CN109768992B (en) Webpage malicious scanning processing method and device, terminal device and readable storage medium
CN111835777B (en) Abnormal flow detection method, device, equipment and medium
WO2016188029A1 (en) Method and device for parsing two-dimensional code, computer readable storage medium, computer program product and terminal device
WO2017000439A1 (en) Detection method, system and device for malicious behaviour, and computer storage medium
WO2019109529A1 (en) Webpage identification method, device, computer apparatus, and computer storage medium
WO2019076014A1 (en) Webpage generation method and apparatus, terminal device and medium
US20150026813A1 (en) Method and system for detecting network link
US20130290898A1 (en) Method for presenting prompt message, terminal and server
CN105635064B (en) CSRF attack detection method and device
CN103986731A (en) Method and device for detecting phishing web pages through picture matching
CN113316926A (en) Domain name processing method and device, electronic equipment and storage medium
CN108898014B (en) Virus checking and killing method, server and electronic equipment
CN107508832A (en) A kind of device-fingerprint recognition methods and system
CN107786529B (en) Website detection method, device and system
CN111143722A (en) Method, device, equipment and medium for detecting webpage hidden link
CN104933061B (en) character string detection method and device and electronic equipment
CN114244795A (en) Information pushing method, device, equipment and medium
CN111125704B (en) Webpage Trojan horse recognition method and system
CN103902906A (en) Mobile terminal malicious code detecting method and system based on application icon
CN114900492B (en) Abnormal mail detection method, device and system and computer readable storage medium
US20130230248A1 (en) Ensuring validity of the bookmark reference in a collaborative bookmarking system
CN111131236A (en) Web fingerprint detection device, method, equipment and medium
WO2020073493A1 (en) Sql injection vulnerability detection method, apparatus and device, and readable storage medium

Legal Events

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