CN110347955A - A kind of resource detection method and device - Google Patents

A kind of resource detection method and device Download PDF

Info

Publication number
CN110347955A
CN110347955A CN201910461625.0A CN201910461625A CN110347955A CN 110347955 A CN110347955 A CN 110347955A CN 201910461625 A CN201910461625 A CN 201910461625A CN 110347955 A CN110347955 A CN 110347955A
Authority
CN
China
Prior art keywords
resource
offline
cited
released
cms
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910461625.0A
Other languages
Chinese (zh)
Other versions
CN110347955B (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.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201910461625.0A priority Critical patent/CN110347955B/en
Publication of CN110347955A publication Critical patent/CN110347955A/en
Priority to PCT/CN2020/088786 priority patent/WO2020238567A1/en
Application granted granted Critical
Publication of CN110347955B publication Critical patent/CN110347955B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/14Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
    • H04L63/1441Countermeasures against malicious traffic
    • H04L63/1466Active attacks involving interception, injection, modification, spoofing of data unit addresses, e.g. hijacking, packet injection or TCP sequence number attacks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/14Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
    • H04L63/1441Countermeasures against malicious traffic
    • H04L63/1483Countermeasures against malicious traffic service impersonation, e.g. phishing, pharming or web spoofing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Environmental & Geological Engineering (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A kind of resource detection method and device, to realize the dead chain in automatic detection webpage or document.In the application, detection device receives the first detection instruction for being directed to resource to be released, the URL link of the resource to be referred in resource to be released is obtained according to the first detection instruction, detection device can judge the state of resource of being cited according to the URL link for the resource that is cited, if the resource that is cited is in down status, illustrating to issue resource to be released will lead to resource to be released and cannot normally jump, detection device can produce the first prompt information, first prompt information can also be sent to CMS, wherein, first prompt information is for prompting publication resource to be released that can generate failure URL link.Before resource to be released publication, resource to be released dead chain situation that may be present can be detected in advance, there are dead chain, the webpage or document that can effectively reduce publication can also be improved user experience there are the probability of dead chain.

Description

A kind of resource detection method and device
Technical field
This application involves field of communication technology more particularly to a kind of resource detection methods and device.
Background technique
User can be jumped between webpage during browsing web sites or surfing the Internet, to show in needed for user Hold, jumping between webpage is due to there are adduction relationship, when the content on webpage needs to update, such as deleting former between webpage First content, increase new content etc., the adduction relationship between webpage may change.
Exist in the webpage cited in the announced webpage and does not issue or offline webpage, user should in browsing When announced webpage, if browsing webpage cited in the webpage, dead chain can occur, that is, user accesses the net being not present Page returns to the states such as 404, will affect user experience in this way.
Currently, detecting the mode of dead chain, user feedback is relied primarily on, if user has found dead chain when browsing webpage, feedback Website maintenance personnel are given, to be repaired.This mode, dependent on the feedback of user, dead chain discovery and not in time, efficiency compared with It is low, while also influencing whether user experience.
Summary of the invention
The application provides a kind of resource detection method and device, to detect the dead chain in webpage or document automatically.
In a first aspect, the embodiment of the present application provides a kind of resource detection method, this method can be executed by detection device, It can be executed by CMS, this is illustrated for sentencing detection device, which comprises when CMS confirms under the trigger of the user When needing to issue resource to be released, the first detection instruction for being directed to resource to be released, detection device can be sent to detection device First detection instruction is received, the relevant information of resource to be released can be carried in first detection instruction, it illustratively, can be with Carry the URL link of resource to be released;Detection device can obtain cited in resource to be released according to the first detection instruction Resource URL link, resource to be referred to is properly termed as the resource that is cited in resource to be released in the embodiment of the present application;It Afterwards, detection device can judge the state of resource of being cited according to the URL link for the resource that is cited, if the resource that is cited is in Down status, illustrating to issue resource to be released will lead to resource to be released and cannot normally jump, and detection device can produce first First prompt information can also be sent to CMS by prompt information, wherein the first prompt information issues money to be released for prompting Source can generate failure URL link.
By the above method, before resource to be released publication, it is that may be present dead that resource to be released can be detected in advance Chain situation can prevent the publication of resource there are dead chain in time, can effectively reduce the webpage or document of publication There are the probability of dead chain, can also be improved user experience.
In a kind of possible design, if the resource that is cited is offline in future time instance, that is to say, that the resource that is cited can be Some moment later is offline, if the resource that is cited is offline, also leading to resource to be released cannot normally jump after publication Turn, there are dead chain, detection device can produce the second prompt information, the second prompt information can also be sent to CMS, wherein Second prompt information can generate failure URL link when future time instance reaches for prompting to issue resource to be released.
By the above method, be preset with the resource at offline moment in resource for being cited and detect, can to avoid to Publication resource generates failure URL link after publication.
In a kind of possible design, if the resource that is cited is in online state, that is to say, that the resource that is cited always may be used To be checked, resource to be released can be jumped normally after publication, and dead chain is not present, and detection device can produce third prompt Third prompt information can also be sent to CMS by information, wherein third prompt information issues resource to be released not for prompting Failure URL link can be generated.
By the above method, guarantee that resource to be released can be issued in the case where the resource that is cited is in online state, Resource to be released can be made normally to jump after publication.
In a kind of possible design, resource to be released publication after, detection device can save resource to be released with The status information of adduction relationship and resource to be released between the resource that is cited.Illustratively, detection device can according to The URL link of publication resource obtains the path CMS of resource to be released;And drawn according to the acquisition of the URL link for the resource that is cited With the path CMS of resource;Record the adduction relationship in the path CMS of resource to be released with the path CMS for the resource that is cited, record to The state of resource is issued as online state.And the path CMS for recording resource to be released is corresponding with the state of resource to be released Relationship, wherein the state recording of resource to be released is online state.
By the above method, after resource publication, detection device, which can save, have been issued resource and has been drawn with the resource With the status information of adduction relationship and the resource between resource, subsequent can check between resource status and resource Adduction relationship.
In a kind of possible design, detection device refers in the first detection for resource to be released for receiving user's triggering , can be after the resource publication that is cited before order, record is cited drawing between resource and the resource cited in resource that is cited With relationship;The state for the resource that is cited can also be recorded;The be cited scene of state of resource of detection device records is not limited to , can also be in other scenes in the scene of the resource that is cited publication, the resource that is such as cited is offline, and the embodiment of the present application is simultaneously unlimited It is fixed.Illustratively, detection device records be cited the state of resource when, can recorde the path CMS for the resource that is cited and drawn With the corresponding relationship of the state of resource.
It, can be according to being drawn when detection device is cited according to the judgement of the URL link for the resource that is cited the state of resource The path CMS for the resource that is cited is obtained with the URL link of resource;Later, search and be cited from corresponding relationship the CMS of resource The state of the corresponding resource that is cited in path.
By the above method, detection device can record the state for the resource that is cited in advance, so as to subsequent in money to be released Before the publication of source, the state for the resource that is cited more easily is determined according to the information of storage, and then can efficiently be determined Whether resource to be released can generate failure URL link later in publication.
In a kind of possible design, the type of resource to be released is one of network element and document;That is, pending Cloth resource can be single webpage, also may include the document for having multiple webpages;And the type for the resource that is cited is network element and text One or both of shelves, that is to say, that resource to be released can quote single webpage, can also quote document.
By the above method, resource detection method provided by the present application is not only suitable for the scene of single Homepage Publishing, also fits It, can effective expanded application range for the scene of document publication.
Second aspect, the embodiment of the present application provide a kind of resource detection method, and this method can be executed by detection device, It can be executed by CMS, this is illustrated for sentencing detection device, and method includes: when CMS confirms needs under the trigger of the user Offline that the second detection instruction being directed to offline resource can be sent to detection device when offline resource, detection device receives Second detection instruction, the relevant information that can be carried to offline resource in second detection instruction can illustratively carry URL link to offline resource;Detection device can obtain the URL link to offline resource according to the second detection instruction;Later To the resource of the URL link of offline webpage, (quoting in the embodiment of the present application can be with to the resource in offline resource for judgement reference Referred to as quote resource) state illustrate offline to will lead to reference resource to offline resource if reference resource is in online state It cannot normally jump to offline resource, detection device can produce the 4th prompt information, can also send out the 4th prompt information Give CMS, the 4th prompt information offline can generate failure URL link to offline resource for prompting.
By the above method, before offline to offline resource, can detect in advance that may be present dead to offline resource Chain situation, dead chain, can prevent the offline of resource in time if it exists, can effectively reduce offline webpage or document and generate failure The probability of URL link can also be effectively improved user experience.
In a kind of possible design, if reference resource is offline in future time instance, that is to say, that reference resource can be later Some moment it is offline, if reference resource it is offline, also lead to offline resource after offline, reference resource it is offline it Before, reference resource cannot be jumped normally, and there are dead chain, detection device can produce the 5th prompt information, can also mention the 5th Show that information is sent to CMS, wherein the 5th prompt information for prompt it is offline when offline resource future time instance reach when can generate Fail URL link.
By the above method, detected for being preset with the resource at offline moment in reference resource, it can be to avoid under Line resource generates failure URL link after offline.
In a kind of possible design, if the resource that is cited is in down status, that is to say, that offline resource under After line, any reference resource will not influence there is no dead chain, detection device can produce the 6th prompt information, can also be by the Six prompt informations are sent to CMS, wherein the 6th prompt information is for prompting offline resource to be released not generate failure URL chain It connects.
By the above method, guarantee in the case where reference resource is in down status, can be offline to offline resource, it can So that dead chain will not be generated to offline resource after offline.
In a kind of possible design, detection device is receiving referring to for the second detection to offline resource for user's triggering , can be after reference resource publication before order, resource cited in record reference resource and reference resource (such as to offline resource) Between adduction relationship;It can be with the state of record reference resource;Detection device records quote the scene of the state of resource not It is limited in the scene for quoting resource publication, can also be in other scenes, the embodiment of the present application does not limit.Illustratively, it examines When surveying the state of device record reference resource, it can recorde to the path CMS of offline resource and drawing for the path CMS of reference resource With relationship;And the corresponding relationship in the path CMS of record reference resource and the state of reference resource.
When detection device judges that reference, can be according to under when the state of the reference resource of the URL link of offline webpage The URL link of line resource obtains the path CMS to offline resource;Later, according to the path CMS to offline resource from adduction relationship Obtain the path CMS of reference resource;And the shape of reference resource corresponding with the reference path CMS of resource is searched from corresponding relationship State.
By the above method, detection device can shift to an earlier date the state of record reference resource, so as to subsequent to offline resource Before offline, the state of reference resource is more easily determined according to the information of storage, and then can efficiently be determined under Whether line resource can generate failure URL link after offline.
In a kind of possible design, the type of resource to be released is one of webpage and document, can to offline resource To be single webpage, it is also possible to document;The type for the resource that is cited is one or both of webpage and document.
By the above method, resource detection method provided by the present application is not only suitable for the offline scene of single webpage, also fits The scene offline for document, can effective expanded application range.
The third aspect, the embodiment of the present application also provides a kind of device, which has the side for realizing above-mentioned first aspect The function of behavior in method example, beneficial effect may refer to the description of first aspect, and details are not described herein again.The function can lead to Hardware realization is crossed, corresponding software realization can also be executed by hardware.The hardware or software include it is one or more with it is upper State the corresponding module of function.In a possible design, in the structure of described device include receiving unit, acquiring unit, Judging unit and information creating unit, can also include logging modle, these units can execute above-mentioned first aspect method Corresponding function in example is not repeated herein referring specifically to the detailed description in method example.
Fourth aspect, the embodiment of the present application also provides a kind of device, which has the side for realizing above-mentioned second aspect The function of behavior in method example, beneficial effect may refer to the description of second aspect, and details are not described herein again.The function can lead to Hardware realization is crossed, corresponding software realization can also be executed by hardware.The hardware or software include it is one or more with it is upper State the corresponding module of function.It include receiving unit, acquiring unit, sentencing in a possible design, in the structure of described device Disconnected unit and information creating unit, can also include recording unit, these units can execute above-mentioned second aspect method and show Corresponding function in example is not repeated herein referring specifically to the detailed description in method example.
5th aspect, the embodiment of the present application also provides a kind of device, which has the side for realizing above-mentioned first aspect The function of behavior in method example, beneficial effect may refer to the description of first aspect, and details are not described herein again.The detection device It include processor and memory in structure, the processor is configured to the base station is supported to execute in above-mentioned first aspect method Corresponding function.The memory is coupled with the processor, saves the necessary program instruction of the communication device and data. It further include communication interface in the structure of the communication device, for being communicated with other equipment.
6th aspect, the embodiment of the present application also provides a kind of device, which has the side for realizing above-mentioned second aspect The function of behavior in method example, beneficial effect may refer to the description of second aspect, and details are not described herein again.The communication device It include processor and memory in structure, the processor is configured to the base station is supported to execute in above-mentioned second aspect method Corresponding function.The memory is coupled with the processor, saves the necessary program instruction of the communication device and data. It further include communication interface in the structure of the communication device, for being communicated with other equipment.
7th aspect, the application also provide a kind of computer readable storage medium, in the computer readable storage medium It is stored with instruction, when run on a computer, so that computer executes method described in above-mentioned various aspects.
Eighth aspect, the application also provide a kind of computer program product comprising instruction, when it runs on computers When, so that computer executes method described in above-mentioned various aspects.
9th aspect, the application also provide a kind of computer chip, and the chip is connected with memory, and the chip is used for The software program stored in the memory is read and executed, method described in above-mentioned various aspects is executed.
Detailed description of the invention
Fig. 1 is a kind of network system architecture schematic diagram according to an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of back-end server provided by the present application;
Fig. 3 is the structural schematic diagram of another back-end server provided by the present application;
Fig. 4 is a kind of schematic diagram of resource detection method provided by the present application;
Fig. 5 is a kind of schematic diagram of resource detection method provided by the present application;
Fig. 6 is a kind of user interface schematic diagram provided by the present application;
Fig. 7 is a kind of testing result schematic diagram provided by the present application;
Fig. 8 is another testing result schematic diagram provided by the present application;
Fig. 9 is a kind of schematic diagram of resource detection method provided by the present application;
Figure 10 is a kind of schematic diagram of resource detection method provided by the present application;
Figure 11 is another user interface schematic diagram provided by the present application;
Figure 12~Figure 14 is a kind of structural schematic diagram of communication device provided by the present application.
Specific embodiment
In order to keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with attached drawing to this Shen Please embodiment be described in further detail.Concrete operation method in embodiment of the method also can be applied to Installation practice or In system embodiment.Wherein, in the description of the present application, unless otherwise indicated, the meaning of " plurality " is two or more. In addition, it is necessary to understand, in the description of the embodiment of the present application, the vocabulary such as " first ", " second " are only used for distinguishing description Purpose is not understood to indicate or imply relative importance, can not be interpreted as indication or suggestion sequence.
As shown in fig.1, a kind of possible network architecture schematic diagram being applicable in for the application.Wherein, including client 101, domain name system (domain name system, DNS) server 102, web service node 103 and back-end server 104。
Client 101 is the equipment that can provide a user WEB-browsing services, such as may include with transmission-receiving function Handheld device, computer, laptop etc.;It may include mobile phone (or being " honeycomb " phone), portable, sleeve Precious formula, hand-held, mobile device of built-in computer etc..The embodiment of the present application does not limit the device type of client 101.
Client 101 carries webpage when detecting that user browses the operation of webpage, to the transmission of dns server 102 Uniform resource locator (uniform resource locator, URL) links the network protocol of (such as www.huawei.com) (internet protocol, IP) Address requests message, the webpage clothes which is used to request to save the webpage The IP address of business node 103, dns server 102 obtain the corresponding IP address of URL link according to the IP address request message, to Client 101 sends the IP address response message for carrying the IP address, and wherein the IP address is the webpage clothes for saving the webpage The IP address of business node 103, client 101 receive IP address response message, obtain the IP address in secondary IP address response message, Web-page requests message is sent to web service node 103 based on the IP address, web-page requests message is used for web service node The corresponding webpage of the 103 specific URL links of request.The webpage is being locally displayed after obtaining the webpage in client 101.
Back-end server 104 is used to provide back-end data for web service node 103, and specifically, back-end server 104 can With publication for controlling webpage or document and online, in webpage or online document, webpage or document transmission to webpage are taken Business node 103;In webpage or offline document, webpage or document are deleted from web service node 103.
Fig. 2 is a kind of structural schematic diagram of back-end server according to an embodiment of the present invention.As described in Figure 2, back-end services Device 200 includes Content Management System (content management system, CMS) 201 and detection device 202.
CMS201 can carry out webpage (or document) design, web page contents update and Homepage Publishing or the operation such as offline; The associated documents that webpage or document are preserved in CMS201, including webpage or the content-data of document, that is, webpage or Involved or displaying content in document, content-data includes but is not limited to resources such as website, column in webpage or document etc.. Detection device 202 is used to be carried out according to the instruction that CMS201 is sent to carry out extremely resource (resource such as to be released or to offline resource) Chain (i.e. failure URL link) detection, it is determined whether can have failure URL link.
CMS201 is in webpage or document (in the embodiment of the present application by webpage to be released, text in the embodiment of the present application Shelves etc. files be referred to as resource to be released) publication before can to detection device 202 send detection instruction, detection device 202 Resource dead chain situation that may be present to be released is detected according to the detection instruction that receives, and sends testing result to CMS201, CMS201 determines whether to issue the resource to be released according to testing result.
CMS201 is in webpage or document (in the embodiment of the present application by webpage to be released, text in the embodiment of the present application Shelves etc. files be referred to as to offline resource) it is offline before can to detection device 202 send detection instruction, detection device 202 It detects according to the detection instruction that receives to offline resource dead chain situation that may be present, and sends testing result to CMS201, CMS201 determines whether offline be somebody's turn to do to offline resource according to testing result.
In the present embodiment, detection device 202 can provide application programming interface (application Programming interface, API) to CMS201, the user of CMS201 can call API to come in the control interface of CMS201 Generate dead chain detection request.
Fig. 3 is the structural schematic diagram of another back-end server according to an embodiment of the present invention.As shown in figure 3, rear end takes Business device 300 includes CMS301, and CMS301 is built-in with the function of detection device 202 in Fig. 2, and CMS301 can be to resource to be released After publication or to offline resource it is offline before, detected to resource to be released or to offline resource, what determination may store Dead chain situation, and show its testing result.
Below based on the network architecture and back-end server as shown in Figures 1 to 3, to resource provided by the embodiments of the present application Detection method is illustrated.
Two kinds of resources detection method is related generally in the embodiment of the present application, as follows respectively:
The first, resource publication before, resource to be released is detected, determines that quotes in resource to be released is drawn With the state of resource, determined whether to issue the resource to be released according to the state for the resource that is cited, whether publication deposits later In failure URL link.
In this way, before resource publication, resource to be released dead chain situation that may be present can be detected in advance, There are dead chain, the publication of resource can be prevented in time;Without after resource is issued, the dead chain inspection of artificial carry out It surveys, the webpage or document that can effectively reduce publication can also be improved user experience there are the probability of dead chain.
Second, it before resource is offline, treats offline resource and is detected, determine reference to the resource in offline resource State, according to the state of reference resource determine whether it is offline should to offline resource, if there are failure URL links.
In this way, it before resource is offline, can detect in advance to offline resource dead chain situation that may be present, There are dead chain, it can effectively stop the offline process of resource;It avoids generating failure URL link after resource is offline Probability, preferable web browsing experience can be provided for user, can effectively improve user experience.
Above two resource detection method is illustrated below:
Based on back-end server as indicated with 2, Fig. 4 shows a kind of resource detection method according to the embodiment of the present application, such as Shown in Fig. 4, this method comprises:
Step 401: detection device 202 receives the first detection instruction for resource to be released of user's triggering.
Before user's determination needs to issue resource to be released, the resource publication process of CMS201 can be triggered, it is possible thereby to touch First detection instruction of the hairpin to resource to be released;Illustratively, CMS201 is in order to guarantee resource to be released after publication not There are dead chains, and the first detection instruction for being directed to the resource to be released can be sent to detection device 202.
Optionally, it may include the resource to be released or the address information of the resource to be released in the first detection instruction, show Example property, the first detection instruction may include the html file of resource to be released, can also include the URL chain of resource to be released It connects.
Step 402: detection device 202 obtains the resource that is cited quoted in resource to be released according to the first detection instruction URL link.
Detection device 202 can obtain resource to be released after receiving the first detection instruction from the first detection instruction, And determine that resource resource to be referred to be released (can be referred to as the money that be cited in the embodiment of the present application according to resource to be released Source) URL link.For example, detection device 202 can detect this keyword of www. in resource to be released, determination is cited The URL link of resource;In another example detection device 202 can obtain the super of A label by traversing the A label in resource to be released Text quotes (hypertext reference, HREF) attribute to obtain the URL link of resource resource to be referred to be released.
In the embodiment of the present application, resource to be released includes two types, one kind be webpage, another kind be include multiple nets The document of page;When the type of resource to be released be webpage when, demonstrate the need for issuing single webpage, detection device 202 it needs to be determined that The URL link of the resource to be referred to of webpage to be released.When the type of resource to be released is document, publication one is demonstrated the need for Document needs multiple webpages while issuing, detection device 202 it needs to be determined that in document to be released each webpage cited money The URL link in source.In some instances, document includes multiple webpages, and in other examples, document can also include other moneys Source, such as picture, portable document format (portable document format, PDF) file etc..
In the embodiment of the present application, the resource being cited can be other webpages, be also possible to picture, the media text such as video Part is also possible to pdf document, can also be the document that multiple webpages are constituted.The embodiment of the present application does not limit the money being cited The quantity in source can be one, be also possible to multiple.
Step 403: detection device 202 is cited the state of resource according to the judgement of the URL link for the resource that is cited.
In the embodiment of the present application, the state of resource can be divided into online and offline two states.It is online to refer to money Source has been published in public network, can be browsed or be checked by user, online to be referred to as having issued or online.It is offline can be with It is divided into two classes, one kind refers to that resource is not published in network, can not be browsed or be checked by user, and subsequent need not issue It issues;It is another kind of to be offline after having issued, after referring to that resource is published to network, when needing to be adjusted or delete, resource It is deleted from network.In order to distinguish the two types in offline, two classes can be done with different marks, it illustratively, can be with Status indicator to the resource that do not issue is not published.For the status indicator under it of resource offline after having issued The line time can not also identify to indicate that the resource has carried out offline operation in downtime, but directly delete under this Line resource, if the state of the resource can not be found, it is believed that the resource is offline.
Step 404: detection device 202 confirmation be cited resource be in down status in the case where, generate and first mention Show information, the first prompt information is for prompting publication resource to be released that can generate failure URL link.
If any resource being cited in resource is in offline state, if showing to issue the resource to be released Later, user's browsing, if clicking the URL for the resource that is cited, can jump to the reference during browsing the resource to be released Resource, if any resource being cited in resource is offline, user is can not to view the resource offline in resource that is cited , it can not achieve and normally jump, will cause dead chain in this way.In order to avoid such case, the resource to be released of detection device 202 is carried out Before publication, the first prompt information is sent to CMS201, failure URL link can be generated if informing and issuing the resource to be released, is used Family can stop at CMS201 according to the first prompt information and issue the resource to be released.
CMS201 issues the resource and can have dead chain after receiving first prompting message if the user can be prompted; First prompting message can also be directly displayed.
If any resource being cited in resource can be offline at the following moment, illustratively, it is cited in resource Any resource is currently issued state, but is labelled with the offline moment, which is some following moment, shows it Afterwards, at the time of indicating at the offline moment, this is cited any resource in resource can be offline;It is issued in this way in resource to be released And after future time instance arrival, equally can also there be dead chain.In order to avoid such case, detection device 202 can be to CMS201 Send the second prompt information, failure URL link can be generated if informing and issuing the resource to be released, generate failure URL connection when Between be it is following sometime, that is, at the offline moment for any resource being cited in resource, failure URL chain can be generated It connects.
CMS201 issues the resource to be released and can exist after receiving second prompting message if the user can be prompted Dead chain, at the time of can also prompting to generate failure URL link;Second prompting message can also be directly displayed.
If all resources being cited in resource are in online, it is in online state, if showing the resource to be released After publication, user can normally jump to any money for the resource that is cited during browsing the resource to be released Source;In this case, detection device 202 can send third prompt information to CMS201, and publication resource to be released is prompted not produce Raw failure URL link.
For CMS201 after receiving the third prompting message, the user can be prompted can normally issue the money to be released Source can also directly issue the resource to be released, and user's resource to be released is prompted to issue.
After resource to be released publication, CMS201 can give out information to detection device 202, inform detection device 202 resources to be released have been issued, and detection device 202 can save the adduction relationship of resource to be released with the resource that is cited, and may be used also It is online to record the state of the resource to be released.
Optionally, the mapping relations of the URL link of resource and the path CMS of resource can be saved in detection device 202, Wherein, the path CMS of resource is used to indicate the relevant information of resource, such as html file, PDF, portable network figure Preservation address of the files such as (portable network graphics, PNG) in CMS201.Certainly, which can also To be stored in CMS201, detection device 202 can send the request message for obtaining the mapping relations, and obtaining from CMS201 should Mapping relations.
As a kind of possible embodiment, the mapping relations in the path CMS of the URL link of resource and resource can also protect There are in the addressable third party database (not shown) of detection device 202 and CMS201, detection device 202 and CMS201 are equal The mapping relations can be obtained from the database.
Detection device 202 can obtain the path CMS of resource to be released according to the URL link of resource to be released;And root The path CMS for the resource that is cited is obtained according to the URL link for the resource that is cited;Record the path CMS and the institute of the resource to be released The adduction relationship for stating the path CMS for the resource that is cited records the state of the resource to be released as online state.
Illustratively, detection device 202 can recorde pair in the path CMS of resource to be released and the state of resource to be released It should be related to.
It should be noted that detection device 202 record in the database the resource to be released the path CMS and the quilt Quote the adduction relationship in the path CMS of resource and the state of resource to be released;Facilitate subsequent to the adduction relationship and to be released The state of resource is checked.
The quantity for not limiting the resource that is cited in the embodiment of the present application, when the number for the resource being cited is greater than 1, Detection device 202 is obtained according to the first detection instruction in the URL link for the resource that is cited, and needs to obtain each resource that is cited URL link;When recording the adduction relationship of resource to be released and the resource that is cited, it is thus necessary to determine that be each cited resource The path CMS.
It should be noted that if the type of resource to be released is document, document to be released is corresponding be cited resource can be with Including the resource (such as webpage or picture) for including in the document to be released;That is, webpage in document to be released can be with Quote other resources in document to be released.Detection device 202, which can ignore this and be cited, belongs to document to be released in resource The state of resource, only determine this be cited be not belonging in resource document to be released any resource whether be in down status or Whether can be offline in future time instance, if this is cited and is not belonging to any resource of document to be released in resource and is in lower threadiness State, detection device 202 can send the first prompting message to CMS201;If this, which is cited, is not belonging to document to be released in resource Any resource can be offline in future time instance, and detection device 202 can send third prompting message to CMS201.If being cited resource In belong to document to be released, detection device 202 can send third prompting message to CMS201.CMS201 is receiving first The operation executed after prompting message, the second prompting message or third prompting message may refer to preceding description, no longer superfluous herein It states.
Determine that the mode of the state for the resource that is cited is illustrated to detection device 202 below, from the foregoing, it will be seen that After resource publication to be released, the state that detection device 202 will record the resource to be released is online.Similar, drawn After being issued with resource, the state that detection device 202 also can recorde the resource that is cited is online.
Illustratively, detection device 202 can recorde the state of resource, can also record the path CMS and the resource of resource State corresponding relationship (specifically, for example can recorde in the database);When detection device is determining some resource (such as CMS201 informs that the resource of detection device 202 has been issued) is issued, detection device 202 can be by the state recording of the resource To have issued;When detection device determine some resource it is offline (such as CMS201 inform the resource of detection device 202 publication after It is offline or do not issue), the state recording of the resource can be offline or offline in future time instance by detection device 202;Example Property, the state recording for the resource that do not issue can be not published by detection device 202;Under not recording after having issued The state of the resource of line, or record issued after offline resource downtime;The path CMS and the money of resource can also be established The corresponding relationship of the state in source.
It should be noted that in the above-described embodiments, the resource that is cited, which can be, is responsible for maintenance by CMS201 system, and In the application other embodiments, the resource that is cited can also be responsible for maintenance by other systems, for what is safeguarded by other systems Be cited resource, for the resource for belonging to external network;If being cited the resource for existing in resource and belonging in external network, detection dress Determining reference resource can be detected by hypertext transfer protocol (hypertext transfer protocol, HTTP) by setting 202 In belong to the state of resource in external network.
Illustratively, detection device sends http request according to the URL external network of reference resource, and detection device receives To external network feed back http response results, if http response results be 404, show that the resource is inaccessible, publication to Publication resource can generate dead chain, if http response results are 200, show that resource access is normal, which will not be to pending The publication of cloth resource has an impact.
In above-described embodiment, detection device provides dead chain detection service for CMS, and in the application other embodiments, inspection Surveying device built-in as shown in Figure 3 can also be integrated in CMS, i.e., realize dead chain detection in CMS, will carry out below specifically It is bright.
Fig. 5 is referred to, Fig. 5 is the flow chart of resource detection method according to another embodiment of the present invention, the party shown in Fig. 5 Method includes:
Step 501:CMS301 receives the first detection instruction for resource to be released of user's triggering.
It is referred to together in combination with Fig. 6, Fig. 6 is the user interface schematic diagram according to the CMS301 of the embodiment of the present application, such as Fig. 6 Shown, user can click Content inspection in the display interface in CMS301, by user's triggering for the of resource to be released One detection instruction.
Step 502:CMS301 obtains the URL for the resource that is cited quoted in resource to be released according to the first detection instruction Link.The mode that CMS301 obtains the URL link for the resource that is cited quoted in resource to be released may refer to as shown in Figure 4 Embodiment in detection device 202 obtain the mode of the URL link of the resource that is cited quoted in resource to be released, herein not It repeats again.
Step 503:CMS301 is cited the state of resource according to the judgement of the URL link for the resource that is cited, and is drawn in confirmation In the case where being in down status with resource, the first prompt information is generated.
CMS301 may refer to according to the be cited mode of state of resource of the URL link for the resource that is cited judgement such as Fig. 4 Shown in embodiment detection device 202 according to the judgement of the URL link for the resource that is cited be cited resource state mode, this Place repeats no more.
If the resource that is cited is in down status, the first prompt information is generated;If the resource that is cited is inscribed when can come again Line generates the second prompt information;If the resource that is cited is in online state, third prompt information is generated;The first prompt is generated to disappear The operation that CMS301 is executed after breath, the second prompting message or third prompting message may refer to CMS301 in foregoing teachings and connect The operation executed after the first prompting message, the second prompting message or third prompting message for carrying out self-test device is received, herein not It repeats again.
Illustratively, when generating the first prompt information, CMS301 can show interface as shown in Figure 7;When generation third Prompt information, CMS301 can show interface as shown in Figure 8.
Based on back-end server as indicated with 2, a kind of resources measurement according to the embodiment of the present application is shown referring to Fig. 9, Fig. 9 Method, as shown in figure 9, this method comprises:
Step 901: detection device 202 receives the second detection instruction of user's triggering being directed to offline resource.
As may be directly offline to offline resource cited in other resources to offline resource, reference will lead to under The resource (resource by reference to offline resource referred to as quotes resource in the embodiment of the present application) of line resource can not be normal clear It lookes at, cannot normally jump to offline resource, failure link can be generated.
User need it is offline to offline resource before, CMS201 can be triggered and sent to detection device 202 for should under Second detection instruction of line resource.
It wherein, may include that this waits for offline resource or the address information to offline resource in the second detection instruction, it is exemplary , it can also include the URL link to offline resource that the second detection instruction, which may include the html file to offline resource, Including indicating that this waits for the other information of offline resource, the embodiment of the present application does not limit the information of the second detection instruction carrying, all It is that can indicate that this waits for that the information of offline resource can carry in the second detection instruction.
Step 902: detection device 202 obtains the URL link to offline resource according to the second detection instruction.
Step 903: state of the judgement reference of detection device 202 to the reference resource of the URL link of offline webpage.
Before state of the judgement reference of detection device 202 to the reference resource of the URL link of offline webpage, detection device 202 it needs to be determined that quote resource, by embodiment as shown in Figure 4 it is found that detection device can be remembered when being issued a resource The adduction relationship for recording the resource (be cited resource) of the resource and webpage reference, can also record the state of the resource, establish The corresponding relationship of the CMS201 link and the state of resource of resource;Detection device 202 can also record the down status of resource;? That is detection device 202 will record the path CMS of reference resource and quote the state of resource when quoting resource publication Corresponding relationship, the state for recording the reference resource is online, pair of the state in the path CMS and reference resource of foundation reference resource It should be related to.Correspondingly, it is offline after quoting resource publication, or do not issue, detection device 202 also can recorde the shape of reference resource State is offline.
Illustratively, detection device 202 receive user's triggering for before to the second detection instruction of offline resource, It can recorde the adduction relationship in the path CMS in the path CMS and reference resource to offline resource;
The quantity of the embodiment of the present application not qualified reference resource, reference resource are either one or more.
Detection device 202 is described when the state of the reference resource of the URL link of offline webpage in judgement reference, can be with base Mapping relations in the path CMS of the URL link and resource of resource are obtained according to the URL link to offline resource to offline money The path CMS201 in source.Wherein, the mapping relations in the path CMS of the URL link of resource and resource can be detection device 202 What ground saved, it also can detecte what device 202 was obtained from CMS, can also save in the database, so that detection device 202 obtains It takes.Obtain the path CMS of reference resource after detection device 202 from adduction relationship further according to the path CMS to offline resource;From Quote the state that the reference resource is searched in the corresponding relationship of the path CMS of resource and the state of reference resource.
Step 904: detection device 202 generates the 4th in the case where confirming that the reference resource is in online state Prompt information, the 4th prompt information offline described can generate failure URL link to offline resource for prompting.
If reference resource in any resource be in online state, if show this to offline resource it is offline after, user Any resource in browsing reference resource, can check the content in the resource;During browsing the resource, it will be unable to jump It will cause dead chain in this way to offline resource to this.In order to avoid such case, detection device 202 can send the 4th to CMS201 and mention Show information, offline be somebody's turn to do can generate failure URL link to offline resource if informing.
CMS201 is after receiving the 4th prompting message, if the user can be prompted, offline this can exist with offline resource Dead chain;The 4th prompting message can also be directly displayed.Resource be cited in the case where future time instance is offline described in the confirmation, Generate the 5th prompt information, the 5th prompt information is for prompting offline described reach to offline resource in the future time instance Failure URL link can be generated.
If any resource quoted in resource can be offline at a moment later, illustratively, appointing in resource is quoted One resource is currently issued state, but is labelled with the offline moment, which is some following moment, shows it Afterwards, any resource in the time that the offline moment indicates, the reference resource can be offline;If being provided to offline resource in the reference It is offline before any resource in source, to offline resource it is offline after to any resource in the reference resource it is offline before In period, user browses any resource in the reference resource and also can not normally jump to offline resource, equally can also deposit In dead chain.For avoid such case, detection device 202 can send the 5th prompt information to CMS201, if inform it is offline should be to Offline resource can generate failure URL link, generate failure URL link time be before following sometime arrival, It is exactly that can generate failure URL link before the offline moment of any resource in reference resource.
CMS201 is after receiving the 5th prompting message, if the user can be prompted, offline be somebody's turn to do can exist to offline resource Dead chain can also prompt the time for generating failure URL link;The 5th prompting message can also be directly displayed.
It should be noted that CMS201 can need instantly it is offline when offline resource, to detection device send second Detection instruction, if any resource in reference resource can be offline at the following moment, detection device can be sent out to CMS201 Send the 5th prompting message.CMS201 can also be detected down following in advance sometime (for convenience of description, with the first generation at moment For) it is offline whether there is dead chain to offline resource, if any resource in reference resource also can another following at moment (for Facilitate explanation, replaced with the second moment) it is offline;If the second moment is prior to any money in the first moment, that is, reference resource Source is more offline than the elder generation to offline resource, then will not have an impact to any resource in reference resource to the offline of offline resource, Wireless link will not be generated;If the second moment was later than any resource in the first moment, that is, reference resource to offline money It is just offline after source is offline, then any resource in reference resource can be had an impact to the offline of offline resource, to offline money In period after source is offline to any resource in the reference resource before offline, user is in browsing the reference resource It can not be normally jumped to when any resource to offline resource, generate wireless link;Detection device 202 can send the to CMS201 Five prompting messages.
In the case that the resource that is cited described in the confirmation is in down status, the 6th prompt information is generated, the described 6th Prompt information is for prompting the offline resource to be released not generate failure URL link.
If reference resource in all resources be in it is offline, if show should to offline resource it is offline after, user is not Any resource in reference resource can be browsed, there is no dead chains.In this case, detection device 202 can be sent to CMS201 6th prompt information, prompt is offline will not to generate failure URL link to offline resource.
After receiving the 6th prompting message, the user can be prompted normally offline to be somebody's turn to do to offline money CMS201 Source directly offline can also be somebody's turn to do to offline resource, and prompt user offline to offline resource.
After offline to offline resource, CMS201 can send offline message to detection device 202, inform detection device 202 is offline to offline resource, and detection device 202 can delete the money to offline resource and to offline quoting resource saved The adduction relationship in source, can also record the state for waiting for offline resource is that offline or deletion record should shape to offline resource State.
It should be noted that if the type to offline resource is document, can wrap to the corresponding reference resource of lower on-line documentation Include the resource for waiting for including in lower on-line documentation (such as webpage or picture);That is, can draw to the webpage in lower on-line documentation With other resources in document to be released.Detection device 202 can ignore the resource for belonging to document to be released in the reference resource Device, only determine and be not belonging to whether to be in online state in the reference resource to any resource of lower on-line documentation or whether can be Future time instance is offline, if any resource for being not belonging to document to be released in the reference resource is in online state, detection device 202 The 4th prompting message can be sent to CMS201;If any resource for being not belonging to document to be released in the reference resource can be in future Moment is offline, and detection device 202 can send the 5th prompting message to CMS201.If belonging to text to be released in reference resource Shelves, detection device 202 can send the 6th prompting message to CMS201.CMS201 is receiving the first prompting message, second is mentioning Show that the operation executed after message or third prompting message may refer to preceding description, details are not described herein again.
In above-described embodiment, detection device provides dead chain detection service for CMS, and in the application other embodiments, inspection Surveying device built-in as shown in Figure 3 can also be integrated in CMS, i.e., realize dead chain detection in CMS, will carry out below specifically It is bright.
0, Figure 10 is the flow chart of resource detection method according to another embodiment of the present invention referring to Figure 1, shown in Figure 10 This method comprises:
Step 1001:CMS301 receives the second detection instruction of user's triggering being directed to offline resource.
Illustratively, Figure 11 is according to the display interface of the CMS301 of the embodiment of the present application, and as shown in figure 11, user can be with Content inspection is clicked in display interface in CMS, by user's triggering for the second detection instruction to offline resource.
Step 1002:CMS301 obtains the URL link to offline resource according to the second detection instruction.
CMS301 is obtained according to the second detection instruction and be may refer to as shown in Figure 9 to the mode of the URL link of offline resource Embodiment in detection device 202 mode of the URL link to offline resource is obtained according to the second detection instruction, it is no longer superfluous herein It states.
The state of the reference resource of the step 1003:CMS301 judgement reference URL link to offline webpage, is confirming In the case that cited resource is in online state, the 4th prompt information is generated, the 4th prompt information is for prompting offline institute Failure URL link can be generated to offline resource by stating.
The CMS301 judgement reference state to the reference resource of the URL link of offline webpage may refer to such as Fig. 9 institute The mode of the state of the reference resource of the judgement of the detection device 202 reference URL link to offline webpage in the embodiment shown, Details are not described herein again.
If any resource quoted in resource is in online state, the 4th prompt information is generated;If quoting appointing for resource One resource can be offline in future time instance, generates the 5th prompt information;If reference resource is in down status, the 6th prompt is generated Information;Before generating the operation that CMS301 after the 4th prompting message, the 5th prompting message or the 6th prompting message is executed and may refer to It states CMS301 in content and is receiving the 4th prompting message, the 5th prompting message or the 6th prompting message for carrying out self-test device The operation executed afterwards, details are not described herein again.
As a kind of possible embodiment, when the type of resource to be released is document, which issues it Some publishing documents can be replaced afterwards, and document to be released can increase one or more newly compared with this publishing documents Resource is substantially to need to issue newly-increased one or more resources;One or more resources can also be reduced, substantially, It is the one or more resources for needing offline reduction.For example, in document to be released include webpage 1, webpage 2, webpage 5, webpage 6, It include webpage 1, webpage 2, webpage 3 and webpage 4 in document to be released, document to be released increases newly compared with publishing documents Webpage 4, webpage 5, reduce webpage 3.When document to be released is issued, the newly-increased money to be released of one or more resource compositions first Source, optionally, the first resource to be released can also include document to be released and identical resource in this publishing documents;It reduces One or more resource compositions first are to offline resource.It can be using implementation as shown in fig. 4 or 5 for the first resource to be released Example carries out resources measurement, can carry out resources measurement using embodiment as illustrated in fig. 9 or 10 to offline resource for first.
Based on the same inventive concept of embodiment of the method, the embodiment of the present application also provides a kind of detection devices, for holding The method that detection device described in the above-mentioned embodiment of the method as shown in Figure 4 of row executes, correlated characteristic can be found in above method reality Example is applied, details are not described herein again, it should be noted that the device can also be used when being applied to back-end server as shown in Figure 3 The method that CMS is executed is executed in embodiment of the method as shown in Figure 5.
As shown in figure 12, described device 1200 include receiving unit 1201, acquiring unit 1202, judging unit 1203 and Information creating unit 1204:
Receiving unit 1201, for receiving the first detection instruction for resource to be released of user's triggering.
Acquiring unit 1202, for obtaining the resource that is cited quoted in resource to be released according to the first detection instruction URL link.
Judging unit 1203, be cited described in the URL link judgement for the resource that is cited according to the state of resource.
Information creating unit 1204 is cited the state of resource, true for the URL link judgement according to the resource that is cited Recognize the resource that is cited to be in the case where down status, generates the first prompt information, the first prompt information is for prompting publication Resource to be released can generate failure URL link.
Optionally, information creating unit 1204 is cited resource in the case where future time instance is offline in confirmation, can produce Raw second prompt information, the second prompt information can generate failure when future time instance reaches for prompting to issue resource to be released URL link.
Optionally, information creating unit 1204 be also used to confirmation be cited resource be in online state in the case where, can To generate third prompt information, third prompt information is for prompting publication resource to be released not generate failure URL link.
Optionally, acquiring unit 1202 can obtain after resource to be released publication according to the URL link of resource to be released Take the path Content Management System CMS of resource to be released;And the resource that is cited is obtained according to the URL link for the resource that is cited The path CMS.
Described device further includes recording unit 1205, recording unit 1205 can recorde the path CMS of resource to be released with The adduction relationship in the path CMS for the resource that is cited records the state of resource to be released as online state.And record money to be released The corresponding relationship of the state in the path CMS and resource to be released in source, wherein the state recording of resource to be released is online state.
Optionally, recording unit 1205 receives the first inspection for resource to be released of user's triggering in receiving unit 1201 It surveys before instruction, can recorde the corresponding relationship of the state of the path CMS for the resource that is cited and the resource that is cited.
Optionally, judging unit 1203 according to be cited resource URL link judgement be cited resource state when, can To obtain the path CMS for the resource that is cited according to the URL link for the resource that is cited;It searches and is cited from corresponding relationship resource The corresponding resource that is cited in the path CMS state.
Optionally, the type of resource to be released is one of network element and document, the type of the resource that is cited be network element and One of document, wherein document includes multiple webpages.
Based on the same inventive concept of embodiment of the method, the embodiment of the present application also provides a kind of detection devices, for holding The method that detection device described in the above-mentioned embodiment of the method as shown in Figure 7 of row executes, correlated characteristic can be found in above method reality Example is applied, details are not described herein again, it should be noted that the device can also be used when being applied to back-end server as shown in Figure 3 In the method for executing CMS execution in embodiment of the method as shown in Figure 10.
As shown in figure 13, which includes receiving unit 1301, acquiring unit 1302, judging unit 1303 and letter Breath generates unit 1304:
Receiving unit 1301, for receiving the second detection instruction of user's triggering being directed to offline resource;
Acquiring unit 1302, for obtaining the uniform resource position mark URL chain to offline resource according to the second detection instruction It connects;
Judging unit 1303, for judging state of the reference to the reference resource of the URL link of offline webpage;
Information creating unit 1304, for generating the 4th and mentioning in the case where confirmation reference resource is in online state Show information, the 4th prompt information offline can generate failure URL link to offline resource for prompting.
Optionally, information creating unit 1304 can be cited resource in the case where future time instance is offline in confirmation, produce Raw 5th prompt information, the 5th prompt information offline can generate failure when future time instance reaches when offline resource for prompting URL link.
Optionally, information creating unit 1304 can confirmation be cited resource be in down status in the case where, produce Raw 6th prompt information, the 6th prompt information is for prompting offline resource to be released not generate failure URL link.
Optionally, which further includes recording unit 13051005, and recording unit 1305 is received in receiving unit 1301 and used The path CMS and the reference resource that can recorde before for the second detection instruction to offline resource to offline resource of family triggering The path CMS adduction relationship;And the corresponding relationship in the path CMS of record reference resource and the state of reference resource;
Judging unit 1303 is quoted when the state of the reference resource of the URL link of offline webpage in judgement, can basis URL link to offline resource obtains the path CMS to offline resource;According to the path CMS to offline resource from adduction relationship Obtain the path CMS of reference resource;The shape of reference resource corresponding with the reference path CMS of resource is searched from corresponding relationship State.
Optionally, the type of resource to be released is one of webpage and document, the type of the resource that is cited be webpage and One or both of document.
It should be noted that being schematical, only a kind of logic function to the division of unit in the embodiment of the present application It divides, there may be another division manner in actual implementation.Each functional unit in embodiments herein can integrate In one processing unit, it is also possible to each unit and physically exists alone, one can also be integrated in two or more units In a unit.Above-mentioned integrated unit both can take the form of hardware realization, can also be in the form of software functional units It realizes.
Above-described embodiment can be realized wholly or partly by software, hardware, firmware or any other combination.When When using software realization, above-described embodiment can be realized entirely or partly in the form of a computer program product.The calculating Machine program product includes one or more computer instructions.When loading on computers or executing the computer program instructions, It entirely or partly generates according to process or function described in the embodiment of the present invention.The computer can for general purpose computer, Special purpose computer, computer network or other programmable devices.The computer instruction can store to be deposited computer-readable In storage media, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, described Computer instruction can pass through wired (such as coaxial cable, light from a web-site, computer, server or data center Fine, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, clothes Business device or data center are transmitted.The computer readable storage medium can be any available Jie that computer can access Matter includes either the data storage devices such as server, the data center of one or more usable medium set.Described use is situated between Matter can be magnetic medium (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium.Semiconductor Medium can be solid state hard disk (solid state drive, SSD).
In a simple embodiment, those skilled in the art is contemplated that in the embodiment as shown in Fig. 4,9 and examines Survey device or Fig. 5, form shown in Figure 14 can be used in CMS in embodiment shown in 10.
Device 1400 as shown in figure 14, including at least one processor 1401, memory 1402 optionally can be with Including communication interface 1403.
Memory 1402 can be volatile memory, such as random access memory;Memory is also possible to non-volatile Property memory, such as read-only memory, flash memory, hard disk (hard disk drive, HDD) or solid state hard disk (solid- State drive, SSD) or memory 1402 can be used for carry or store have instruction or data structure form phase The program code of prestige and can by any other medium of computer access, but not limited to this.Memory 1402 can be above-mentioned The combination of memory.
Memory 1402 can be volatile memory, such as random access memory;Memory is also possible to non-volatile Property memory, such as read-only memory, flash memory, hard disk (hard disk drive, HDD) or solid state hard disk (solid-state Drive, SSD) or can be used for carrying or storing the desired program code and energy with instruction or data structure form Enough any other media by computer access, but not limited to this.Memory 1402 can be the combination of above-mentioned memory.
The specific connection medium between above-mentioned processor 1401 and memory 1402 is not limited in the embodiment of the present application.
Processor 1401 can be CPU, which can also be other general processors, digital signal processor (DSP), specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate Or transistor logic, discrete hardware components, artificial intelligence chip, on piece chip etc..General processor can be micro- place Manage device either any conventional processor etc..Have the function of data transmit-receive, can be communicated with other equipment, in such as Figure 12 In device, independent data transmit-receive module, such as communication interface 1403 also can be set, be used for sending and receiving data;Processor 1201 When being communicated with other equipment, it can be carried out data transmission by communication interface 1403, such as from receiving the first detection instruction Or second detection instruction.
When the detection device is using form shown in Figure 14, the processor 1401 in Figure 14 can be stored by calling The computer executed instructions stored in device 1402 allow the detection device to execute the institute in any of the above-described embodiment of the method The method for stating detection device execution.
Specifically, the receiving unit of Figure 12, acquiring unit, judging unit, information creating unit and recording unit function Energy/realization process can be called by the processor 1401 in Figure 14 in memory 1402 computer executed instructions that store come It realizes.Alternatively, function/realization process of acquiring unit, judging unit, information creating unit and recording unit in Figure 12 can To call the computer executed instructions stored in memory 1402 to realize by the processor 1401 in Figure 14, the reception of Figure 12 The function of unit/realization process can be realized by the communication interface 1403 in Figure 14.
Specifically, the receiving unit of Figure 13, acquiring unit, judging unit, information creating unit and recording unit function Energy/realization process can be called by the processor 1401 in Figure 14 in memory 1402 computer executed instructions that store come It realizes.Alternatively, function/realization process of acquiring unit, judging unit, information creating unit and recording unit in Figure 13 can To call the computer executed instructions stored in memory 1402 to realize by the processor 1401 in Figure 14, the reception of Figure 13 The function of unit/realization process can be realized by the communication interface 1403 in Figure 14.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application be referring to according to the present processes, equipment (system) and computer program product flow chart and/or Block diagram describes.It should be understood that each process that can be realized by computer program instructions in flowchart and/or the block diagram and/or The combination of process and/or box in box and flowchart and/or the block diagram.It can provide these computer program instructions to arrive General purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices processor to generate one Machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for realizing flowing The device for the function of being specified in journey figure one process or multiple processes and/or block diagrams one box or multiple boxes.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Obviously, those skilled in the art can carry out various modification and variations without departing from the essence of the application to the application Mind and range.In this way, if these modifications and variations of the application belong to the range of the claim of this application and its equivalent technologies Within, then the application is also intended to include these modifications and variations.

Claims (26)

1. a kind of resource detection method characterized by comprising
Receive the first detection instruction for resource to be released of user's triggering;
The unified resource positioning for the resource that is cited quoted in the resource to be released is obtained according to first detection instruction Accord with URL link;
Be cited the state of resource according to the judgement of the URL link of the resource that is cited, and be cited described in the confirmation resource In the case where down status, the first prompt information is generated, first prompt information is described pending for prompting publication Cloth resource can generate failure URL link.
2. the method according to claim 1, wherein further include:
Resource be cited in the case where future time instance is offline described in the confirmation, generates the second prompt information, second prompt Information is for prompting the publication resource to be released that can generate failure URL link when the future time instance reaches.
3. the method according to claim 1, wherein further include:
In the case that the resource that is cited described in the confirmation is in online state, third prompt information, the third prompt letter are generated Breath is for prompting the publication resource to be released not generate failure URL link.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
After the resource publication to be released:
The path Content Management System CMS of the resource to be released is obtained according to the URL link of the resource to be released;
The path CMS for the resource that is cited according to the acquisition of the URL link of the resource that is cited;
The adduction relationship in the path CMS of the resource to be released and the path CMS of the resource that is cited is recorded, and described in record The corresponding relationship of the state of the path CMS of resource to be released and the resource to be released, wherein the state of the resource to be released It is recorded as online state.
5. method according to any one of claims 1 to 3, which is characterized in that
Before first detection instruction for resource to be released for receiving user's triggering, the method also includes:
The corresponding relationship of the state of the path CMS for the resource that is cited described in record and the resource that is cited;
The state for the resource that is cited described in the URL link judgement of the resource that is cited according to, comprising:
The path CMS for the resource that is cited according to the acquisition of the URL link of the resource that is cited;
The state of the resource that is cited corresponding with the path CMS of the resource that is cited is searched from the corresponding relationship.
6. method according to any one of claims 1 to 5, which is characterized in that the type of the resource to be released includes net Page and document, the type of the resource that is cited includes webpage and document.
7. a kind of resource detection method characterized by comprising
Receive the second detection instruction of user's triggering being directed to offline resource;
The uniform resource position mark URL to offline resource is obtained according to second detection instruction to link;
The state of the reference resource of the judgement reference URL link to offline webpage is confirming the reference resource in In the case where online state, the 4th prompt information is generated, the 4th prompt information is offline described to offline resource for prompting Failure URL link can be generated.
8. the method according to the description of claim 7 is characterized in that further include:
Resource be cited in the case where future time instance is offline described in the confirmation, generates the 5th prompt information, the 5th prompt Information offline described can generate failure URL link when the future time instance reaches when offline resource for prompting.
9. the method according to the description of claim 7 is characterized in that further include:
In the case that the resource that is cited described in the confirmation is in down status, the 6th prompt information, the 6th prompt are generated Information is for prompting the offline resource to be released not generate failure URL link.
10. method according to any one of claims 7 to 9, which is characterized in that
Before what the reception user triggered is directed to the second detection instruction of offline resource, the method also includes:
The adduction relationship in the path CMS in the record path the CMS and reference resource to offline resource;
Record the corresponding relationship in the path CMS of the reference resource and the state of the reference resource;
The state of the reference resource of the judgement reference URL link to offline webpage, comprising:
The path CMS to offline resource is obtained according to the URL link to offline resource;
The path CMS of the reference resource is obtained from the adduction relationship according to the path CMS to offline resource;
The state of the reference resource corresponding with the reference path CMS of resource is searched from the corresponding relationship.
11. method according to any one of claims 7 to 9, which is characterized in that the type of the resource to be released includes net Page and document, the type of the resource that is cited includes webpage and document.
12. a kind of device characterized by comprising
Receiving unit, for receiving the first detection instruction for resource to be released of user's triggering;
Acquiring unit, for obtaining the resource that is cited quoted in the resource to be released according to first detection instruction Uniform resource position mark URL link;
Judging unit, be cited described in the URL link judgement for the resource that is cited according to the state of resource;
Information creating unit in the case where being in down status for the resource that is cited described in the confirmation, generates the first prompt Information, first prompt information is for prompting the publication resource to be released that can generate failure URL link.
13. device according to claim 12, which is characterized in that the information creating unit is also used to:
Resource be cited in the case where future time instance is offline described in the confirmation, generates the second prompt information, second prompt Information is for prompting the publication resource to be released that can generate failure URL link when the future time instance reaches.
14. device according to claim 12, which is characterized in that the information creating unit is also used to:
In the case that the resource that is cited described in the confirmation is in online state, third prompt information, the third prompt letter are generated Breath is for prompting the publication resource to be released not generate failure URL link.
15. device according to claim 14, which is characterized in that the acquiring unit issues it in the resource to be released Afterwards, it is also used to:
The path Content Management System CMS of the resource to be released is obtained according to the URL link of the resource to be released;
The path CMS for the resource that is cited according to the acquisition of the URL link of the resource that is cited;
The device further includes recording unit, the recording unit, for record the resource to be released the path CMS and the quilt The adduction relationship for quoting the path CMS of resource, the state for recording the resource to be released is online state, and record it is described to The corresponding relationship for issuing the path CMS of resource and the state of the resource to be released, wherein the state of the resource to be released is remembered Record is online state.
16. 2 to 14 described in any item devices according to claim 1, which is characterized in that the recording unit is single in the reception Before member receives the first detection instruction for resource to be released of user's triggering, it is also used to:
The corresponding relationship of the state of the path CMS for the resource that is cited described in record and the resource that is cited;
The judging unit is cited described in the URL link judgement for the resource that is cited according to the state of resource, specific to use In:
The path CMS for the resource that is cited according to the acquisition of the URL link of the resource that is cited;
The state of the resource that is cited corresponding with the path CMS of the resource that is cited is searched from the corresponding relationship.
17. 2 to 16 described in any item devices according to claim 1, which is characterized in that the type of the resource to be released is net The type of one of member and document, the resource that is cited is one or both of network element and document, wherein the document Including multiple webpages.
18. a kind of device characterized by comprising
Receiving unit, for receiving the second detection instruction of user's triggering being directed to offline resource;
Acquiring unit, for obtaining the uniform resource position mark URL chain to offline resource according to second detection instruction It connects;
Judging unit, the state of the reference resource for judging the reference URL link to offline webpage;
Information creating unit, in the case where confirming that the reference resource is in online state, generating the 4th prompt letter Breath, the 4th prompt information offline described can generate failure URL link to offline resource for prompting.
19. device according to claim 18, which is characterized in that the information creating unit is also used to:
Resource be cited in the case where future time instance is offline described in the confirmation, generates the 5th prompt information, the 5th prompt Information offline described can generate failure URL link when the future time instance reaches when offline resource for prompting.
20. device according to claim 18, which is characterized in that the information creating unit is also used to:
In the case that the resource that is cited described in the confirmation is in down status, the 6th prompt information, the 6th prompt are generated Information is for prompting the offline resource to be released not generate failure URL link.
21. 8 to 20 described in any item devices according to claim 1, which is characterized in that the device further includes recording unit, institute Recording unit is stated before receiving unit reception user's triggering is for the second detection instruction of offline resource, is also used In:
The adduction relationship in the path CMS in the record path the CMS and reference resource to offline resource;
Record the corresponding relationship in the path CMS of the reference resource and the state of the reference resource;
The judging unit is specifically used in the state of the reference resource of the judgement reference URL link to offline webpage:
The path CMS to offline resource is obtained according to the URL link to offline resource;
The path CMS of the reference resource is obtained from the adduction relationship according to the path CMS to offline resource;
The state of the reference resource corresponding with the reference path CMS of resource is searched from the corresponding relationship.
22. 8 to 20 described in any item devices according to claim 1, which is characterized in that the type of the resource to be released is net One of page and document, the type of the resource that is cited are one of webpage and document.
23. a kind of device, which is characterized in that including memory and processor;The memory is stored with program instruction, the place It manages device operation described program instruction and 1~6 any method is required with perform claim.
24. a kind of device, which is characterized in that including memory and processor;The memory is stored with program instruction, the place It manages device operation described program instruction and 7~11 any methods is required with perform claim.
25. a kind of computer readable storage medium, which is characterized in that instruction is stored in computer readable storage medium, when it When running on computers, so that computer executes the method as described in claim 1~6 is any.
26. a kind of computer readable storage medium, which is characterized in that instruction is stored in computer readable storage medium, when it When running on computers, so that computer executes the method as described in claim 7~11 is any.
CN201910461625.0A 2019-05-30 2019-05-30 Resource detection method and device Active CN110347955B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910461625.0A CN110347955B (en) 2019-05-30 2019-05-30 Resource detection method and device
PCT/CN2020/088786 WO2020238567A1 (en) 2019-05-30 2020-05-06 Method and apparatus for resource detection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910461625.0A CN110347955B (en) 2019-05-30 2019-05-30 Resource detection method and device

Publications (2)

Publication Number Publication Date
CN110347955A true CN110347955A (en) 2019-10-18
CN110347955B CN110347955B (en) 2023-03-03

Family

ID=68174400

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910461625.0A Active CN110347955B (en) 2019-05-30 2019-05-30 Resource detection method and device

Country Status (2)

Country Link
CN (1) CN110347955B (en)
WO (1) WO2020238567A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020238567A1 (en) * 2019-05-30 2020-12-03 华为技术有限公司 Method and apparatus for resource detection
CN113343030A (en) * 2021-07-07 2021-09-03 湖南快乐阳光互动娱乐传媒有限公司 Data processing method and device, electronic equipment and computer readable storage medium
EP3982613A1 (en) * 2020-10-06 2022-04-13 Cyberpion Ltd Connection detection and prevention of dangling connections

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530297A (en) * 2012-07-05 2014-01-22 北京百度网讯科技有限公司 Method and device capable of automatically carrying out website analysis
US20160240097A1 (en) * 2013-09-20 2016-08-18 Western Michigan University Research Foundation Behavioral intelligence framework, content management system, and tool for constructing same
CN105893534A (en) * 2016-03-31 2016-08-24 乐视控股(北京)有限公司 Media file deleting method and device
CN106407462A (en) * 2016-10-10 2017-02-15 北京恒华伟业科技股份有限公司 File processing method and system
US20170300710A1 (en) * 2013-02-09 2017-10-19 Dropbox, Inc. Retroactive shared content item links
CN107943811A (en) * 2016-12-22 2018-04-20 腾讯科技(北京)有限公司 The dissemination method and device of content
CN108304402A (en) * 2017-01-12 2018-07-20 广州市动景计算机科技有限公司 Exterior chain availability monitor method and monitoring device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102739663A (en) * 2012-06-18 2012-10-17 奇智软件(北京)有限公司 Detection method and scanning engine of web pages
CN103544308A (en) * 2013-11-04 2014-01-29 北京中搜网络技术股份有限公司 Verification method of information entry
CN104317938B (en) * 2014-10-31 2018-02-02 北京国双科技有限公司 Web page interlinkage validation verification method and device
CN110347955B (en) * 2019-05-30 2023-03-03 华为云计算技术有限公司 Resource detection method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530297A (en) * 2012-07-05 2014-01-22 北京百度网讯科技有限公司 Method and device capable of automatically carrying out website analysis
US20170300710A1 (en) * 2013-02-09 2017-10-19 Dropbox, Inc. Retroactive shared content item links
US20160240097A1 (en) * 2013-09-20 2016-08-18 Western Michigan University Research Foundation Behavioral intelligence framework, content management system, and tool for constructing same
CN105893534A (en) * 2016-03-31 2016-08-24 乐视控股(北京)有限公司 Media file deleting method and device
CN106407462A (en) * 2016-10-10 2017-02-15 北京恒华伟业科技股份有限公司 File processing method and system
CN107943811A (en) * 2016-12-22 2018-04-20 腾讯科技(北京)有限公司 The dissemination method and device of content
CN108304402A (en) * 2017-01-12 2018-07-20 广州市动景计算机科技有限公司 Exterior chain availability monitor method and monitoring device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020238567A1 (en) * 2019-05-30 2020-12-03 华为技术有限公司 Method and apparatus for resource detection
EP3982613A1 (en) * 2020-10-06 2022-04-13 Cyberpion Ltd Connection detection and prevention of dangling connections
AU2021245121B2 (en) * 2020-10-06 2022-07-07 Ionix.Io Ltd Connection detection and prevention of dangling connections
CN113343030A (en) * 2021-07-07 2021-09-03 湖南快乐阳光互动娱乐传媒有限公司 Data processing method and device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
WO2020238567A1 (en) 2020-12-03
CN110347955B (en) 2023-03-03

Similar Documents

Publication Publication Date Title
AU2018201459B2 (en) System and method for improving access to search results
CN110149423B (en) Domain name processing method and device, readable storage medium and electronic equipment
US9547717B2 (en) Administration of search results
CN106503134B (en) Browser jumps to the method for data synchronization and device of application program
CN105144137B (en) The Interaction Analysis that Internet resources are carried out based on event of reloading
US8775598B2 (en) Intelligent offline caching of non-navigated content based on usage metrics
KR101748196B1 (en) Determining message data to present
CN106528657A (en) Control method and device for browser skipping to application program
US20140249964A1 (en) System and method for gathering ecommerce data
US11012339B2 (en) Web site reachability management for content browsing
US20120054440A1 (en) Systems and methods for providing a hierarchy of cache layers of different types for intext advertising
CN104572777B (en) Webpage loading method and device based on UIWebView component
CN105210051A (en) Estimating visibility of content items
CN110347955A (en) A kind of resource detection method and device
CN102768683B (en) A kind of searching method of pictorial information and searcher
CN103618696B (en) Method and server for processing cookie information
WO2021072742A1 (en) Assessing an impact of an upgrade to computer software
US20150220941A1 (en) Visual tagging to record interactions
CN103514021A (en) Method and device for providing browsers
CN103618761B (en) Method and browser for processing cookie information
CN104079594B (en) The method and apparatus downloaded for realizing Internet resources in closed system
CN110622135B (en) System and method for providing content items in situations involving suboptimal network conditions
CN108737458B (en) Method and device for controlling flow
KR20100079052A (en) Method, system and computer-readable recording medium for providing web page using cache
US10423680B2 (en) Keyboard command and control in a customer relationship management (CRM) system

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220216

Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Applicant after: Huawei Cloud Computing Technology Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Applicant before: HUAWEI TECHNOLOGIES Co.,Ltd.

GR01 Patent grant
GR01 Patent grant