CN104036053A - Invalid link address processing method and device - Google Patents

Invalid link address processing method and device Download PDF

Info

Publication number
CN104036053A
CN104036053A CN201410321468.0A CN201410321468A CN104036053A CN 104036053 A CN104036053 A CN 104036053A CN 201410321468 A CN201410321468 A CN 201410321468A CN 104036053 A CN104036053 A CN 104036053A
Authority
CN
China
Prior art keywords
address
picture
chained address
detected
invalid link
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.)
Pending
Application number
CN201410321468.0A
Other languages
Chinese (zh)
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.)
Kingsoft Guangzhou Network Technology Co Ltd
Original Assignee
Kingsoft Guangzhou Network Technology 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 Kingsoft Guangzhou Network Technology Co Ltd filed Critical Kingsoft Guangzhou Network Technology Co Ltd
Priority to CN201410321468.0A priority Critical patent/CN104036053A/en
Publication of CN104036053A publication Critical patent/CN104036053A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9558Details of hyperlinks; Management of linked annotations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content

Landscapes

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

Abstract

The embodiment of the invention discloses an invalid link address processing method and device. The invalid link address processing method is applied to a server and includes the following steps that information of pictures to be detected in a database is acquired, and the information of the pictures to be detected at least comprises the identification of the pictures to be detected and the link addresses of the pictures to be detected; whether the link addresses of the pictures to be detected are valid or not is judged; if the link addresses of the pictures to be detected are invalid, the invalid link addresses are replaced with corresponding preset valid link addresses. According to the technical scheme of the invalid link address processing method, pictures used in client software are all considered and not limited to common-use pictures, as long as the invalid link addresses are detected, the invalid link addresses are replaced with the preset valid link addresses corresponding to the invalid link addresses, and the displayed image content is complete after the client software acquires the picture information.

Description

