CN104915347A - Processing method, apparatus and system for web address - Google Patents

Processing method, apparatus and system for web address Download PDF

Info

Publication number
CN104915347A
CN104915347A CN201410088729.9A CN201410088729A CN104915347A CN 104915347 A CN104915347 A CN 104915347A CN 201410088729 A CN201410088729 A CN 201410088729A CN 104915347 A CN104915347 A CN 104915347A
Authority
CN
China
Prior art keywords
network address
address
origin
webpage
url
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
CN201410088729.9A
Other languages
Chinese (zh)
Other versions
CN104915347B (en
Inventor
许诗
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Beijing Co Ltd
Original Assignee
Tencent Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Beijing Co Ltd filed Critical Tencent Technology Beijing Co Ltd
Priority to CN201410088729.9A priority Critical patent/CN104915347B/en
Publication of CN104915347A publication Critical patent/CN104915347A/en
Application granted granted Critical
Publication of CN104915347B publication Critical patent/CN104915347B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The present invention discloses a processing method, a processing apparatus and a processing system for web address. The method includes: reading a web address displayed on a web page of a client; obtaining an original web address corresponding to the web address displayed on the web page, wherein, the web address displayed on the web page is generated by translation of a domain name of the original web address; analyzing the original web address to generate a source address corresponding to the original web address; replacing the original web address with the source address; and saving data pair consisting of the web address displayed on the web page and the source address to a database. According to the invention, a translation success rate of the web address in web messages is ensured and time consumption for publishing web messages is reduced, and user experience is not affected.

Description

The disposal route of web page address, Apparatus and system
Technical field
The present invention relates to computer internet field, in particular to a kind of disposal route, Apparatus and system of web page address.
Background technology
For in prior art, generally, the carrier that user can carry out information interaction by users such as instant messaging, mail, social communication platforms carries out delivering interchange message, for microblog or micro-letter platform, user can deliver the message of folio by microblogging or micro-letter, because the number of words using microblogging or micro-letter to give out information is restricted, therefore, microblogging or micro-letter message are when delivering, if with url address in message, source address url in message body can be converted to short url, reduce the length of message, to provide better Consumer's Experience.But each microblogging or micro-letter platform have the short url(domain name of oneself), user also can use multiple microblog usually simultaneously.Wherein, after short url refers to that an original long url is changed by certain mode, the url that length is shortened; True url refers to the original long url corresponding to short url.
Such as, the short url domain name that current microblogging uses is url.cn, and the short url domain name that Sina's microblogging uses is t.cn.User has delivered one with long url(as http://t.qq.com/mydear.php at Sina's microblogging) message, then during message display, long url is changed into as http://t.cn/1234567 form; The message of the short url of band http://t.cn/1234567 that user directly delivers this in Sina again is directly delivered at current microblogging, then now current microblogging can change into http://t.cn/1234567 as http://url.cn/asdfgh form.When user browses message, mouse is placed on above http://url.cn/asdfgh, display be http://t.cn/1234567 and and the source address http://t.qq.com/mydear.php of really, real source address can not be seen for user, affect the experience of user; And virtually expanding the impact of t.cn; If the domain name of original url is the use of affiliate, original url domain name can not be shown and can weaken original domain name influence power equally.In addition, user is in click short url(http: //url.cn/asdfgh) time, also be first jump to t.cn server, then real source address is just jumped to, centre how one deck redirect, increase redirect mortality, and in the external world, the click jumping to source address url is come from Sina micro blog server t.cn, and not come from current micro blog server url.cn, statistically add the backflow of Sina micro blog server t.cn in backflow, and reduce the backflow of current micro blog server url.cn accordingly.
For the problem that cannot show the source address of mating with Webpage in above-mentioned correlation technique on Webpage, at present effective solution is not yet proposed.
Summary of the invention
Embodiments provide a kind of disposal route of web page address, Apparatus and system, at least to solve the technical matters that cannot show the source address of mating with Webpage in correlation technique on Webpage.
According to an aspect of the embodiment of the present invention, provide a kind of disposal route of web page address, the method comprises: read the network address that Webpage shows client; The origin network address that the network address that acquisition Webpage shows is corresponding, wherein, the network address that Webpage shows is the network address of origin network address being carried out domain name conversion process and generating; Resolve origin network address, generate the source address that origin network address is corresponding; Source address is used to replace origin network address; The data of preserving the network address and the source address formation that Webpage shows, to database, wherein, when the network address that the trigger network page shows, are called and show source address corresponding with the network address in database.
According to the another aspect of the embodiment of the present invention, additionally provide a kind for the treatment of apparatus of web page address, this device comprises: read module, for reading the network address that Webpage shows client; Acquisition module, for obtaining origin network address corresponding to the network address that Webpage shows, wherein, the network address that Webpage shows is the network address of origin network address being carried out domain name conversion process and generating; Parsing module, for resolving origin network address, generates the source address that origin network address is corresponding; Replacement module, replaces origin network address for using source address; Preserve module, for preserving the data of the network address and the source address formation that Webpage shows to database, wherein, when the network address that the trigger network page shows, calling and showing source address corresponding with the network address in database.
According to the another aspect of the embodiment of the present invention, additionally provide a kind of disposal system of web page address, this system comprises: client, and for delivering the network information, the network information comprises: the network address; Server, communication relation is set up with client, for reading the network address that Webpage shows client, after the origin network address that the network address that acquisition Webpage shows is corresponding, resolve origin network address, generate source address corresponding to origin network address, and use source address to replace origin network address, preserve data that the network address that Webpage shows and source address formed to database; Wherein, the network address that Webpage shows is the network address of origin network address being carried out domain name conversion process and generating, wherein, when the network address that the trigger network page shows, call and show source address corresponding with the network address in database.
In embodiments of the present invention, the network address of reading and Webpage showing client is adopted; The origin network address that the network address that acquisition Webpage shows is corresponding, wherein, the network address that Webpage shows is the network address of origin network address being carried out domain name conversion process and generating; Resolve origin network address, generate the source address that origin network address is corresponding; Source address is used to replace origin network address; Preserve the data of the network address and the source address formation that Webpage shows to the mode to database, by the technical scheme of real source address corresponding to the network address providing a kind of parsing to obtain the current network page, make when user's trigger network page shows the network address, directly can demonstrate source address, but not the origin network address of centre, thus make user by trigger network address (such as mouse is placed on the network address by user), the real corresponding source address in this network address can be seen.Achieve when mouse to be placed on the network address that this client browses by user, client can extract the network address that this Webpage of having preserved in database shows and a pair matched data of resolving the source address that obtains and forming, thus the actual source address that the network address realizing this Webpage of position display of placing at this network address mouse shows is corresponding, and then solve in correlation technique the technical matters that cannot show the source address of mating with Webpage in the source address correlation technique that cannot show on Webpage and mate with Webpage on Webpage.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, and form a application's part, schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the disposal system structural representation of the web page address according to the embodiment of the present invention one;
Fig. 2 is the process flow schematic diagram of the web page address according to the embodiment of the present invention two;
Fig. 3 is the detailed process schematic diagram of the disposal route according to the present invention's web page address embodiment illustrated in fig. 2; And
Fig. 4 is the treating apparatus structural representation of the web page address according to the embodiment of the present invention three.
Embodiment
It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.Below with reference to the accompanying drawings and describe the present invention in detail in conjunction with the embodiments.
The present invention program is understood better in order to make those skilled in the art person, 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 embodiment of a part of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, should belong to the scope of protection of the invention.
It should be noted that, term " first ", " second " etc. in instructions of the present invention and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.Should be appreciated that the data used like this can be exchanged in the appropriate case, so as embodiments of the invention described herein can with except here diagram or describe those except order implement.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, such as, contain those steps or unit that the process of series of steps or unit, method, system, product or equipment is not necessarily limited to clearly list, but can comprise clearly do not list or for intrinsic other step of these processes, method, product or equipment or unit.
Embodiment 1
Before the further details of each embodiment describing the application, the counting system structure that of the principle that can be used for realizing the application is suitable is described with reference to Fig. 1.In the following description, except as otherwise noted, the symbol otherwise with reference to the action performed by one or more computing machine and operation represents each embodiment describing the application.Thus, be appreciated that processing unit that this kind of action performed sometimes referred to as computing machine and operation comprise computing machine is to the manipulation of electric signal representing data with structured form.It is safeguarded in this manipulation transforms data or the position in the accumulator system of computing machine, and this reshuffles or changes the operation of computing machine in the mode that those skilled in the art understands.The data structure of service data is the physical location of the storer of the particular community that the form with data defines.But although describe the application in above-mentioned context, it does not also mean that restrictive, as understood by those skilled in the art, hereinafter described action and each side of operation also can realize with hardware.
In the configuration that it is the most basic, Fig. 1 is the disposal system structural representation of the web page address according to the embodiment of the present invention one.For purposes of illustration, the architecture of painting is only an example of proper environment, not proposes any limitation to the usable range of the application or function.This computing system should be interpreted as, to the arbitrary assembly shown in Fig. 1 or its combination, there is any dependence or demand yet.
As shown in Figure 1, this system can comprise: client 1 and a server 2.
Wherein, client 1, for display networks on Webpage, the network information comprises: the network address, server 2, communication relation is set up with client 2, for reading the network address that Webpage shows client 1, after the origin network address that the network address that acquisition Webpage shows is corresponding, resolve origin network address, generate the source address that origin network address is corresponding, and use source address to replace origin network address, preserve data that the network address that Webpage shows and source address formed to database, wherein, when the network address that the trigger network page shows, call and show source address corresponding with the network address in database,
Wherein, network address Webpage shown is the network address of origin network address being carried out domain name conversion process and generating.
In the above embodiments of the present application one, the technical scheme of the real source address that the network address providing a kind of parsing to obtain the current network page by server 2 is corresponding, make when user's triggering shows the network address on client 1 Webpage, directly can demonstrate source address, but not the origin network address of centre, thus make user by trigger network address (such as mouse is placed on the network address by user), the real corresponding source address in this network address can be seen.Achieve when mouse to be placed on the network address that this client browses by user, client can extract the network address that this Webpage of having preserved in database shows and a pair matched data of resolving the source address that obtains and forming, thus the actual source address that the network address realizing this Webpage of position display of placing at this network address mouse shows is corresponding, and then solve in correlation technique the technical matters that cannot show the source address of mating with Webpage in the source address correlation technique that cannot show on Webpage and mate with Webpage on Webpage.Wherein, this network address can be carried in the internet message that client successfully issues.
Easily it is noted that, because server 2 can detect the content of the network address in client 1, if detect obtain origin network address corresponding to present network address be through third-party server carry out domain name conversion process or reduction process and generate network address, then this origin network address is not real source address, this origin network address can be carried out parsing and get source address by system, and the source address that the network address and parsing obtain is formed data to being saved to back-end server, thus in network user's trigger network address, (trigger action can comprise: mouse is placed on the network address, click, the operations such as inquiry or transmission network address) after, source address can be demonstrated, instead of origin network address.And, in this client trigger network address process, because the data of the network address and source address are kept at back-end server, therefore, resolve obtain source address without the need to jumping to server corresponding to origin network address (such as Sina's micro blog server), but directly jump to back-end server and obtain source address, thus decrease number of hops and redirect mortality, and statistically add the backflow of background server in backflow.
The network address that Webpage in the above embodiments of the present application shows can comprise: the message of Webpage deliver input in typing frame the network address, client the message network address of delivering in typing frame successfully deliver after, what Webpage showed delivers the successful network address.It should be noted that, the network address that Webpage shows can be included in a part of content in the internet message that client-side network webpage shows.
In a kind of embodiment that the application provides, the network address that Webpage shows is that client 1 is when to deliver in process but also not deliver successful network address, the original address of this network address not only can be resolved by background server 2, obtain the source address being presented at client 1, source address (the such as http://t.qq.com/mydear.php) basis that also parsing can be obtained is changed, convert a short address url to, this short address as the display of the new network address on the client, namely the internet message carrying above-mentioned short address url can be delivered on the client.
Analyze known, the online replacement in the process that above-mentioned solution is mainly successfully delivered at internet message, origin network address carried out, resolving is delivered in process in message and is carried out, the process of delivering of internet message could continue process after must waiting for and being parsed, the network address of display and source address all can change.
In the another kind of embodiment that the application provides, by after delivery network address successful on client 1 website, by server 2, this network address is detected and dissection process accordingly, obtain the origin network address that this network address is carried out before domain name conversion, and by resolving this origin network address, obtain the source address of mating with this network address, and using the network address that this Webpage shows with resolve the source address that obtains as a pair matched data to preserving, achieve when mouse to be placed on the network address that this client browses by user, client 1 can extract the network address that this Webpage of having preserved in database shows and a pair matched data of resolving the source address that obtains and forming, thus the actual source address that the network address realizing showing on this Webpage of position display of this network address mouse placement is corresponding.Wherein, this network address can be carried in the internet message that client successfully issues.
It should be noted that, such scheme all occurs in after the network address is successfully distributed on client due to the process obtaining this source address, therefore, relatively prior art carried out the process obtaining source address before delivering the network address, by the scheme that the embodiment of the present invention provides, process is just continued after the process that client delivers the network address does not need by the time to be parsed, what greatly reduce internet message delivers the time, and, because above-mentioned resolving carries out independent execution after delivering the network address, thus when network environment is poor, also the success ratio of conversion can not be affected.And then solve the technical matters that cannot show the source address of mating with Webpage in correlation technique on Webpage further.So not only achieve can ensure the network address in internet message convert power to, and reduce that internet message delivers consuming time, do not affect Consumer's Experience.
In another possibility that the application provides, when the message of Webpage delivers the typing network address in typing frame, address due to now typing does not also have serviced device to carry out domain name conversion process, therefore, typing address can be the above-mentioned network address or origin network address herein.When the typing network address, as message delivers typing url(http: //t.cn/1234567) time, domain name conversion process can be carried out in the current network address by the short address url system that background server provides, generate a corresponding origin network address, can be that a short address url(is as http://url.cn/zxcvbn), then the origin network address of generation is returned to message and deliver process, to prepare to deliver, now, background server can by the message notice of the network address of the origin network address that generates and typing to modular converter, trigger modular converter parsing origin network address and obtain real source address.After modular converter parses real source address corresponding to the network address, Update Table storehouse, replaces with real source address by the origin network address corresponding to the network address.Therefore the origin network address externally shown just becomes source address, thus reaches conversion object.
Thus, the online replacement that origin network address mainly carries out by above-mentioned solution in the Input Process of internet message, the process of delivering of internet message could continue to process after to be resolved and replacement must be waited to complete.
Preferably, in the above embodiments of the present application, the network address that Webpage shows client 1 can be the short network address url that first server provides, origin network address can be the short network address url that second server provides, source address can be the long network address url that the 3rd server provides, wherein, the short network address url that second server provides is obtained after long network address url being carried out breviary process.
Need example to illustrate herein, deliver the network address from microblogging place of Sina for Tengxun's microblogging and be described in detail.The network address in above-described embodiment can by the background server of Tengxun's microblogging, and namely first server carries out to origin network address (such as from the network address http://t.cn/1234567 of Sina's microblogging) the short network address url(such as http://url.cn/zxcvbn that domain name is converted to); Herein, origin network address can be the short network address url that the background server of other products provider provides, the short network address url(such as http://t.cn/1234567 that the second server that such as Sina's microblogging provides obtains after carrying out breviary process to source address); Above-mentioned source address can be a long network address (such as http://t.qq.com/mydear.php), and this long network address can be that any one product manufacturer provides, the background server of such as Tengxun's microblogging or Baidu's background server.
Need to describe in detail, the data storage of the short network address url in the above embodiments of the present application can be direct mapping, can be also indirect mappers, not limit storage mode.
In the above embodiments of the present application, above-mentioned server 2 can comprise: conversion processor 21, storer 22 and a dispensing device 23.Preferably, before reading at server 2 network address that Webpage shows client, start the function performing conversion processor 21.
Wherein, conversion processor 21, in acquisition from after the message of Webpage delivers the origin network address of typing typing frame, origin network address is carried out domain name conversion process, generates the network address being used for delivering on the client.
Need example to illustrate herein, deliver the network address got from Sina's microblogging for Tengxun's microblogging and be described in detail.After the mode by typing inputs origin network address, conversion processor in the background server of Tengxun's microblogging can obtain the origin network address (such as from the network address http://t.cn/1234567 of Sina's microblogging) of input in the message of Webpage delivers typing frame (such as address field), and this origin network address is carried out domain name conversion process, generate a short network address url.Namely after the mode by typing inputs the network address, network address http://t.cn/1234567 from Sina's microblogging is carried out shortening process by the short url system of the background server of Tengxun's microblogging, can generate a corresponding short network address (such as http://url.cn/zxcvbn).
Wherein, storer 22, for preserving data that the network address and origin network address formed to database.What need example to illustrate herein is, the short network address url generated and origin network address can preserve with the form that the data of coupling are right by this storer, are stored in the database of storer by the short network address (such as http://url.cn/zxcvbn) with from the network address http://t.cn/1234567 of Sina's microblogging with the form of a data record.
Wherein, dispensing device 23, for being sent to client by the network address.What need example to illustrate herein is, server is after returning to message and delivering process by the short network address (such as http://url.cn/zxcvbn) corresponding for generation one, message can be performed by dispensing device and deliver process, so that this this short network address url is successfully published in the client of Tengxun's microblogging.
As from the foregoing, in the above embodiments of the present application, the data of the network address and origin network address formation are preserved to after database at storer, server can read origin network address corresponding to the network address that Webpage shows from database, what need example to illustrate herein is, http://url.cn/zxcvbn by the short network address url(generated in server 2 such as Tengxun's server generates) and the short network address http://t.cn/1234567 that provides of origin network address url(such as Sina's server of typing) message notice that forms is to the module of translation function, thus trigger the above-mentioned origin network address url of parsing.
Preferably, in the above embodiments of the present application, system also comprises: third-party server 3.
This third-party server 3, for resolving origin network address, generates the source address that origin network address is corresponding.Need example to illustrate herein, first, read the domain name addresses in origin network address; Then, use domain name addresses accesses the name server corresponding to this domain name addresses; Finally, read the source address that origin network address is corresponding from name server, wherein, origin network address is the network address after source address carries out breviary process.
Need example to illustrate herein, still deliver an origin network address got from Sina's microblogging for Tengxun's microblogging and be described in detail.This third-party server achieves and gets source address according to the domain name (such as: in the short network address http://t.cn/1234567 of the background server generation of Sina's microblogging, domain name is t.cn) in origin network address.Such as, the background server of Sina's microblogging can be accessed according to domain name t.cn, this source address corresponding to short network address http://t.cn/1234567 is read from the data of this server record, namely Sina's server be conversion process is carried out to this source address after obtain short network address http://t.cn/1234567, this source address can be a long network address (such as http://t.qq.com/mydear.php).
It can thus be appreciated that, the server 2 of the above embodiments of the present application parses origin network address url in the translation function by third-party server, after obtaining source address, source address can be used to replace origin network address, what need example to illustrate herein is, the origin network address of the data centering that the network address that the Webpage got shows and origin network address can be formed is revised as source address, thus saves the data pair of the network address and the source address formation that a Webpage shows in a database.
Because the bypath system of above-mentioned transfer process by the 3rd server completes, and be parallel carrying out with the Input Process of origin network address, therefore can not increase the consuming time of typing, what naturally also can not increase that message delivers is consuming time.
Still deliver an origin network address got from Sina's microblogging for Tengxun's microblogging to be described in detail.Above embodiments enable revise short url system data store, the short network address url(such as http://url.cn/zxcvbn on the background server 2 of Tengxun's microblogging) corresponding to origin network address url(such as http://t.cn/1234567) replace with real source address url(such as http://t.qq.com/mydear.php).Therefore achieve, the http://t.cn/1234567 when the origin network address url(such as typing that client 1 is externally shown) just change to actual source address http://t.qq.com/mydear.php, thus reach conversion object.
Preferably, in the above embodiments of the present application, server 2 can comprise: first processor.
Above-mentioned first processor, at parsing origin network address, generates origin network address) before corresponding source address, whether start detection origin network address comprises target website information; When origin network address comprises target website information, enter the step of resolving origin network address; When origin network address does not comprise target website information, terminate process of analysis, and preserve data that the network address that Webpage shows and origin network address formed to database.
Need example to illustrate herein, still deliver an origin network address got from Sina's microblogging for Tengxun's microblogging and be described in detail.
Above-mentioned first processor is the part in the background server of Tengxun's microblogging, getting the short network address url(such as http://url.cn/zxcvbn that Webpage shows) after, first processor detects in the origin network address (such as short network address http://t.cn/1234567) corresponding with it whether comprise default target website information (such as domain name t.cn), if comprised, then represent that Tengxun's microblogging thinks that current origin network address is the network address that a meeting affects source address redirect, third-party server then can be used to perform and to resolve origin network address (such as short network address http://t.cn/1234567), obtain real source address url(such as http://t.qq.com/mydear.php).
What need example to illustrate herein is, if there is not default target website information (such as domain name t.cn) in this origin network address, then represent that current origin network address is exactly the source address that can show on the client, now, only need the data formed in the network address that Webpage shows and origin network address to preserving.Preferably, whether above-mentioned detection origin network address url is that the step comprising domain name t.cn can be carried out when typing origin network address url and reading origin network address url.
Herein, what also need detailed description is, the application reads the mode delivering the successful network address that Webpage shows client 1, except can by for deliver in typing frame (such as address field, message hurdle) after input origin network address in the message of Webpage, read the result that server 2 transforms this origin network address to obtain, and the network address that the Webpage such as (inquiry, click operation) can show by triggering in client 1 obtains.
Preferably, the server 2 in the above embodiments of the present application can also comprise: processor and display device.
Wherein, processor, whether the network address shown on the Sampling network page is triggered, and the network address that Webpage shows is triggered, reads the source address that the network address that Webpage shows is corresponding from database; Display device, while show the network address on Webpage, shows the source address that the network address is corresponding simultaneously.
It can thus be appreciated that, in above-described embodiment, after server 2 can be implemented in the network address that the carrier of the trigger network page links, (carrier can comprise word, picture and control), the origin network address that the network address that Webpage shows is corresponding can be read from database, and at parsing origin network address, after generating source address corresponding to origin network address, the origin network address that the network address that the Webpage preserved in source address replacement data storehouse shows is corresponding can be used, wherein, origin network address is the network address after source address carries out breviary process.Need example to illustrate herein, this parsing processor can be the 3rd server.
Such scheme achieves system except carrying out conversion process to the network address that the Webpage of typing shows, and also can trigger conversion process when the network address url that Webpage shows is read.
What need example to illustrate herein is, the parsing transfer process failure triggered when supposing typing origin network address http://t.cn/1234567, namely the origin network address http://t.cn/1234567 of typing does not successfully replace with source address http://t.qq.com/mydear.php, therefore, after the network address http://url.cn/zxcvbn that the Webpage that the carrier of the trigger network page links shows, the origin network address url that the network address http://url.cn/zxcvbn that the background server reading client of Tengxun's microblogging is delivered is corresponding can return http://t.cn/1234567, instead of source address http://t.qq.com/mydear.php, now can reading result notice conversion functional module, trigger and again resolve real source address url.Can ensure that, after first time resolves convert failed, the parsing can having an opportunity to carry out true source address is again changed by such scheme.
Generally speaking, in the embodiment of the present application, for delivering of the network address related in above-mentioned conversion plan, system only needs to detect in the internet message needing to deliver whether include origin network address url, and do not need to distinguish this origin network address the short network address url etc. of to be long network address url or domain name be t.cn, to the origin network address url detected by the typing of short url system, be converted to the short network address url of predetermined domain name (such as url.cn), finally the short network address obtained is delivered on the client, it can thus be appreciated that, above-mentioned deliver before and do not need to carry out the acquisition process of source address in the process delivered, the logic of delivering of the network address is simplified greatly.After the network address is successfully delivered, start in the network information that the current network page shows the network address carry out inspection conversion process, said process is delivered without any impact for internet message, and all transfer processes transfer to short url system to complete.
Embodiment 2
According to the embodiment of the present invention, provide a kind of embodiment of the method for implementing system that the application relates to or device embodiment, it should be noted that, can perform in the computer system of such as one group of computer executable instructions in the step shown in the process flow diagram of accompanying drawing, and, although show logical order in flow charts, in some cases, can be different from the step shown or described by order execution herein.
According to the embodiment of the present invention, provide a kind of disposal route of web page address.Fig. 2 is the process flow schematic diagram of the web page address according to the embodiment of the present invention two; Fig. 3 is the detailed process schematic diagram of the disposal route according to the present invention's web page address embodiment illustrated in fig. 2.
As shown in Figure 2, the method can be applied in back-end server, and be described in detail from the implementation process of angle to the application of server, the disposal route of this web page address can comprise:
Step S10, can read by the server end shown in Fig. 1 the network address that the Webpage of client shows.
The network address in this step S10, Webpage shown can comprise: the message of Webpage delivers the network address inputted in typing frame; After the message network address of delivering in typing frame of client is successfully delivered, what Webpage showed delivers the successful network address; In the process that internet message is delivered, the network address to be delivered that Webpage shows.It should be noted that, the network address that Webpage shows can be included in a part of content in the internet message that client-side network webpage shows, and can read the above-mentioned network address of carrying in internet message by server.
Step S30, can obtain origin network address corresponding to the network address that Webpage shows by the server end shown in Fig. 1, wherein, the network address that Webpage shows is the network address of origin network address being carried out domain name conversion process and generating.
Step S50, can resolve origin network address by the server end shown in Fig. 1, generates the source address that origin network address is corresponding.
Above-mentioned steps S30 and step S50 can realize, there is origin network address (such as: when the network address is http://url.cn/asdfgh in the network address in server Sampling network message content, origin network address is http://t.cn/1234567, wherein, http://url.cn/asdfgh is the network address generated after http://t.cn/1234567 is carried out domain name conversion process) when, this origin network address can be extracted, and synchronous this origin network address of parsing, obtain real source address url(such as http://t.qq.com/mydear.php).
Step S70, can be performed by the server end shown in Fig. 1 and use source address to replace origin network address.
Step S90, data that the network address that Webpage shows and source address formed can be preserved to database by the server end shown in Fig. 1, wherein, when the network address that the trigger network page shows, call and show source address corresponding with the network address in database.
From above-mentioned steps, in the above embodiments of the present application two, by the technical scheme of real source address corresponding to the network address providing a kind of parsing to obtain the current network page, make when user's trigger network page shows the network address, directly can demonstrate source address, but not the origin network address of centre, thus make user by trigger network address (such as mouse is placed on the network address by user), the real corresponding source address in this network address can be seen.Achieve when mouse to be placed on the network address that this client browses by user, client can extract the network address that this Webpage of having preserved in database shows and a pair matched data of resolving the source address that obtains and forming, thus the actual source address that the network address realizing this Webpage of position display of placing at this network address mouse shows is corresponding, and then solve in correlation technique the technical matters that cannot show the source address of mating with Webpage in the source address correlation technique that cannot show on Webpage and mate with Webpage on Webpage.Wherein, this network address can be carried in the internet message that client successfully issues.
Easily it is noted that, owing to can detect the content of the network address of client, if detect obtain origin network address corresponding to present network address be through third-party server carry out domain name conversion process or reduction process and generate network address, then this origin network address is not real source address, this origin network address can be carried out parsing and get source address by system, and the source address that the network address and parsing obtain is formed data to being saved to back-end server, thus in network user's trigger network address, (trigger action can comprise: mouse is placed on the network address, click, the operations such as inquiry or transmission network address) after, source address can be demonstrated, instead of origin network address.And, in this client trigger network address process, because the data of the network address and source address are kept at back-end server, therefore, resolve obtain source address without the need to jumping to server corresponding to origin network address (such as Sina's micro blog server), but directly jump to back-end server and obtain source address, thus decrease number of hops and redirect mortality, and statistically add the backflow of background server in backflow.
The network address that Webpage in the above embodiments of the present application shows can comprise: the message of Webpage deliver input in typing frame the network address, client the message network address of delivering in typing frame successfully deliver after, what Webpage showed delivers the successful network address.It should be noted that, the network address that Webpage shows can be included in a part of content in the internet message that client-side network webpage shows.
In a kind of embodiment that the application provides, the network address that Webpage shows is that client is when to deliver in process but also not deliver successful network address, the original address of this network address not only can be resolved by background server, obtain the source address being presented at client, source address (the such as http://t.qq.com/mydear.php) basis that also can obtain in parsing is changed, convert a short address url to, this short address as the display of the new network address on the client, namely the internet message carrying above-mentioned short address url can be delivered on the client.
Analyze known, the online replacement in the process that above-mentioned solution is mainly successfully delivered at internet message, origin network address carried out, resolving is delivered in process in message and is carried out, the process of delivering of internet message could continue process after must waiting for and being parsed, the network address of display and source address all can change.
In the another kind of embodiment that the application provides, on client terminal website after successful delivery network address, this network address is detected and dissection process accordingly, obtain the origin network address that this network address is carried out before domain name conversion, and by resolving this origin network address, obtain the source address of mating with this network address, and using the network address that this Webpage shows with resolve the source address that obtains as a pair matched data to preserving, achieve when mouse to be placed on the network address that this client browses by user, client can extract the network address that this Webpage of having preserved in database shows and a pair matched data of resolving the source address that obtains and forming, thus the actual source address that the network address realizing showing on this Webpage of position display of this network address mouse placement is corresponding.
It should be noted that, such scheme all occurs in after the network address is successfully distributed on client due to the process obtaining this source address, therefore, more above-mentioned process of carrying out acquisition source address before delivering the network address, process is just continued after the process that client delivers the network address does not need by the time to be parsed, what greatly reduce internet message delivers the time, and, because above-mentioned resolving carries out independent execution after delivering the network address, thus when network environment is poor, the success ratio of conversion also can not be affected.And then solve the technical matters that cannot show the source address of mating with Webpage in correlation technique on Webpage further.So not only achieve can ensure the network address in internet message convert power to, and reduce that internet message delivers consuming time, do not affect Consumer's Experience.
In another possibility that the application provides, when the message of Webpage delivers the typing network address in typing frame, address due to now typing does not also have serviced device to carry out domain name conversion process, therefore, typing address can be the above-mentioned network address or origin network address herein.When the typing network address, as message delivers typing url(http: //t.cn/1234567) time, domain name conversion process can be carried out in the current network address by the short address url system that background server provides, generate a corresponding origin network address, can be that a short address url(is as http://url.cn/zxcvbn), then the origin network address of generation is returned to message and deliver process, to prepare to deliver, now, background server can by the message notice of the network address of the origin network address that generates and typing to modular converter, trigger modular converter parsing origin network address and obtain real source address.After modular converter parses real source address corresponding to the network address, Update Table storehouse, replaces with real source address by the origin network address corresponding to the network address.Therefore the origin network address externally shown just becomes source address, thus reaches conversion object.
Thus, the online replacement that origin network address mainly carries out by above-mentioned solution in the Input Process of internet message, the process of delivering of internet message could continue to process after to be resolved and replacement must be waited to complete.
The step S10 that the above embodiments of the present application provide to step S90 can run on the server.
Preferably, in the above embodiments of the present application, the network address that Webpage shows client can be the short network address url that first server provides, origin network address can be the short network address url that second server provides, source address can be the long network address url that the 3rd server provides, wherein, the short network address url that second server provides is obtained after long network address url being carried out breviary process.
Need example to illustrate herein, deliver the network address from microblogging place of Sina for Tengxun's microblogging and be described in detail.The network address in above-described embodiment can by the background server of Tengxun's microblogging, and namely first server carries out to origin network address (such as from the network address http://t.cn/1234567 of Sina's microblogging) the short network address url(such as http://url.cn/zxcvbn that domain name is converted to); Herein, origin network address can be the short network address url that the background server of other products provider provides, the short network address url(such as http://t.cn/1234567 that the second server that such as Sina's microblogging provides obtains after carrying out breviary process to source address); Above-mentioned source address can be a long network address (such as http://t.qq.com/mydear.php), and this long network address can be that any one product manufacturer provides, the background server of such as Tengxun's microblogging or Baidu's background server.
Need to describe in detail, the data storage of the short network address url in the above embodiments of the present application can be direct mapping, can be also indirect mappers, not limit storage mode.
As shown in Figure 3, in the above embodiments of the present application, before reading in step S10 the network address (the short network address url that such as Tengxun's microblogging is delivered) that Webpage shows client, can also comprise the steps:
Step S101, obtains the origin network address delivering typing typing frame from the message of Webpage.
Need example to illustrate herein, still deliver the network address got from Sina's microblogging for Tengxun's microblogging and be described in detail.This step achieves and inputs origin network address by the mode of typing, after typing, the background server of Tengxun's microblogging can obtain the origin network address (such as from the network address http://t.cn/1234567 of Sina's microblogging) of input in the message of Webpage delivers typing frame (such as address field).
Step S102, carries out domain name conversion process by origin network address, generates the network address being used for delivering on the client.
Need example to illustrate herein, this step can realize, and this origin network address is carried out domain name conversion process by the background server of Tengxun's microblogging, generates a short network address url.Namely after the mode by typing inputs the network address, network address http://t.cn/1234567 from Sina's microblogging is carried out shortening process by the short url system of the background server of Tengxun's microblogging, can generate a corresponding short network address (such as http://url.cn/zxcvbn).
Step S103, preserves data that the network address and origin network address formed to database.By the network address and origin network address write into Databasce.
What need example to illustrate herein is, the short network address url generated and origin network address preserve with the form that the data of coupling are right by the background server that this step achieves Tengxun's microblogging, store in a database by the short network address (such as http://url.cn/zxcvbn) with from the network address http://t.cn/1234567 of Sina's microblogging with the form of a data record.
In above process, finally need the network address to deliver on the client.What need example to illustrate herein is, this step achieves after the background server of Tengxun's microblogging generates a corresponding short network address (such as http://url.cn/zxcvbn), the short network address url generated can be returned to message and deliver process, deliver process by message and this this short network address url is successfully published in the client of Tengxun's microblogging.
As from the foregoing, in the above embodiments of the present application, the data of the preservation network address and origin network address formation are performed to after database in step S103, step S30 can read origin network address corresponding to the network address that Webpage shows from database, what need example to illustrate herein is, http://url.cn/zxcvbn by the short network address url(generated in step S102 such as Tengxun's server generates) and step S101 in the short network address http://t.cn/1234567 that provides of origin network address url(such as Sina's server of typing) message notice that forms is to the module of translation function, thus enter step S50 to trigger the above-mentioned origin network address url of parsing.
Preferably, in the above embodiments of the present application, step S50 resolves origin network address, and the step generating source address corresponding to origin network address can comprise following implementation step:
Step S501, reads the domain name addresses in origin network address.
Need example to illustrate herein, still deliver an origin network address got from Sina's microblogging for Tengxun's microblogging and be described in detail.This step reads the domain name in this origin network address, such as: in the short network address http://t.cn/1234567 of the background server generation of Sina's microblogging, domain name is t.cn.
Step S502, use domain name addresses accesses the name server corresponding to this domain name addresses.
Step S503, reads the source address that origin network address is corresponding from name server, and wherein, origin network address is the network address after source address carries out breviary process.
Need example to illustrate herein, above-mentioned steps S502 and step S503 achieves and gets source address according to the domain name in origin network address.Such as, the background server of Sina's microblogging can be accessed according to domain name t.cn, this source address corresponding to short network address http://t.cn/1234567 is read from the data of this server record, namely Sina's server be conversion process is carried out to this source address after obtain short network address http://t.cn/1234567, this source address can be a long network address (such as http://t.qq.com/mydear.php).
It can thus be appreciated that, the above embodiments of the present application are parsing origin network address url by translation function, after obtaining source address, step S70 can be entered, source address is used to replace origin network address, what need example to illustrate herein is, the origin network address of the data centering that the network address that the Webpage that step S103 can be got shows and origin network address are formed is revised as source address, thus saves the data pair of the network address and the source address formation that a Webpage shows in a database.
Still deliver an origin network address got from Sina's microblogging for Tengxun's microblogging to be described in detail.Above embodiments enable revise short url system data store, the short network address url(such as http://url.cn/zxcvbn on the background server of Tengxun's microblogging) corresponding to origin network address url(such as http://t.cn/1234567) replace with real source address url(such as http://t.qq.com/mydear.php).Therefore achieve, the http://t.cn/1234567 when the origin network address url(such as typing that client is externally shown) just change to actual source address http://t.qq.com/mydear.php, thus reach conversion object.
What needs further illustrated is, the transfer process that above-mentioned steps S501 to step S503 completes can be completed by bypath system, and be parallel carrying out with the Input Process of origin network address, therefore can not increase the consuming time of typing, what naturally also can not increase that message delivers is consuming time.
Preferably, based in the application's each embodiment above-mentioned, resolve origin network address (the short network address url that such as Sina's microblogging provides) in step S50, generate source address corresponding to origin network address (such as, long network address url) before, can also comprise the steps:
Step S401, detects origin network address and whether comprises target website information, wherein, when origin network address comprises target website information, enter step S50 to perform parsing origin network address; When origin network address does not comprise target website information, terminate process of analysis, and enter step S402.
Need example to illustrate herein, still deliver an origin network address got from Sina's microblogging for Tengxun's microblogging and be described in detail.The background server that this step can realize Tengxun's microblogging is getting the short network address url(such as http://url.cn/zxcvbn that Webpage shows) after, detect in the origin network address (such as short network address http://t.cn/1234567) corresponding with it and whether comprise default target website information (network address of such as domain name t.cn), if comprised, then represent that Tengxun's microblogging thinks that current origin network address is the network address that a meeting affects source address redirect, then enter step S50 and perform parsing origin network address (such as short network address http://t.cn/1234567), obtain real source address url(such as http://t.qq.com/mydear.php).
Preferably, system can adopt the mode of periodic monitor to detect origin network address whether to comprise target website information, ensure that the integrality of conversion process.
Step S402, preserves data that the network address that Webpage shows and origin network address formed to database.It should be noted that herein, the application is performing the process of step S90, can be origin network address corresponding to the network address that uses source address to replace the Webpage preserved in this database shows, or increase row, for recording source address in the tables of data that the data formed at the network address and origin network address are right.
What need example to illustrate herein is, if there is not default target website information (such as domain name t.cn) in this origin network address, then represent that current origin network address is exactly the source address that can show on the client, now, only need the data formed in the network address that Webpage shows and origin network address to preserving.Preferably, whether above-mentioned detection origin network address url is that the step comprising domain name t.cn can be carried out when typing origin network address url and reading origin network address url.
Herein, what also need detailed description is, the application step S10 reads the mode of the network address that Webpage shows client, except can by deliver in typing frame (such as address field, message hurdle) after input origin network address in the message of Webpage, the result of this origin network address of reading and converting obtains, and can obtain by triggering the network address that the Webpage such as (inquiry, click operation) shows.
Preferably, in above-described embodiment, performing the data of the network address and the source address formation that step S90 preservation Webpage shows to after database, following implementation step can also comprised:
Step S901, whether the network address that the Sampling network page shows is triggered.
The trigger action of this step S901 can detect that mouse is placed on the state above the network address, or the state that the network address is clicked.
Step S902, the network address that Webpage shows is triggered, reads the source address that the network address that Webpage shows is corresponding from database.
This step S902 achieves when detecting that mouse is placed on the network address, or in the situation such as the network address is clicked, can transfer source address corresponding to this network address from database.
Step S903, while Webpage shows the network address, shows the source address that the network address is corresponding simultaneously.
Showing the mode of the source address corresponding with the network address in this step S903, can be source address floated to be presented on the network address, or the position adjacent with the network address, if mouse leaves the network address, corresponding source address also no longer shows.
As from the foregoing, the scheme that the application provides can realize, after the network address that the Webpage that the carrier of the trigger network page links shows, (carrier can comprise word, picture and control), origin network address corresponding to the network address that Webpage shows can be read and at parsing origin network address from database, after generating source address corresponding to origin network address, the origin network address that the network address that the Webpage preserved in source address replacement data storehouse shows is corresponding can be used, wherein, origin network address is the network address after source address carries out breviary process.Need example to illustrate herein, this parsing processor can be the 3rd server.
Above-mentioned steps achieves system except carrying out conversion process to the network address that the Webpage of typing shows, and also can trigger conversion process when the network address url that Webpage shows is read.
What need example to illustrate herein is, the parsing transfer process failure triggered when supposing typing origin network address http://t.cn/1234567, namely the origin network address http://t.cn/1234567 of typing does not successfully replace with source address http://t.qq.com/mydear.php, therefore, after the network address http://url.cn/zxcvbn that the Webpage that the carrier of the trigger network page links shows, the origin network address url that the network address http://url.cn/zxcvbn that the background server reading client of Tengxun's microblogging is delivered is corresponding can return http://t.cn/1234567, instead of source address http://t.qq.com/mydear.php, now can reading result notice conversion functional module, trigger and again resolve real source address url.Can ensure that, after first time resolves convert failed, the parsing can having an opportunity to carry out true source address is again changed by such scheme.
Generally speaking, in the embodiment of the present application, for delivering of the network address related in above-mentioned conversion plan, system only needs to detect in the internet message needing to deliver whether include origin network address url, and do not need to distinguish this origin network address the short network address url etc. of to be long network address url or domain name be t.cn, to the origin network address url detected by the typing of short url system, be converted to the short network address url of predetermined domain name (such as url.cn), finally the short network address obtained is delivered on the client, it can thus be appreciated that, above-mentioned deliver before and do not need to carry out the acquisition process of source address in the process delivered, the logic of delivering of the network address is simplified greatly.After the network address is successfully delivered, start in the network information that the current network page shows the network address carry out inspection conversion process, said process is delivered without any impact for internet message, and all transfer processes transfer to short url system to complete.
It should be noted that, for aforesaid each embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and involved action and module might not be that the present invention is necessary.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that can add required general hardware platform by software according to the method for above-described embodiment and realize, hardware can certainly be passed through, but in a lot of situation, the former is better embodiment.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), comprising some instructions in order to make a station terminal equipment (can be mobile phone, computing machine, server, or the network equipment etc.) perform the method for each embodiment of the present invention.
Embodiment 3:
Fig. 4 is the treating apparatus structural representation of the web page address according to the embodiment of the present invention three.
According to the embodiment of the present invention, additionally provide a kind of for corresponding to the device implementing said method embodiment two, as shown in Figure 4, this device can be applied on server terminal, is described in detail below from the implementation process of angle to the application of server terminal operation said apparatus.
As shown in Figure 4, the treating apparatus of this web page address can comprise: read module 101, acquisition module 103, parsing module 105, replacement module 107, preserves module 109.
Wherein, read module 101, for reading the network address that Webpage shows client.The network address that Webpage shows can comprise: the message of Webpage deliver input in typing frame the network address, client the message network address of delivering in typing frame successfully deliver after, what Webpage showed delivers the successful network address.It should be noted that, the network address that Webpage shows can be included in a part of content in the internet message that client-side network webpage shows.
Acquisition module 103, for obtaining origin network address corresponding to the network address that Webpage shows, wherein, the network address that Webpage shows is the network address of origin network address being carried out domain name conversion process and generating.
Parsing module 105, for resolving origin network address, generates the source address that origin network address is corresponding.
Replacement module 107, replaces origin network address for using source address.
Preserve module 109, for preserving the data of the network address and the source address formation that Webpage shows to database, wherein, when the network address that the trigger network page shows, calling and showing source address corresponding with the network address in database.
In the above embodiments of the present application three, by the technical scheme of real source address corresponding to the network address providing a kind of parsing to obtain the current network page, make when user's trigger network page shows the network address, directly can demonstrate source address, but not the origin network address of centre, thus make user by trigger network address (such as mouse is placed on the network address by user), the real corresponding source address in this network address can be seen.Achieve when mouse to be placed on the network address that this client browses by user, client can extract the network address that this Webpage of having preserved in database shows and a pair matched data of resolving the source address that obtains and forming, thus the actual source address that the network address realizing this Webpage of position display of placing at this network address mouse shows is corresponding, and then solve in correlation technique the technical matters that cannot show the source address of mating with Webpage in the source address correlation technique that cannot show on Webpage and mate with Webpage on Webpage.Wherein, this network address can be carried in the internet message that client successfully issues.
Easily it is noted that, owing to can detect the content of the network address of client, if detect obtain origin network address corresponding to present network address be through third-party server carry out domain name conversion process or reduction process and generate network address, then this origin network address is not real source address, this origin network address can be carried out parsing and get source address by system, and the source address that the network address and parsing obtain is formed data to being saved to back-end server, thus in network user's trigger network address, (trigger action can comprise: mouse is placed on the network address, click, the operations such as inquiry or transmission network address) after, source address can be demonstrated, instead of origin network address.And, in this client trigger network address process, because the data of the network address and source address are kept at back-end server, therefore, resolve obtain source address without the need to jumping to server corresponding to origin network address (such as Sina's micro blog server), but directly jump to back-end server and obtain source address, thus decrease number of hops and redirect mortality, and statistically add the backflow of background server in backflow.
In a kind of embodiment that the application provides, the network address that Webpage shows is that client is when to deliver in process but also not deliver successful network address, the original address of this network address not only can be resolved by background server, obtain the source address being presented at client, source address (the such as http://t.qq.com/mydear.php) basis that also can obtain in parsing is changed, convert a short address url to, this short address as the display of the new network address on the client, namely the internet message carrying above-mentioned short address url can be delivered on the client.
Analyze known, the online replacement in the process that above-mentioned solution is mainly successfully delivered at internet message, origin network address carried out, resolving is delivered in process in message and is carried out, the process of delivering of internet message could continue process after must waiting for and being parsed, the network address of display and source address all can change.
In the another kind of embodiment that the application provides, by after delivery network address successful on client terminal website, this network address is detected and dissection process accordingly, obtain the origin network address that this network address is carried out before domain name conversion, and by resolving this origin network address, obtain the source address of mating with this network address, and using the network address that this Webpage shows with resolve the source address that obtains as a pair matched data to preserving, achieve when mouse to be placed on the network address that this client browses by user, client can extract the network address that this Webpage of having preserved in database shows and a pair matched data of resolving the source address that obtains and forming, thus the actual source address that the network address realizing showing on this Webpage of position display of this network address mouse placement is corresponding.Wherein, this network address can be carried in the internet message that client successfully issues.
It should be noted that herein, such scheme all occurs in after the network address is successfully distributed on client due to the process obtaining this source address, therefore, relatively prior art carried out the process obtaining source address before delivering the network address, by the scheme that the embodiment of the present invention provides, process is just continued after the process that client delivers the network address does not need by the time to be parsed, what greatly reduce internet message delivers the time, and, because above-mentioned resolving carries out independent execution after delivering the network address, thus when network environment is poor, also the success ratio of conversion can not be affected.Thus solve the technical matters that cannot show the source address of mating with Webpage in correlation technique on Webpage further.So not only achieve can ensure the network address in internet message convert power to, and reduce that internet message delivers consuming time, do not affect Consumer's Experience.
Each device that the above embodiments of the present application provide can run on the server.
Preferably, in the above embodiments of the present application, the network address that Webpage shows client can be the short network address url that first server provides, origin network address can be the short network address url that second server provides, source address can be the long network address url that the 3rd server provides, wherein, the short network address url that second server provides is obtained after long network address url being carried out breviary process.
Need example to illustrate herein, deliver the network address from microblogging place of Sina for Tengxun's microblogging and be described in detail.The network address in above-described embodiment can by the background server of Tengxun's microblogging, and namely first server carries out to origin network address (such as from the network address http://t.cn/1234567 of Sina's microblogging) the short network address url(such as http://url.cn/zxcvbn that domain name is converted to); Herein, origin network address can be the short network address url that the background server of other products provider provides, the short network address url(such as http://t.cn/1234567 that the second server that such as Sina's microblogging provides obtains after carrying out breviary process to source address); Above-mentioned source address can be a long network address (such as http://t.qq.com/mydear.php), and this long network address can be that any one product manufacturer provides, the background server of such as Tengxun's microblogging or Baidu's background server.
Need to describe in detail, the data storage of the short network address url in the above embodiments of the present application can be direct mapping, can be also indirect mappers, not limit storage mode.
Preferably, in the above embodiments of the present application, device can also comprise: sub-acquisition module, for obtaining the origin network address delivering typing typing frame from the message of Webpage; Modular converter, for origin network address is carried out domain name conversion process, generates the network address being used for delivering on the client; Son preserves module, for preserving data that the network address and origin network address formed to database; Release module, for delivering the network address on the client.
As from the foregoing, in the above embodiments of the present application, the data of the network address and origin network address formation are preserved to after database at storer, server can read origin network address corresponding to the network address that Webpage shows from database, what need example to illustrate herein is, http://url.cn/zxcvbn by the short network address url(generated in server 2 such as Tengxun's server generates) and the short network address http://t.cn/1234567 that provides of origin network address url(such as Sina's server of typing) message notice that forms is to the module of translation function, thus trigger the above-mentioned origin network address url of parsing.
What need example to illustrate herein is, above-mentioned sub-acquisition module, modular converter, son are preserved module and release module and are corresponded to step S101 in embodiment two to step S104, the example that four modules and corresponding step realize is identical with application scenarios, but is not limited to the content disclosed in above-described embodiment two.It should be noted that, above-mentioned module may operate in 2 servers that embodiment one provides as the part of device, can pass through software simulating, also can pass through hardware implementing.
Need to further illustrate, in the above embodiments of the present application, parsing module can be realized by the 3rd server, can comprise: domain name read module, for reading the domain name addresses in origin network address; Access modules, accesses name server corresponding to this domain name addresses for using domain name addresses; Extraction module, for reading source address corresponding to origin network address from name server, wherein, origin network address is the network address after source address carries out breviary process.
Need example to illustrate herein, still deliver an origin network address got from Sina's microblogging for Tengxun's microblogging and be described in detail.This third-party server achieves and gets source address according to the domain name (such as: in the short network address http://t.cn/1234567 of the background server generation of Sina's microblogging, domain name is t.cn) in origin network address.Such as, the background server of Sina's microblogging can be accessed according to domain name t.cn, this source address corresponding to short network address http://t.cn/1234567 is read from the data of this server record, namely Sina's server be conversion process is carried out to this source address after obtain short network address http://t.cn/1234567, this source address can be a long network address (such as http://t.qq.com/mydear.php).
It can thus be appreciated that, the server 2 of the above embodiments of the present application parses origin network address url in the translation function by third-party server, after obtaining source address, source address can be used to replace origin network address, what need example to illustrate herein is, the origin network address of the data centering that the network address that the Webpage got shows and origin network address can be formed is revised as source address, thus saves the data pair of the network address and the source address formation that a Webpage shows in a database.
Because the bypath system of above-mentioned transfer process by the 3rd server completes, and be parallel carrying out with the Input Process of origin network address, therefore can not increase the consuming time of typing, what naturally also can not increase that message delivers is consuming time.
Still deliver an origin network address got from Sina's microblogging for Tengxun's microblogging to be described in detail.Above embodiments enable revise short url system data store, the short network address url(such as http://url.cn/zxcvbn on the background server 2 of Tengxun's microblogging) corresponding to origin network address url(such as http://t.cn/1234567) replace with real source address url(such as http://t.qq.com/mydear.php).Therefore achieve, the http://t.cn/1234567 when the origin network address url(such as typing that client 1 is externally shown) just change to actual source address http://t.qq.com/mydear.php, thus reach conversion object.
It can thus be appreciated that, above-mentioned domain name read module, access modules and extraction module correspond to step S501 in embodiment two to step S503, the example that three modules and corresponding step realize is identical with application scenarios, but is not limited to the content disclosed in above-described embodiment two.It should be noted that, above-mentioned module may operate in the 3rd server that embodiment one provides as the part of device, can pass through software simulating, also can pass through hardware implementing.
Preferably, in the above embodiments of the present application, device can also comprise: detection module, whether comprises target website information for detecting origin network address; Processing module, during for comprising target website information when origin network address, enters the step of resolving origin network address; When origin network address does not comprise target website information, terminate process of analysis, and preserve data that the network address that Webpage shows and origin network address formed to database.
Need example to illustrate herein, still deliver an origin network address got from Sina's microblogging for Tengxun's microblogging and be described in detail.
Above-mentioned first processor 21 is the part in the background server of Tengxun's microblogging, getting the short network address url(such as http://url.cn/zxcvbn that Webpage shows) after, first processor 21 detects in the origin network address (such as short network address http://t.cn/1234567) corresponding with it whether comprise default target website information (such as domain name t.cn), if comprised, then represent that Tengxun's microblogging thinks that current origin network address is the network address that a meeting affects source address redirect, third-party server then can be used to perform and to resolve origin network address (such as short network address http://t.cn/1234567), obtain real source address url(such as http://t.qq.com/mydear.php).
What need example to illustrate herein is, if there is not default target website information (such as domain name t.cn) in this origin network address, then represent that current origin network address is exactly the source address that can show on the client, now, only need the data formed in the network address that Webpage shows and origin network address to preserving.Preferably, whether above-mentioned detection origin network address url is that the step comprising domain name t.cn can be carried out when typing origin network address url and reading origin network address url.
Herein, what also need detailed description is, the application reads the mode of the network address that Webpage shows client 1, except can by for deliver in typing frame (such as address field, message hurdle) after input origin network address in the message of Webpage, read the result that server 2 transforms this origin network address to obtain, and the network address that the Webpage such as (inquiry, click operation) can show by triggering in client 1 obtains.
As from the foregoing, above-mentioned detection module and processing module correspond to step S401 in embodiment two to step S402, and the example that two modules and corresponding step realize is identical with application scenarios, but is not limited to the content disclosed in above-described embodiment two.It should be noted that, above-mentioned module may operate in the server 2 that embodiment one provides as the part of device, can pass through software simulating, also can pass through hardware implementing.
Preferably, in the above embodiments of the present application, device can also comprise: sub-detection module, and whether the network address shown on the Sampling network page is triggered; Sub-read module, the network address for showing on Webpage is triggered, reads the source address that the network address that Webpage shows is corresponding from database; Display module, while show the network address on Webpage, shows the source address that the network address is corresponding simultaneously.
Now, above-mentioned sub-detection module, sub-read module, display module correspond to step S105, step S901 in embodiment two to step S903,, the example that three modules and corresponding step realize is identical with application scenarios, but is not limited to the content disclosed in above-described embodiment two.It should be noted that, above-mentioned module may operate in the server that embodiment one provides as the part of device, can pass through software simulating, also can pass through hardware implementing.
As from the foregoing, the scheme that the application provides can realize, after the network address that the Webpage that the carrier of the trigger network page links shows, (carrier can comprise word, picture and control), origin network address corresponding to the network address that Webpage shows can be read and at parsing origin network address from database, after generating source address corresponding to origin network address, the origin network address that the network address that the Webpage preserved in source address replacement data storehouse shows is corresponding can be used, wherein, origin network address is the network address after source address carries out breviary process.Need example to illustrate herein, this parsing processor can be the 3rd server.
Such scheme achieves system except carrying out conversion process to the network address that the Webpage of typing shows, and also can trigger conversion process when the network address url that Webpage shows is read.
What need example to illustrate herein is, the parsing transfer process failure triggered when supposing typing origin network address http://t.cn/1234567, namely the origin network address http://t.cn/1234567 of typing does not successfully replace with source address http://t.qq.com/mydear.php, therefore, after the network address http://url.cn/zxcvbn that the Webpage that the carrier of the trigger network page links shows, the origin network address url that the network address http://url.cn/zxcvbn that the background server reading client of Tengxun's microblogging is delivered is corresponding can return http://t.cn/1234567, instead of source address http://t.qq.com/mydear.php, now can reading result notice conversion functional module, trigger and again resolve real source address url.Can ensure that, after first time resolves convert failed, the parsing can having an opportunity to carry out true source address is again changed by such scheme.
Generally speaking, in the embodiment of the present application, for delivering of the network address related in above-mentioned conversion plan, system only needs to detect in the internet message needing to deliver whether include origin network address url, and do not need to distinguish this origin network address the short network address url etc. of to be long network address url or domain name be t.cn, to the origin network address url detected by the typing of short url system, be converted to the short network address url of predetermined domain name (such as url.cn), finally the short network address obtained is delivered on the client, it can thus be appreciated that, above-mentioned deliver before and do not need to carry out the acquisition process of source address in the process delivered, the logic of delivering of the network address is simplified greatly.After the network address is successfully delivered, start in the network information that the current network page shows the network address carry out inspection conversion process, said process is delivered without any impact for internet message, and all transfer processes transfer to short url system to complete.
From above description, can find out, present invention achieves following technique effect: such scheme all occurs in after the network address is successfully distributed on client due to the process obtaining this source address, therefore, relatively prior art carried out the process obtaining source address before delivering the network address, by the scheme that the embodiment of the present invention provides, process is just continued after the process that client delivers the network address does not need by the time to be parsed, what greatly reduce internet message delivers the time, and, because above-mentioned resolving carries out independent execution after delivering the network address, thus when network environment is poor, also the success ratio of conversion can not be affected.And then solve the technical matters that cannot show the source address of mating with Webpage in correlation technique on Webpage.So not only achieve can ensure the network address in internet message convert power to, and reduce that internet message delivers consuming time, do not affect Consumer's Experience.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
In the above embodiment of the present invention, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
In several embodiments that the application provides, should be understood that, disclosed client, the mode by other realizes.Wherein, device embodiment described above is only schematic, the division of such as unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of unit or module or communication connection can be electrical or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprises all or part of step of some instructions in order to make a computer equipment (can be personal computer, server or the network equipment etc.) perform method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, ROM (read-only memory) (ROM, Read-OnlyMemory), random access memory (RAM, Random Access Memory), portable hard drive, magnetic disc or CD etc. various can be program code stored medium.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (12)

1. a disposal route for web page address, is characterized in that, comprising:
Read the network address that the Webpage of client shows;
Obtain the origin network address that the network address that described Webpage shows is corresponding, wherein, the network address that described Webpage shows is the network address of described origin network address being carried out domain name conversion process and generating;
Resolve described origin network address, generate the source address that described origin network address is corresponding;
Described source address is used to replace described origin network address;
Preserve data that the network address that described Webpage shows and described source address formed to database, wherein, when triggering the network address that described Webpage shows, calling and showing described source address corresponding with the described network address in described database.
2. method according to claim 1, is characterized in that, at the described origin network address of parsing, before generating source address corresponding to described origin network address, described method also comprises:
Detect described origin network address and whether comprise target website information; Wherein,
When described origin network address comprises described target website information, enter the step of resolving described origin network address;
When described origin network address does not comprise described target website information, terminate described process of analysis, and preserve data that the network address that described Webpage shows and described origin network address formed to described database.
3. method according to claim 1 and 2, is characterized in that, before reading the network address that Webpage shows client, described method also comprises:
Obtain the described origin network address delivering typing typing frame from the message of described Webpage;
Described origin network address is carried out domain name conversion process, generates and deliver on the Webpage in described client and the described network address shown;
Preserve data that the described network address and described origin network address formed to described database;
The described network address is published in described client.
4. method according to claim 1 and 2, is characterized in that, preserving the data of the network address and the described source address formation that described Webpage shows to after database, described method also comprises:
Detect the described network address that described Webpage shows whether to be triggered;
Described Webpage the described network address shown is triggered, read the described source address that the network address that described Webpage shows is corresponding from described database;
While described Webpage shows the described network address, show the described source address that the described network address is corresponding simultaneously.
5. method according to claim 1, is characterized in that, resolves described origin network address, and the step generating source address corresponding to described origin network address comprises:
Read the domain name addresses in described origin network address;
The name server corresponding to this domain name addresses is accessed in use domain name address;
From domain name server, read source address corresponding to described origin network address, wherein, described origin network address is the network address after described source address carries out breviary process.
6. method according to claim 1, it is characterized in that, the network address that Webpage shows described client is the short network address url that first server provides, described origin network address is the short network address url that second server provides, described source address is the long network address url that the 3rd server provides, wherein, the short network address url that described second server provides is obtained after described long network address url being carried out breviary process.
7. a treating apparatus for web page address, is characterized in that, comprising:
Read module, for reading the network address that the Webpage of client shows;
Acquisition module, for obtaining origin network address corresponding to the network address that described Webpage shows, wherein, the network address that described Webpage shows is the network address of described origin network address being carried out domain name conversion process and generating;
Parsing module, for resolving described origin network address, generates the source address that described origin network address is corresponding;
Replacement module, replaces described origin network address for using described source address;
Preserve module, for preserving data that the network address that described Webpage shows and described source address formed to database, wherein, when triggering the network address that described Webpage shows, calling and showing described source address corresponding with the described network address in described database.
8. device according to claim 7, is characterized in that, described device also comprises:
Whether detection module, comprise target website information for detecting described origin network address;
Processing module, for when described origin network address comprises described target website information, enters the step of resolving described origin network address; When described origin network address does not comprise described target website information, terminate described process of analysis, and preserve data that the network address that described Webpage shows and described origin network address formed to described database.
9. the device according to claim 7 or 8, is characterized in that, described device also comprises:
Sub-acquisition module, for obtaining the described origin network address delivering typing typing frame from the message of described Webpage;
Modular converter, for described origin network address is carried out domain name conversion process, generates and delivers on the Webpage in described client and the described network address shown;
Son preserves module, for preserving data that the described network address and described origin network address formed to described database;
Release module, for being published in described client by the described network address.
10. device according to claim 9, is characterized in that, described device also comprises:
Whether sub-detection module, be triggered for detecting the described network address that described Webpage shows;
Sub-read module, the described network address for showing on described Webpage is triggered, reads the described source address that the network address that described Webpage shows is corresponding from described database;
Display module, while show the described network address on described Webpage, shows the described source address that the described network address is corresponding simultaneously.
The disposal system of 11. 1 kinds of web page addresses, is characterized in that, comprising:
Client, for display networks on Webpage, the described network information comprises: the network address;
Server, communication relation is set up with described client, for reading the network address that described Webpage shows client, after the origin network address that the network address that the described Webpage of acquisition shows is corresponding, resolve described origin network address, generate the source address that described origin network address is corresponding, and use described source address to replace described origin network address, preserve data that the network address that described Webpage shows and described source address formed to database, wherein, when triggering the network address that described Webpage shows, call and show described source address corresponding with the described network address in described database,
Wherein, the network address described Webpage shown is the network address of described origin network address being carried out domain name conversion process and generating.
12. systems according to claim 11, is characterized in that, described system also comprises:
Third-party server, for reading the domain name addresses in described origin network address, after the name server corresponding to this domain name addresses is accessed in use domain name address, source address corresponding to described origin network address is read from domain name server, wherein, described origin network address is the network address after described source address carries out breviary process.
CN201410088729.9A 2014-03-11 2014-03-11 The processing method of web page address, apparatus and system Active CN104915347B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410088729.9A CN104915347B (en) 2014-03-11 2014-03-11 The processing method of web page address, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410088729.9A CN104915347B (en) 2014-03-11 2014-03-11 The processing method of web page address, apparatus and system

Publications (2)

Publication Number Publication Date
CN104915347A true CN104915347A (en) 2015-09-16
CN104915347B CN104915347B (en) 2019-04-12

Family

ID=54084418

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410088729.9A Active CN104915347B (en) 2014-03-11 2014-03-11 The processing method of web page address, apparatus and system

Country Status (1)

Country Link
CN (1) CN104915347B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106815245A (en) * 2015-11-30 2017-06-09 北京国双科技有限公司 The analysis method and device of search engine source-information
WO2017114205A1 (en) * 2015-12-30 2017-07-06 阿里巴巴集团控股有限公司 Short link processing method, device and server
CN110572291A (en) * 2019-09-16 2019-12-13 南京南瑞信息通信科技有限公司 System and method for realizing automatic framework identification function for distributed system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1423885A (en) * 1999-11-26 2003-06-11 尼泰卡公司 Network address server
US20040073706A1 (en) * 2002-10-07 2004-04-15 Murata Kikai Kabushiki Kaisha Electronic mail system and program for the electronic mail system
CN102333082A (en) * 2010-08-23 2012-01-25 微软公司 The URL of safety shortens
CN102402558A (en) * 2010-09-16 2012-04-04 腾讯科技(深圳)有限公司 Method and system for providing message containing website
CN103491201A (en) * 2013-08-27 2014-01-01 北京蓝汛通信技术有限责任公司 Domain name resolution method and domain name server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1423885A (en) * 1999-11-26 2003-06-11 尼泰卡公司 Network address server
US20040073706A1 (en) * 2002-10-07 2004-04-15 Murata Kikai Kabushiki Kaisha Electronic mail system and program for the electronic mail system
CN102333082A (en) * 2010-08-23 2012-01-25 微软公司 The URL of safety shortens
CN102402558A (en) * 2010-09-16 2012-04-04 腾讯科技(深圳)有限公司 Method and system for providing message containing website
CN103491201A (en) * 2013-08-27 2014-01-01 北京蓝汛通信技术有限责任公司 Domain name resolution method and domain name server

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106815245A (en) * 2015-11-30 2017-06-09 北京国双科技有限公司 The analysis method and device of search engine source-information
CN106815245B (en) * 2015-11-30 2020-05-22 北京国双科技有限公司 Method and device for analyzing source information of search engine
WO2017114205A1 (en) * 2015-12-30 2017-07-06 阿里巴巴集团控股有限公司 Short link processing method, device and server
US10789322B2 (en) 2015-12-30 2020-09-29 Alibaba Group Holding Limited Short link processing to improve service efficiency
US10789321B2 (en) 2015-12-30 2020-09-29 Alibaba Group Holding Limited Short link processing to improve service efficiency
CN110572291A (en) * 2019-09-16 2019-12-13 南京南瑞信息通信科技有限公司 System and method for realizing automatic framework identification function for distributed system

Also Published As

Publication number Publication date
CN104915347B (en) 2019-04-12

Similar Documents

Publication Publication Date Title
CN110750741B (en) Webpage link skipping processing method, computer device and storage medium
US9871758B2 (en) User recommendations in a social media network
US20210058475A1 (en) Systems and methods for tracking sharing of web content
KR20130066603A (en) Initiating font subsets
CN104243273A (en) Method and device for displaying information on instant messaging client and information display system
CN102254005A (en) Method for transforming and displaying document on webpage
CN102314222A (en) Self-adaptive input method, equipment and system
WO2015021873A1 (en) Method, platform server, and system of data pushing
CN102904765B (en) The method and apparatus that data report
EP2862338A1 (en) Method, server, and client for pushing and displaying splash screen
CN103617267A (en) Socialized extension search method, device and system
CN104142975A (en) Microblog information promotion method, device and system
CN106161189A (en) The offline communications method and device of instant messaging
US10691764B2 (en) Search engine optimization techniques
US9311285B2 (en) Curating chat transcripts into webpages
CN104915347A (en) Processing method, apparatus and system for web address
CN104320458A (en) Informatization achieving system based on Domino servers and Nginx server
CN103778232A (en) Method and device for processing personalized information
CN103905661A (en) Message forwarding method and cloud server
CN103561113A (en) Web Service interface generating method and device
CN104239452A (en) Method and device for resource acquisition
CN113792232B (en) Page feature calculation method, page feature calculation device, electronic equipment, page feature calculation medium and page feature calculation program product
CN105338104A (en) Business request responding method, analysis method and analysis system
CN103678333A (en) Method and equipment used for improving extraction accuracy of uniform resource locator
CN103561066A (en) Method and system for constructing network advertisements

Legal Events

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