A kind of invalid link address processing method and device
Technical field
The present invention relates to Internet technical field, particularly a kind of invalid link address processing method and device.
Background technology
In internet, the various pictures that show in webpage or application have effect separately, having plenty of horn of plenty web page contents exists, have plenty of as application logo and exist, different web pages or application safeguarded by different providers, and the picture showing in same webpage or application may come from multiple support channels business, and be kept on distributor's separately server, accumulate over a long period, occupied storage space is increasing.Distributor, in order to save the disk expense of own server, can regularly delete the part picture of preserving on own server.Can cause like this problem, be exactly that the place of having quoted the chained address of deleted picture there will be the situation of inefficacy in other webpages or application.As, application X is safeguarded by the A of provider, in this application, a part of picture comes from distributor B, when distributor B is in order to save the disk expense of own server, on own server, during deletion picture, there is situation about losing efficacy in the place of having quoted the chained address of deleted picture in application X.Once lose efficacy in the chained address of the picture of quoting in webpage or application, this picture position may be shown as red fork or error message, and the image content disappearance that causes webpage or application to present, affects user's visual experience.
The method addressing this problem is at present that provider backs up the conventional picture in safeguarded webpage or application on the server of oneself, and the address of the picture of backup is returned to the client software that need to access this picture.
Although this method has solved the problem losing efficacy and cause in the chained address of conventional picture to a certain extent, but because conventional picture is webpage or a part of applying picture used, when not having the chained address of the picture of backup to lose efficacy, the problem that still can cause the chained address of above-mentioned picture to lose efficacy and bring.
Summary of the invention
For addressing the above problem, the embodiment of the invention discloses a kind of invalid link address processing method and device.Technical scheme is as follows:
An invalid link address processing method, is applied to server end, and the method comprises:
Obtain pictorial information to be detected in database, described pictorial information to be detected at least comprises the sign of described picture to be detected and the chained address of described picture to be detected;
Whether the chained address that judges described picture to be detected is effective;
If invalid, invalid link address is replaced with to corresponding default effective chained address.
In a kind of embodiment of the present invention, describedly judge that whether the chained address of described picture to be detected is effective, comprising:
The chained address that connects described picture to be detected;
Judge whether return state code is default status code;
If not default status code, determine that the chained address of described picture to be detected is invalid.
In a kind of embodiment of the present invention, described invalid link address is replaced with to corresponding default effective chained address, comprising:
Detect the corresponding picture in invalid link address and whether have local backup;
According to testing result, invalid link address is replaced with to corresponding default effective chained address.
In a kind of embodiment of the present invention, described according to testing result, invalid link address is replaced with to corresponding default effective chained address, comprising:
If the corresponding picture in invalid link address has backup, described invalid link address is replaced with to the chained address of the backup picture of corresponding picture.
In a kind of embodiment of the present invention, described according to testing result, invalid link address is replaced with to corresponding default effective chained address, comprising:
If the corresponding picture in invalid link address, without backup, replaces with described invalid link address the chained address of default acquiescence picture.
In a kind of embodiment of the present invention, after invalid link address being replaced with to corresponding default effective chained address, also comprise:
Chained address after replacing is fed back to client software;
Or,
When the pictorial information that receives client software obtains request, to client software, return to corresponding chained address.
In a kind of embodiment of the present invention, also comprise:
The corresponding pictorial information in described invalid link address is recorded in journal file;
Described journal file is sent to default contact person.
An invalid link address process device, is applied to server end, and this device comprises:
Pictorial information obtains module, and for obtaining database pictorial information to be detected, described pictorial information to be detected at least comprises the sign of described picture to be detected and the chained address of described picture to be detected;
Chained address judge module, whether effective for judging the chained address of described picture to be detected;
Chained address replacement module, in the situation that the chained address of the described picture to be detected of chained address judge module judgement is invalid, replaces with corresponding default effective chained address by invalid link address.
In a kind of embodiment of the present invention, described chained address judge module, comprising:
Chained address connexon module, for connecting the chained address of described picture to be detected;
Status code judgement submodule, for judging whether return state code is default status code;
Submodule is determined in chained address, in the situation that status code judgement submodule judgement return state code is not default status code, determines that the chained address of described picture to be detected is invalid.
In a kind of embodiment of the present invention, chained address replacement module, comprising:
Whether backup image detect submodule, have local backup for detection of the corresponding picture in invalid link address;
Submodule is replaced in chained address, for according to the testing result of backup image detect submodule, invalid link address is replaced with to corresponding default effective chained address.
In a kind of embodiment of the present invention, submodule is replaced in described chained address, specifically for:
If the corresponding picture in invalid link address has backup, described invalid link address is replaced with to the chained address of the backup picture of corresponding picture.
In a kind of embodiment of the present invention, submodule is replaced in described chained address, specifically for:
If the corresponding picture in invalid link address, without backup, replaces with described invalid link address the chained address of default acquiescence picture.
In a kind of embodiment of the present invention, also comprise:
Chained address feedback module, for feeding back to client software by the chained address after replacing;
Or,
While asking for obtaining at the pictorial information that receives client software, to client software, return to corresponding chained address.
In a kind of embodiment of the present invention, also comprise:
Journal file logging modle, for being recorded to journal file by the corresponding pictorial information in described invalid link address;
Journal file sending module, for sending to default contact person by described journal file.
Whether effective the technical scheme that the embodiment of the present invention provides, first detect chained address, when invalid link address being detected, invalid link address replaced with to corresponding default effective chained address.Compared with prior art, the technical scheme that the embodiment of the present invention provides has consideration to the picture using in client software, be not limited to conventional picture, as long as invalid link address detected, capital replaces with the default effective chained address corresponding with this invalid link address, and it is complete making client software obtain the image content presenting after pictorial information.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is a kind of implementing procedure figure of invalid link address processing method in the embodiment of the present invention;
Fig. 2 is the another kind of implementing procedure figure of invalid link address processing method in the embodiment of the present invention;
Fig. 3 is a kind of structural representation of invalid link address process device in the embodiment of the present invention;
Fig. 4 is the another kind of structural representation of invalid link address process device in the embodiment of the present invention.
Embodiment
First a kind of invalid link address processing method embodiment of the present invention being provided describes, and the method can comprise the following steps:
Obtain pictorial information to be detected in database, described pictorial information to be detected at least comprises the sign of described picture to be detected and the chained address of described picture to be detected;
Whether the chained address that judges described picture to be detected is effective;
If invalid, invalid link address is replaced with to corresponding default effective chained address.
In client software, all can relate to the demonstration problem of picture, concrete may be the demonstration problem of picture in application (APP), or the demonstration problem of the picture relating to when browser browsing page, once the corresponding picture in the chained address of quoting in client software is deleted on server, just there will be the display position place of this picture to show red fork or error message.A kind of invalid link address processing method that the embodiment of the present invention provides is carried out at server end.Server end can judge that whether the chained address of the picture to be detected in database is effective, if it is invalid to judge the chained address of picture to be detected, this invalid link address is replaced with default effective chained address, so that always effective chained address that client software, when obtaining image data, gets.
Whether effective the technical scheme that the embodiment of the present invention provides, first detect chained address, when invalid link address being detected, invalid link address replaced with to corresponding default effective chained address.The picture using in client software is had to consideration, be not limited to conventional picture, as long as invalid link address detected, capital replaces with the default effective chained address corresponding with this invalid link address, and it is complete making client software obtain the image content presenting after pictorial information.
In order to make those skilled in the art understand better the technical scheme in the embodiment of the present invention, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Shown in Fig. 1, a kind of implementing procedure figure of the invalid link address processing method providing for the embodiment of the present invention, the method can comprise:
S100, obtains pictorial information to be detected in database;
The required data message of using of client software is kept in database, such as pictorial information, Word message etc.Server end can obtain pictorial information to be detected in database by the mode of scanning, and pictorial information to be detected at least can comprise the sign of picture to be detected and the chained address of picture to be detected.Wherein, the sign of picture to be detected can be used as unique identification marking of this picture, be used for being different from other pictures, the source of this picture is pointed in the chained address of picture to be detected, on the server that may be kept at the provider that safeguards this client software that the source of the picture that client software is shown has, on the server that may be kept at distributor having.The source of corresponding picture is pointed in the chained address of picture to be detected, thereby client software is obtained behind chained address, can get picture, and show on client software.
Here mention two servers are done to lower explanation:
The server of provider: the server of the provider of maintain customer end software, preserve the required data message of using of client software, the server of client software and provider carries out alternately, obtaining corresponding data message.
Distributor's server: the source of the part picture that client software is shown is provided by distributor, and be kept on distributor's server, in same client software, the source of different pictures may come from different distributors.
S200, judges that whether the chained address of described picture to be detected is effective;
At step S100, obtain behind the chained address of picture to be detected, judge that whether this chained address is effective, in order to determine whether to need to carry out the operation of step S300.
In a kind of embodiment of the present invention, judge that the whether effectively concrete determination methods in chained address of picture to be detected can comprise following three steps:
First step, connects the chained address of described picture to be detected;
Second step, judges whether return state code is default status code;
The 3rd step, if not default status code, determines that the chained address of described picture to be detected is invalid.
Status code is generally HTTP status code, in order to represent 3 digit numerical code of web page server http response state, by RFC2616 normalized definition, and obtain the standard expansions such as RFC2518, RFC2295, RFC2774, RFC4918.In HTTP status code, 200 represent that the connection request of address is successful.
In the specific embodiment of the invention, can default status code be set to 200, when connecting the chained address of picture to be detected, if return state code is 200, represent that this chained address is effective, need not do any processing to it, in client software, can normally show the corresponding picture in this chained address; If return state code is not 200 (may be other status code, as 404), represent that this chained address is invalid, namely in client software, cannot normally show the corresponding picture in this chained address, perform step S300 after determining invalid chained address.
S300, replaces with corresponding default effective chained address by invalid link address;
In the situation that step S200 judges that the chained address of picture to be detected is invalid, invalid link address is replaced with to corresponding default effective chained address.
Be understandable that, server end can periodically be carried out above step, as long as invalid link address detected, this invalid link address will be replaced with to corresponding effective chained address, while making client software obtain image data, can obtain effective chained address, thereby make that interface content is complete to be shown, can also initiatively trigger as the case may be server end operation personnel and carry out.
Whether effective the technical scheme that the embodiment of the present invention provides, first detect chained address, when invalid link address being detected, invalid link address replaced with to corresponding default effective chained address.The picture using in client software is had to consideration, be not limited to conventional picture, as long as invalid link address detected, capital replaces with the default effective chained address corresponding with this invalid link address, and it is complete making client software obtain the image content presenting after pictorial information.
Shown in Fig. 2, be the another kind of implementing procedure figure of embodiment of the present invention invalid link address processing method, step S300 can comprise the following steps:
S310, whether detect the corresponding picture in invalid link address has local backup;
If testing result is invalid link address, corresponding picture has local backup, performs step S320;
If testing result be the corresponding picture in invalid link address without local backup, perform step S330.
In actual applications, the picture of distributor's server preservation is directly pointed in the chained address of the picture that the server of the corresponding provider of client software is preserved, and can alleviate like this pressure of the own server of provider.
Or, the server of the corresponding provider of client software backs up some pictures important, that frequency of utilization is higher, and to the picture of each backup, generate a chained address according to certain rule, the picture of backup is directly pointed in this chained address, the benefit of backup picture is, when the corresponding picture in distributor's server deletes that this client software quotes chained address, invalid link address is replaced in the chained address of the picture that can directly this locality be preserved;
Again or, the server of the corresponding provider of client software is preserved acquiescence picture, and generate a chained address to acquiescence picture, acquiescence picture is directly pointed in this chained address, the benefit existing is, when distributor's server is deleted the corresponding picture in chained address that this client software is quoted, and the server of provider is not when back up this picture, invalid link address can be replaced in the chained address of acquiescence picture, the interface content that client software is shown is complete.
The form of the chained address of the picture that client software is shown can be this below:
http://app.sjk.ijinshan.com/market/img/tag/0/20130109114049865.png。This chained address has characterized the position at the place, source of corresponding picture, and client software can directly get corresponding picture by this chained address.
S320, replaces with described invalid link address the chained address of the backup picture of corresponding picture;
If the corresponding picture in invalid link address has local backup, on the server of the corresponding provider of client software, there is backup, invalid link address is replaced with to the chained address of the backup picture of corresponding picture.Be understandable that the replacement of chained address can be carried out according to the sign of the picture to be detected obtaining.
Illustrate, client software need to be used picture E, through step S200, the judgement corresponding chained address of picture E is invalid, the picture E ' that has the backup of picture E on the server of the corresponding provider of client software, according to the sign of picture E, the chained address of picture E is replaced with to the chained address of picture E '.Client software obtains data, what get is the chained address of picture E ', and that in display interface, the display position of picture E shows is picture E ', but because of picture E ' be the backup picture of picture E, the content of two pictures is actual is the same, as broad as long concerning user.
S330, replaces with described invalid link address the chained address of default acquiescence picture;
If the corresponding picture in invalid link address without local backup, can be preset a pictures for acquiescence picture, inefficacy chained address is replaced in the corresponding chained address of this picture.Be understandable that, on the server of provider, do not have the frequency of utilization of picture of backup not high, user is in navigation process, and attention rate is not high yet, if but were shown as red fork or error message just may mislead user, would make user feel what problem has appearred in whole client software.If but replace inefficacy chained address with the chained address of acquiescence picture, when client software obtains this corresponding chained address of acquiescence picture, the content that the client software that user sees shows or complete, what at the display position place of picture corresponding to invalid link address, show is the acquiescence picture of presetting, and is unlikely to occur red fork or error message.
Illustrate, client software need to be used picture E, and through step S200, the judgement corresponding chained address of picture E is invalid, the backup picture that there is no picture E on the server of the corresponding provider of client software, replaces with the chained address of picture E the chained address of giving tacit consent to picture F.Client software obtains data, what get is the chained address of picture F, that in display interface, the display position of picture E shows is picture F, although the content of picture E and picture F may be also not exclusively inconsistent, but the whole interface that client software is shown or complete, can not affect user's visual experience substantially.
In a kind of embodiment of the present invention, the mode that client software obtains effective chained address can have multiple, enumerates several here:
First kind of way, can variable field be set in order to obtain the chained address of needed picture at client software, after invalid link address being replaced with corresponding default effective chained address when server end like this, client software always can correspond to the chained address after replacement by field value, makes the shown content of client software always complete.This mode is transparent for client software, does not need to do any operation, and what get is exactly effective chained address, directly uses, not to client software build-up of pressure;
The second way, server end can also initiatively feed back to client software by the chained address after replacing, and client software receives behind the chained address of replacement, and scheduler list is applied new chained address and is carried out obtaining of corresponding image data.This mode server end only feeds back for invalid link address, compared with prior art, has saved network traffics, has reduced network overhead;
The third mode, server end, when the pictorial information that receives client software obtains request, returns to corresponding chained address to client software.Namely feed back as required, client software whenever necessary server end just returns to corresponding chained address.This mode has further been saved network traffics, has reduced network overhead.
In a kind of embodiment of the present invention, replace behind chained address, can also comprise following two steps:
First step, is recorded to the corresponding pictorial information in described invalid link address in journal file;
Second step, sends to default contact person by described journal file.
The corresponding pictorial information in invalid link address is recorded in journal file, can by the mode of note or mail, offers default contact person, as operation personnel.For the place that replaces with the chained address of default acquiescence picture, when operation personnel checks daily record, if think that former picture is important, need client software to be shown as former picture, can upload corresponding picture and generate the chained address that chained address replaces acquiescence picture, or revise the source that chained address makes it to point to other pictures.
Corresponding to embodiment of the method above, the embodiment of the present invention also provides a kind of invalid link address process device, and as shown in Figure 3, this device can comprise:
Pictorial information obtains module 100, and for obtaining database pictorial information to be detected, described pictorial information to be detected at least comprises the sign of described picture to be detected and the chained address of described picture to be detected;
Chained address judge module 200, whether effective for judging the chained address of described picture to be detected;
Chained address replacement module 300, in the situation that the chained address of the described picture to be detected of chained address judge module 200 judgement is invalid, replaces with corresponding default effective chained address by invalid link address.
Whether effective the invalid link address process device that the embodiment of the present invention provides, first detect chained address, when invalid link address being detected, invalid link address replaced with to corresponding default effective chained address.The picture using in client software is had to consideration, be not limited to conventional picture, as long as invalid link address detected, capital replaces with the default effective chained address corresponding with this invalid link address, and it is complete making client software obtain the image content presenting after pictorial information.
In a kind of embodiment of the present invention, chained address judge module 200, can comprise:
Chained address connexon module, for connecting the chained address of described picture to be detected;
Status code judgement submodule, for judging whether return state code is default status code;
Submodule is determined in chained address, in the situation that status code judgement submodule judgement return state code is not default status code, determines that the chained address of described picture to be detected is invalid.
Shown in Figure 4, in another kind of embodiment of the present invention, chained address replacement module 300, can comprise:
Whether backup image detect submodule 310, have local backup for detection of the corresponding picture in invalid link address;
Submodule 320 is replaced in chained address, for according to the testing result of backup image detect submodule, invalid link address is replaced with to corresponding default effective chained address.
In a kind of embodiment of the present invention, submodule 320 is replaced in chained address, specifically for:
If the corresponding picture in invalid link address has backup, described invalid link address is replaced with to the chained address of the backup picture of corresponding picture.
In a kind of embodiment of the present invention, submodule 320 is replaced in chained address, specifically for:
If the corresponding picture in invalid link address, without backup, replaces with described invalid link address the chained address of default acquiescence picture.
In a kind of embodiment of the present invention, also comprise:
Chained address feedback module, for feeding back to client software by the chained address after replacing;
Or,
While asking for obtaining at the pictorial information that receives client software, to client software, return to corresponding chained address.
In a kind of embodiment of the present invention, also comprise:
Journal file logging modle, for being recorded to journal file by the corresponding pictorial information in described invalid link address;
Journal file sending module, for sending to default contact person by described journal file.
It should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
Each embodiment in this instructions all adopts relevant mode to describe, between each embodiment identical similar part mutually referring to, each embodiment stresses is the difference with other embodiment.Especially, for device embodiment, because it is substantially similar in appearance to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
One of ordinary skill in the art will appreciate that all or part of step realizing in said method embodiment is to come the hardware that instruction is relevant to complete by program, described program can be stored in computer read/write memory medium, here alleged storage medium, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any modifications of doing within the spirit and principles in the present invention, be equal to replacement, improvement etc., be all included in protection scope of the present invention.

Claims (14)

1. an invalid link address processing method, is applied to server end, it is characterized in that, comprising:
Obtain pictorial information to be detected in database, described pictorial information to be detected at least comprises the sign of described picture to be detected and the chained address of described picture to be detected;
Whether the chained address that judges described picture to be detected is effective;
If invalid, invalid link address is replaced with to corresponding default effective chained address.
2. method according to claim 1, is characterized in that, describedly judges that whether the chained address of described picture to be detected is effective, comprising:
The chained address that connects described picture to be detected;
Judge whether return state code is default status code;
If not default status code, determine that the chained address of described picture to be detected is invalid.
3. method according to claim 1, is characterized in that, described invalid link address is replaced with to corresponding default effective chained address, comprising:
Detect the corresponding picture in invalid link address and whether have local backup;
According to testing result, invalid link address is replaced with to corresponding default effective chained address.
4. method according to claim 3, is characterized in that, described according to testing result, and invalid link address is replaced with to corresponding default effective chained address, comprising:
If the corresponding picture in invalid link address has backup, described invalid link address is replaced with to the chained address of the backup picture of corresponding picture.
5. method according to claim 3, is characterized in that, described according to testing result, and invalid link address is replaced with to corresponding default effective chained address, comprising:
If the corresponding picture in invalid link address, without backup, replaces with described invalid link address the chained address of default acquiescence picture.
6. method according to claim 1, is characterized in that, after invalid link address being replaced with to corresponding default effective chained address, also comprises:
Chained address after replacing is fed back to client software;
Or,
When the pictorial information that receives client software obtains request, to client software, return to corresponding chained address.
7. method according to claim 1, is characterized in that, also comprises:
The corresponding pictorial information in described invalid link address is recorded in journal file;
Described journal file is sent to default contact person.
8. an invalid link address process device, is applied to server end, it is characterized in that, comprising:
Pictorial information obtains module, and for obtaining database pictorial information to be detected, described pictorial information to be detected at least comprises the sign of described picture to be detected and the chained address of described picture to be detected;
Chained address judge module, whether effective for judging the chained address of described picture to be detected;
Chained address replacement module, in the situation that the chained address of the described picture to be detected of chained address judge module judgement is invalid, replaces with corresponding default effective chained address by invalid link address.
9. device according to claim 8, is characterized in that, described chained address judge module, comprising:
Chained address connexon module, for connecting the chained address of described picture to be detected;
Status code judgement submodule, for judging whether return state code is default status code;
Submodule is determined in chained address, in the situation that status code judgement submodule judgement return state code is not default status code, determines that the chained address of described picture to be detected is invalid.
10. device according to claim 8, is characterized in that, chained address replacement module, comprising:
Whether backup image detect submodule, have local backup for detection of the corresponding picture in invalid link address;
Submodule is replaced in chained address, for according to the testing result of backup image detect submodule, invalid link address is replaced with to corresponding default effective chained address.
11. devices according to claim 10, is characterized in that, submodule is replaced in described chained address, specifically for:
If the corresponding picture in invalid link address has backup, described invalid link address is replaced with to the chained address of the backup picture of corresponding picture.
12. devices according to claim 10, is characterized in that, submodule is replaced in described chained address, specifically for:
If the corresponding picture in invalid link address, without backup, replaces with described invalid link address the chained address of default acquiescence picture.
13. devices according to claim 8, is characterized in that, also comprise:
Chained address feedback module, for feeding back to client software by the chained address after replacing;
Or,
While asking for obtaining at the pictorial information that receives client software, to client software, return to corresponding chained address.
14. devices according to claim 8, is characterized in that, also comprise:
Journal file logging modle, for being recorded to journal file by the corresponding pictorial information in described invalid link address;
Journal file sending module, for sending to default contact person by described journal file.
CN201410321468.0A 2014-07-07 2014-07-07 Invalid link address processing method and device Pending CN104036053A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410321468.0A CN104036053A (en) 2014-07-07 2014-07-07 Invalid link address processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410321468.0A CN104036053A (en) 2014-07-07 2014-07-07 Invalid link address processing method and device

Publications (1)

Publication Number Publication Date
CN104036053A true CN104036053A (en) 2014-09-10

Family

ID=51466825

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410321468.0A Pending CN104036053A (en) 2014-07-07 2014-07-07 Invalid link address processing method and device

Country Status (1)

Country Link
CN (1) CN104036053A (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104869033A (en) * 2015-04-23 2015-08-26 百度在线网络技术(北京)有限公司 Method and apparatus for determining dead links
CN105022824A (en) * 2015-07-21 2015-11-04 北京神州绿盟信息安全科技股份有限公司 Method and device for recognizing invalid link
CN105095463A (en) * 2015-07-30 2015-11-25 北京奇虎科技有限公司 Method, device and system for patrolling material link addresses
CN105187505A (en) * 2015-08-11 2015-12-23 魅族科技(中国)有限公司 Download processing method and device
CN105447093A (en) * 2015-11-09 2016-03-30 上海晶赞科技发展有限公司 Target picture capturing method and apparatus
CN105589879A (en) * 2014-10-23 2016-05-18 阿里巴巴集团控股有限公司 Method and apparatus for downloading picture by client
CN105975526A (en) * 2016-04-29 2016-09-28 国家计算机网络与信息安全管理中心 URL link validity verification method
CN106021304A (en) * 2016-05-05 2016-10-12 乐视控股(北京)有限公司 Webpage address correcting method and system
CN106326485A (en) * 2016-09-05 2017-01-11 郑州悉知信息科技股份有限公司 Method for detecting web link and device thereof
CN107066609A (en) * 2017-04-27 2017-08-18 北京京东尚科信息技术有限公司 Image display method and device
CN109523304A (en) * 2018-10-22 2019-03-26 北京奇虎科技有限公司 A kind of method for previewing and device of advertisement
CN109740076A (en) * 2018-12-28 2019-05-10 北京字节跳动网络技术有限公司 Webpage display process and device
CN109977332A (en) * 2019-03-19 2019-07-05 广州品唯软件有限公司 The picture access method, apparatus and storage medium of mobile terminal
CN110020264A (en) * 2018-12-29 2019-07-16 阿里巴巴集团控股有限公司 A kind of determination method and device of broken hyperlink
CN110018870A (en) * 2019-03-07 2019-07-16 平安国际智慧城市科技股份有限公司 Terminal window display methods, device, computer equipment and storage medium
CN110276033A (en) * 2019-06-28 2019-09-24 京东方科技集团股份有限公司 Picture match method and server, computer readable storage medium, electronic equipment
CN110753270A (en) * 2019-10-16 2020-02-04 北京达佳互联信息技术有限公司 Information display method, device, terminal, server, system and storage medium
CN112667581A (en) * 2020-12-07 2021-04-16 贝壳技术有限公司 File link processing method, client and server for text editing
CN113536163A (en) * 2021-07-13 2021-10-22 北京百度网讯科技有限公司 Processing method, device and equipment for picture linking and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101763357A (en) * 2008-11-13 2010-06-30 北京搜狗科技发展有限公司 Method and system for browser to load internet resources
CN103309996A (en) * 2013-06-21 2013-09-18 宇龙计算机通信科技(深圳)有限公司 Webpage content processing method and device
CN103425504A (en) * 2012-05-18 2013-12-04 阿里巴巴集团控股有限公司 Method and device for loading video files

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101763357A (en) * 2008-11-13 2010-06-30 北京搜狗科技发展有限公司 Method and system for browser to load internet resources
CN103425504A (en) * 2012-05-18 2013-12-04 阿里巴巴集团控股有限公司 Method and device for loading video files
CN103309996A (en) * 2013-06-21 2013-09-18 宇龙计算机通信科技(深圳)有限公司 Webpage content processing method and device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
佚名: ""Handle Image Loading Errors With jQuery"", 《HTTPS://PAULUND.CO.UK/HANDLE-IMAGE-LOADING-ERRORS-WITH-JQUERY》 *
佚名: ""用Javascript判断图片是否存在,不存在则显示默认图片的代码"", 《HTTP://WWW.JB51.NET/ARTICLE/8796.HTM》 *
无心花: ""用Javascript判断图片是否存在,不存在则显示默认图片的代码"", 《HTTP://WWW.CNBLOGS.COM/FLOWERS-YANG/P/3419067.HTML》 *

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105589879A (en) * 2014-10-23 2016-05-18 阿里巴巴集团控股有限公司 Method and apparatus for downloading picture by client
CN105589879B (en) * 2014-10-23 2019-01-04 阿里巴巴集团控股有限公司 The method and device thereof of client downloads picture
CN104869033B (en) * 2015-04-23 2018-05-01 百度在线网络技术(北京)有限公司 It is a kind of to be used to determine the method and apparatus extremely linked
CN104869033A (en) * 2015-04-23 2015-08-26 百度在线网络技术(北京)有限公司 Method and apparatus for determining dead links
CN105022824A (en) * 2015-07-21 2015-11-04 北京神州绿盟信息安全科技股份有限公司 Method and device for recognizing invalid link
CN105022824B (en) * 2015-07-21 2018-07-03 北京神州绿盟信息安全科技股份有限公司 The recognition methods of invalid link and device
CN105095463A (en) * 2015-07-30 2015-11-25 北京奇虎科技有限公司 Method, device and system for patrolling material link addresses
CN105095463B (en) * 2015-07-30 2018-09-11 北京奇虎科技有限公司 Visiting method, the apparatus and system of material chained address
CN105187505A (en) * 2015-08-11 2015-12-23 魅族科技(中国)有限公司 Download processing method and device
CN105447093A (en) * 2015-11-09 2016-03-30 上海晶赞科技发展有限公司 Target picture capturing method and apparatus
CN105975526A (en) * 2016-04-29 2016-09-28 国家计算机网络与信息安全管理中心 URL link validity verification method
CN106021304A (en) * 2016-05-05 2016-10-12 乐视控股(北京)有限公司 Webpage address correcting method and system
CN106326485A (en) * 2016-09-05 2017-01-11 郑州悉知信息科技股份有限公司 Method for detecting web link and device thereof
CN107066609A (en) * 2017-04-27 2017-08-18 北京京东尚科信息技术有限公司 Image display method and device
CN109523304A (en) * 2018-10-22 2019-03-26 北京奇虎科技有限公司 A kind of method for previewing and device of advertisement
CN109523304B (en) * 2018-10-22 2024-03-05 北京奇虎科技有限公司 Advertisement previewing method and device
CN109740076A (en) * 2018-12-28 2019-05-10 北京字节跳动网络技术有限公司 Webpage display process and device
CN110020264A (en) * 2018-12-29 2019-07-16 阿里巴巴集团控股有限公司 A kind of determination method and device of broken hyperlink
CN110020264B (en) * 2018-12-29 2023-10-24 创新先进技术有限公司 Method and device for determining invalid hyperlinks
CN110018870A (en) * 2019-03-07 2019-07-16 平安国际智慧城市科技股份有限公司 Terminal window display methods, device, computer equipment and storage medium
CN109977332A (en) * 2019-03-19 2019-07-05 广州品唯软件有限公司 The picture access method, apparatus and storage medium of mobile terminal
CN110276033A (en) * 2019-06-28 2019-09-24 京东方科技集团股份有限公司 Picture match method and server, computer readable storage medium, electronic equipment
CN110753270A (en) * 2019-10-16 2020-02-04 北京达佳互联信息技术有限公司 Information display method, device, terminal, server, system and storage medium
CN110753270B (en) * 2019-10-16 2022-06-10 北京达佳互联信息技术有限公司 Information display method, device, terminal, server, system and storage medium
CN112667581A (en) * 2020-12-07 2021-04-16 贝壳技术有限公司 File link processing method, client and server for text editing
CN113536163A (en) * 2021-07-13 2021-10-22 北京百度网讯科技有限公司 Processing method, device and equipment for picture linking and storage medium

Similar Documents

Publication Publication Date Title
CN104036053A (en) Invalid link address processing method and device
US9553923B2 (en) Methods and apparatus for pixel encoded web page
US20150378721A1 (en) Methods for managing applications using semantic modeling and tagging and devices thereof
US8996606B2 (en) Web service architecture for dynamic rules table generation
CN105528408A (en) Page display method and apparatus
US20140249935A1 (en) Systems and methods for forwarding users to merchant websites
CN104426925A (en) Webpage resource obtaining method and apparatus
US20140032364A1 (en) System and method for providing verification of seller authorization and product authentication
CN107632971B (en) Method and device for generating multidimensional report
JP6163742B2 (en) Product information providing apparatus and product information providing method
CN108925145B (en) Device provisioning
CN104008211A (en) Advertisement intercepting method and device
JP2020004050A (en) server
KR101701678B1 (en) Method and system for securely managing advertisement images with copyright
KR20150025518A (en) Apparatus and method for managing banner advertisement
US10965781B2 (en) Method and server for displaying access content
EP3449454A1 (en) Emphasizing communication based on past interaction related to promoted items
CN113762994A (en) Method and device for user operation management
CN111367898A (en) Data processing method, device, system, electronic equipment and storage medium
KR102618666B1 (en) Management System of Integrated Contents Connected to Things
JP6720396B1 (en) Affiliate advertisement control device, affiliate advertisement control method and program
AU2021107100A4 (en) An automated advertising method for taking personalized and staying location based informational offers related to immediate business using machine learning model
AU2021106436A4 (en) An automatic advertising system for providing personalized and visiting location based promotional offers related to nearby business using machine learning model
US20160034975A1 (en) Referring content using a food item
CN109104501B (en) Data synchronization method, device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140910