CN105721619B - Web site url exchanges method and device - Google Patents

Web site url exchanges method and device Download PDF

Info

Publication number
CN105721619B
CN105721619B CN201610293427.4A CN201610293427A CN105721619B CN 105721619 B CN105721619 B CN 105721619B CN 201610293427 A CN201610293427 A CN 201610293427A CN 105721619 B CN105721619 B CN 105721619B
Authority
CN
China
Prior art keywords
website
link
exchange
corresponding relationship
source code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610293427.4A
Other languages
Chinese (zh)
Other versions
CN105721619A (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.)
Beijing Qizhi Business Consulting Co ltd
Beijing Qihoo Technology Co Ltd
360 Digital Security Technology Group Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201610293427.4A priority Critical patent/CN105721619B/en
Priority claimed from CN201410290910.8A external-priority patent/CN104079642B/en
Publication of CN105721619A publication Critical patent/CN105721619A/en
Application granted granted Critical
Publication of CN105721619B publication Critical patent/CN105721619B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9562Bookmark management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/954Navigation, e.g. using categorised browsing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to a kind of web site urls to exchange method and device, is able to solve in the prior art the problem of webmaster by both party voluntarily links up link exchange details and manually performs communication repeatedly caused when link exchange and each other mistrustful problem.This method comprises: obtaining and showing the first site information for being desired with link exchange, wherein include link exchanging control codes in the source code of the first website;It obtains and wishes to carry out linking the second site information exchanged with the first website and link exchange solicited message, and link exchange solicited message is sent to the first website, wherein include link exchanging control codes in the source code of the second website;After the first website is agreed to carry out link exchange, is established the link between the first website and the second website and exchange corresponding relationship;Corresponding relationship is exchanged according to link, link exchanging control codes is executed, the link of the second website is shown in the first website, the link of the first website is shown in the second website.

Description

Web site url exchanges method and device
It is on June 25th, 2014 that the application, which is the applying date, and application number is 201410290910.8, and title is " web site url The divisional application of the application for a patent for invention of exchange method and device ".
Technical field
The present invention relates to network communication technology fields, and in particular to a kind of web site url exchange method and device.
Background technique
Friendly link, also referred to as website exchange link, reciprocal link, exchange link, alliance's link etc., are to have in the recent period A kind of simple cooperation forms risen between the website of certain resource complementation advantage.In this cooperation forms, partner site is pre- First reach cooperation intention, for example, placing on own website by picture shape respectively after cooperation intention is reached in the website A and the website B The web site name for the other side website that formula or written form indicate, and it is correspondingly arranged the hyperlink (i.e. friendly link) of other side website; After the network user terminals for accessing own website click the hyperlink, browser can automatically switch to the page of other side website, To bring more amount of access for other side website.The mesh promoted mutually can be reached by this approach to cooperation between website 's.
Currently, being intended to reach cooperation intention in the following way between the website for realizing link exchange and carry out link friendship It changes: firstly, the administrator of the website A, by all kinds of one link exchange information of chatting platform publication such as personal letter, the administrator of the website B sees Pass through the administrator of the chatting platforms such as the personal letter connection website A after to link exchange information.Then, both sides discuss link exchange Details, such as link position, link form (picture, text) etc..Finally, one of administrator is first in the website of oneself The web site url of upper addition other side, another administrator see the web site url of oneself appear on other side website and then The web site url of other side is added on oneself website, so far link exchange is completed.
In the above method, administrator by both party is needed voluntarily to link up the details of link exchange, and administrator is complete by both party At the addition work of web site url.This mode manually linked up results in following a series of problems: firstly, both sides administrator In order to exchange a link, just generally requiring to link up repeatedly with other side repeatedly can reach the intention of exchange, administrator is thus wasted A large amount of time and efforts.Secondly, not knowing each other mutually between both sides administrator, whether there is also can trust each other: After reaching exchange intention, there is the wind cheated by another party in the side that other side's web site url is first added on oneself website Danger will lead to the side's benefit damage for first adding link if another party does not add the link of oneself website according to agreement. Finally, even if both sides administrator is such as from about added to the link of other side, still, if after a period of time, wherein a side is stealthily The link of another party is deleted, the benefit damage of another party is also resulted in and can not find in time.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind State the web site url exchange method and device of problem.
According to one aspect of the present invention, a kind of web site url exchange method is provided, comprising the following steps: obtain and show Show the first site information for being desired with link exchange, wherein include link exchanging control codes in the source code of the first website;It obtains It takes hope to carry out linking the second site information exchanged with the first website and link exchange solicited message, and link exchange is requested Information is sent to the first website, wherein includes link exchanging control codes in the source code of the second website;The first website agree into After row link exchange, is established the link between the first website and the second website and exchange corresponding relationship;Corresponding close is exchanged according to link System executes link exchanging control codes, the link of the second website is shown in the first website, the first net is shown in the second website The link stood.
Optionally, corresponding relationship is exchanged according to link, executes link exchanging control codes, shows second in the first website The link of website, the step of link of the first website is shown in the second website, further comprise: when the first website is accessed, Corresponding relationship is exchanged according to link, determines and carries out linking the second website exchanged with it, generate the link information of the second website simultaneously On output to the first website;When the second website is accessed, corresponding relationship is exchanged according to link, determination link exchanging with it The first website, the link information for generating the first website simultaneously exports on the second website.
Optionally, further comprise step: linking between the first website of reception and the second website exchanges corresponding relationship and removes Pin request, and corresponding relationship is exchanged according to revocation request more new link.
Optionally, it at least one required following information when linking in exchange solicited message comprising link exchange: is linked at Display mark on other side website, display mark includes: words identification, picture identification or user-defined identification;It is linked at other side's net Show Styles on standing, Show Styles include: display color and/or display size;Link swap time.
Optionally, link exchanging control codes are link exchange scripted code, and link exchange scripted code is exchanged by link Control server is according to link exchange corresponding relationship and site information dynamic generation.
Another aspect according to the present invention provides a kind of web site url switch, comprising: module is obtained, suitable for obtaining It takes and shows the first site information for being desired with link exchange, wherein include link exchange control in the source code of the first website Code;Sending module wishes link the second site information exchanged and link exchange requesting with the first website suitable for obtaining Information, and link exchange solicited message is sent to the first website, wherein include link exchange control in the source code of the second website Code;Module is established, suitable for establishing chain between the first website and the second website after the first website is agreed to carry out link exchange Connect exchange corresponding relationship;Switching Module is suitable for exchanging corresponding relationship according to link, link exchanging control codes is executed, first The link that the second website is shown in website shows the link of the first website in the second website.
Optionally, Switching Module further comprises: the first Switching Module, is suitable for when the first website is accessed, according to chain Exchange corresponding relationship is connect, determines and carries out linking the second website exchanged with it, the link information of the second website is generated and exports extremely On first website;Second Switching Module, is suitable for when the second website is accessed, exchanges corresponding relationship according to link, determine and its The first website of link exchange is carried out, the link information of the first website is generated and is exported to the second website.
Optionally, it establishes module to be further adapted for: receiving and linking the corresponding pass of exchange between the first website and the second website System's revocation request, and corresponding relationship is exchanged according to revocation request more new link.
Optionally, it at least one required following information when linking in exchange solicited message comprising link exchange: is linked at Display mark on other side website, display mark includes: words identification, picture identification or user-defined identification;It is linked at other side's net Show Styles on standing, Show Styles include: display color and/or display size;Link swap time.
Optionally, link exchanging control codes are link exchange scripted code, and link exchange scripted code is exchanged by link Control server is according to link exchange corresponding relationship and site information dynamic generation.
In web site url provided by the invention exchange method and device, firstly, being desired with the first of link exchange Addition links exchanging control codes respectively in the website source code of website and the second website;Then, when the first website is agreed to and second When website carries out link exchange, is established the link between the first website and the second website and exchange corresponding relationship;Finally, according to the chain Exchange corresponding relationship is connect, above-mentioned link exchanging control codes are executed, so that the link of the second website is shown in the first website, The link of the first website is shown in the second website, and link exchange is realized with this.It can be seen that in website chain provided by the invention It connects in exchange method and device, to wish that the website for exchanging link provides a link switching plane, it is desirable to pass through the platform Link exchanging control codes are added in its website source code in advance in the website for carrying out link exchange.Accordingly, it is desirable to pass through the platform The website for carrying out link exchange need to only issue link exchange request to the partner site in its intention, so that it may receive collaboration network After the confirmation message stood, link exchange is automatically performed by above-mentioned link exchanging control codes.It can be seen that the exchange method and dress Set and at least have the following beneficial effects: firstly, eliminate the link that both sides administrator links up repeatedly, saved a large amount of time and Energy;Secondly as link exchange process is automatically performed by above-mentioned link exchanging control codes, therefore it can be in both sides' net The link of other side is stood above while adding, so that it is guaranteed that fairness, has prevented trust problem (example caused when artificial addition link A such as side fails the link for such as from about adding other side, or after the link of addition other side and the problems such as stealthily removing).
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the flow chart of web site url exchange method provided in an embodiment of the present invention;
Fig. 2 shows the flow charts for the web site url exchange method that the specific embodiment of the invention provides;
Fig. 3 shows a kind of interface schematic diagram of the switching plane;
Fig. 4 shows the interface schematic diagram clicked in Fig. 3 and popped up after " I will issue friendly chain " button;
Fig. 5 shows the interface schematic diagram comprising " I will exchange " button;
Fig. 6 shows the interface schematic diagram clicked in Fig. 5 and popped up after " I will exchange " button;And
Fig. 7 shows the structural schematic diagram of web site url switch provided by the invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
The embodiment of the invention provides a kind of web site urls to exchange method and device, is able to solve in the prior art by both party When webmaster voluntarily links up link exchange details and manually performs link exchange the problem of caused communication repeatedly and Mistrustful problem each other.
Fig. 1 shows the flow chart of web site url exchange method provided in an embodiment of the present invention.As shown in Figure 1, this method Include the following steps:
Step S110: obtaining and shows the first site information for being desired with link exchange, wherein the source of first website Include link exchanging control codes in code.
Above-mentioned link exchanging control codes for realizing link exchange in the next steps.Optionally, link exchange control Code processed is link exchange scripted code.
Step S120: it obtains and wishes to carry out linking the second site information exchanged with the first website and link exchange request letter Breath, and link exchange solicited message is sent to the first website, wherein include link exchange control in the source code of second website Code.
Optionally, at least one required following information when in above-mentioned link exchange solicited message comprising link exchange: chain The display mark on other side website is connect, display mark includes: words identification, picture identification or user-defined identification;It is linked at Show Styles on other side website, the Show Styles include: display color and/or display size;Link swap time.
Step S130: after the first website is agreed to carry out link exchange, chain is established between the first website and the second website Connect exchange corresponding relationship.
Include the second website, and second by the partner site that link exchange corresponding relationship can be seen that the first website The partner site of website includes the first website.Partner site mentioned here, which refers to reach with a certain website to be exchanged with each other, to be linked The website of cooperation intention.In addition, link exchange corresponding relationship can both be established by way of list, it can also be passed through His mode is established.
Step S140: corresponding relationship is exchanged according to above-mentioned link, above-mentioned link exchanging control codes are executed, in the first website The link of the second website of middle display, shows the link of the first website in the second website.
Optionally, step S140 is realized especially by such as under type: when above-mentioned first website is accessed, according to above-mentioned chain Exchange corresponding relationship is connect, determines and carries out linking the second website exchanged with it, the link information of the second website is generated and exports extremely On first website;When the second website is accessed, corresponding relationship is exchanged according to above-mentioned link, determines with it link and exchanges First website generates the link information of the first website and exports to the second website.
The web site url exchange method provided through the embodiment of the present invention, can save the ring that both sides administrator links up repeatedly Section, saves a large amount of time and efforts;In addition, since link exchange process is automatically performed by above-mentioned link exchanging control codes , therefore the link of other side can be added simultaneously on both sides website, so that it is guaranteed that fairness, when having prevented artificial addition link Caused trust problem (such as a side fails the link for such as from about adding other side, or stealthily goes again after the link of addition other side The problems such as falling).
Web site url exchange method provided by the invention is described in detail below with reference to a specific embodiment.In the tool It is that above-mentioned web site url exchange method is realized based on a switching plane in body embodiment.The switching plane can also claim Make friendly chain switching plane, wherein friendly chain refers to: reaching link corresponding to the website for the cooperation intention for being exchanged with each other link, again It is friendly link.
Fig. 2 shows the method flow diagrams of the specific embodiment.As shown in Fig. 2, the website chain that the specific embodiment provides Exchange method is connect to include the following steps:
Step S210: obtaining and shows the A site information for being desired with link exchange.
Wherein, the website A is primarily referred to as the website for wishing to carry out link exchange by the switching plane.Fig. 3 shows the friendship Change a kind of interface schematic diagram of platform.After the administrator of the website A clicks " I will the issue friendly chain " button in interface upper right side, then can Pop up interface shown in Fig. 4.The switching plane obtains the A site information of administrator's typing by interface shown in Fig. 4.Such as figure Shown in 4, which includes: website domain name, the Type of website and web site name.Certainly, those skilled in the art may be used also To increase or decrease the content that A site information is included according to actual needs, this is not limited by the present invention.For example, website name Input content i.e. the website A in title title shown in partner site, in addition to the website of written form shown in Fig. 4 Except title, the website logo of graphic form or other customized forms can also be inputted, to improve the website A in partner site Display effect.In addition, the friendly chain code in interface shown in Fig. 4 also comprising default input.Friend's chain code is as above The link exchanging control codes mentioned.Wherein, which automatically generated by switching plane, for rear Automatically link exchange is realized in continuous link exchange process.After the Publish button in Fig. 4 is clicked, friendly platform chain is obtained simultaneously It shows above-mentioned A site information, also, is automatically inserted into above-mentioned link exchanging control codes in the website source code of the website A.
In addition, as it is desirable that by the switching plane carry out link exchange website it is often very much, and hence it is also possible to pass through Mode in step S210 obtains other websites (such as the website B and some other websites in step S220, such as C The site information of website, the website D etc., wherein also all include above-mentioned chain in the source code of the website of the website B, the website C, the website D etc. Connect exchanging control codes).Also, all websites for getting site information can all be shown (institute by the switching plane Have in the website source code for get site information all comprising above-mentioned link exchanging control codes), to help these websites to find Suitable partner site.Specifically, for the ease of searching, which can also be got according to different classification to show The website of site information: for example, can be shown according to the size of PR value (webpage rank PageRank, abbreviation PR), the Type of website Show corresponding website.
Step S220: obtaining and wish to carry out linking the B site information exchanged with the website A and link exchange solicited message, and Link exchange solicited message is sent to the website A, wherein include link exchanging control codes in the source code of the website B.
Wherein, it obtains and wishes to carry out linking the B site information exchanged with the website A and be inserted into chain in the source code of the website B The mode for connecing exchanging control codes can refer to step S210 to realize, details are not described herein again.
In this step, the website A is found in the administrator of the website B numerous site informations shown by the switching plane Information, it is believed that the information such as the PR value of the website A and/or network type all meet the collaboration requirements of the website B, thus, the pipe of the website B Reason person generates above-mentioned link exchange request letter by clicking " I will the exchange " button on the right side of A site information shown in fig. 5 Breath.Link exchange solicited message shown in fig. 6 is popped up after " I will exchange " button is clicked generates interface.As shown in fig. 6, should It first include the domain-name information (www.9867.org) of the website A in link exchange solicited message, switching plane is believed according to the domain name Link exchange solicited message is forwarded to the website A by breath.Secondly, also comprising for the website B to be arranged in link exchange solicited message It is linked at the information and link swap time information of the display mode on the website A.For example, " selection website " input in Fig. 6 Frame is able to confirm that the domain-name information of the input website B, " web site name " input frame can input text of the B web site url on the website A Word display mark.In addition to this, it in order to improve user experience, in other embodiments of the present invention, can also further link Other kinds of display mark is set in exchange solicited message, such as picture display mark or customized display identify, such one Come, B web site url on the website A display mark not only can be text, can also be picture or other customized modes, from And it can be improved the experience satisfaction of B site visitor.Furthermore it is also possible to which B net further is arranged in link exchange solicited message Station is linked at the Show Styles on the website A, such as display color and/or display size etc., so as to make B web site url in A Show Styles on website is consistent with the whole style of the website B, to further increase the experience satisfaction of B site visitor.
Step S230: after the website A is agreed to carry out link exchange, it is corresponding that exchange is established the link between the website A and the website B Relationship.
After the website A receives above-mentioned link exchange solicited message, administrator is by checking web site contents, the PR of the website B The modes such as value, link to decide whether to exchange with the website B.If the website A is agreed to exchange with the website B to link, can be to the exchange Platform returns to acceptance message, establishes the link according to the acceptance message the corresponding pass of exchange between the website A and the website B by switching plane System, and continue to execute subsequent step S240.If the website A disagrees to exchange with the website B and link, can be returned to the switching plane Refuse information, so far this method terminates.In addition, above-mentioned acceptance message or refuse information can be transmitted to B net by switching plane It stands, so that the administrator of the website B knows result.
Step S240: exchanging corresponding relationship according to the link in step S230, execute above-mentioned link exchanging control codes, The link that the website B is shown in the website A shows the link of the website A in the website B.
Due in the present embodiment, being only illustrated for establishing the link and exchanging between the website A and the website B.Therefore, this The link at place exchanges corresponding relationship are as follows: B-A and A-B.Specifically, automatic to execute the website A source code when the website A is accessed Included in link exchanging control codes, corresponding relationship is exchanged according to above-mentioned link, it is determining carry out with the website A linking exchange Website is the website B, and then generates the link information of the website B and export to the website A;When the website B is accessed, B is executed automatically Exchanging control codes are linked included in the source code of website, corresponding relationship are exchanged according to above-mentioned link, determination is linked with it The website of exchange is the website A, and then generates the link information of the website A and export to the website B.It can be seen that step S240 is One the step of being performed a plurality of times, carries out step S240 as long as the website A or the website B are accessed.
Wherein, link exchanging control codes and the chain included in the source code of the website B included in the source code of the website A Connecing exchanging control codes is link exchange scripted code.Also, link exchange scripted code is that control clothes are exchanged by link Business device (for managing the server of the switching plane) exchanges corresponding relationship according to the link in step S230 and site information is dynamic What state generated.For example, it is assumed that the link exchanging control codes being inserted on the website A are " < script type=" text/ Javascript " src=" http://links.webscan.360.cn "></script>", wherein type=" text/ Javascript " indicates that the link exchanging control codes are the text-type control routine generated by javascript script, src Source server address of=" the http://links.webscan.360.cn " to indicate the link exchanging control codes.Whenever A Above-mentioned link exchanging control codes " < script type=" text/ when website is accessed, in the source code of the website A Javascript " src=" http://links.webscan.360.cn "></script>" will execute automatically.It should executing During control routine, by the automatic request source server address of the control routine " http: // links.webscan.360.cn".The source server is to link exchange control server.Link exchange control server receives After request message from link exchanging control codes, firstly, determining that this is asked according to the identification information for including in the request message The source of message is asked, that is, sends the website (i.e. the website A) where the link exchanging control codes of the request message;Then, it inquires Link in step S230 exchanges corresponding relationship, determines that website corresponding with the website A is the website B;Finally, link exchange control Control server generates and exports scripted code corresponding to B web site url: as with javascript script edit Document.write ('<a href="http://360.cn">360 official websites</a>') code, by this javascript code It is inserted on the website A, makes the link of the website A website automatic Display B in load.Wherein, link exchange control server is in A net It stands when generating and export scripted code corresponding to B web site url on source code, needs further to judge the coding lattice of the website A source code Formula (such as javascript format etc.), then passes through the coding with the website A source code for scripted code corresponding to B web site url The consistent coding mode of format is output on the corresponding position of the website A.
Similarly, when the website B is accessed, the link exchanging control codes in the source code of the website B can also execute automatically, hold During the row control routine, the control routine of the website B also can automatic request source server address, i.e. link exchange control clothes Business device address.After link exchange control server receives the request message from link exchanging control codes, firstly, being asked according to this The identification information for including in message is asked to determine website (the i.e. B net sent where the link exchanging control codes of the request message It stands);Then, the link in query steps S230 exchanges corresponding relationship, determines that website corresponding with the website B is the website A;Most Afterwards, link exchange control server generates and exports scripted code corresponding to A web site url, this scripted code is inserted into After on the website B, the website B load when will the website automatic Display A link.
S210 to step S240 through the above steps, the web site url exchange method being achieved that in the present invention.In the party In method, friendly chain (i.e. collaboration network can be loaded automatically by link exchange control server according to the request of link exchanging control codes The link stood), thus achieve the effect that time-saving and efficiency.
In addition, in the present embodiment, for convenience, only for establishing the link and exchange between the website A and the website B into Explanation is gone.But as it is desirable that by switching plane carry out link exchange website it is very more, therefore, can in actual conditions It can be increasingly complex.For example, in step S230, the website B is linked in addition to sending to the website A in other embodiments of the invention It exchanges except solicited message, also has sent link exchange solicited message to the website C, the website D and the website E simultaneously.Later, the website B Have received the acceptance message from the website A, the website C and the website D, and the refuse information from the website E.Therefore, switching plane The link exchange corresponding relationship established accordingly is B-A, B-C, B-D.In addition, the website A is handed in addition to having received the link from the website B It changes except solicited message, also while having received the link exchange solicited message from the website C, the website D and the website E.Later, A net It stands and has sent acceptance message to the website B and the website D, and have sent refuse information to the website C and the website E.Therefore, switching plane evidence This link established exchange corresponding relationship is A-B, A-D.For the ease of inquiry, switching plane can pass through a link exchange column Table exchanges corresponding relationship to store above-mentioned each link.In link exchange list, in addition to being stored with and the website A and B net It stands except relevant link exchange corresponding relationship, is also stored with the link exchange corresponding relationship of other each websites.Correspondingly , in step S240, list is exchanged according to the link, when executing above-mentioned link exchanging control codes, is shown simultaneously in the website A The link for showing the website B, the website D shows the link of the website A, the website C and the website D simultaneously in the website B.For example, whenever the website A When accessed, the link exchanging control codes in the source code of the website A execute automatically and request source server address, i.e. link exchange control Control server address.Link exchange control server determines the link exchange control generation for sending the request message according to request message Website (i.e. the website A) where code;Then, query link exchanges list, determines that website corresponding with the website A is the website B and D Website;Therefore, link exchange control server generates and exports scripted code corresponding to the website B and the website D, by this script On code insertion to the website A, the link of the website automatic Display B and the website D when loading the website A.
Optionally, which can further include revocation step: receiving and links friendship between the website A and the website B Corresponding relationship revocation request is changed, and above-mentioned link is updated according to revocation request and exchanges corresponding relationship.Wherein, link exchange pair It should be related to that revocation request can be issued by any website in the website A or the website B.Assuming that link exchange corresponding relationship revocation is asked It asks and is issued by the website A, after switching plane receives revocation request, not only can modify the website A institute in link exchange corresponding relationship Corresponding website (deleting the website B from the correspondence website of the website A), while also B can be modified in link exchange corresponding relationship (website A is deleted from the correspondence website of the website B) website corresponding to website.After executing and cancelling step, when the website A or When the website B is accessed again, step S240 is executed again, still, during executing step S240 again, since link exchanges Corresponding relationship is modified, and therefore, will exchange corresponding relationship according to modified link to execute, it is thus possible to reach in time To the purpose for deleting other side's web site url on both sides website simultaneously.
In conclusion will wish exchanging chain by switching plane due in web site url exchange method provided by the invention Therefore the website connect, which all shows and provides, eliminates each webmaster convenient for the communication interface of exchange link The exchange cost linked up repeatedly privately, has saved a large amount of time and efforts.In addition, due to both sides website reach cooperation intention it Afterwards, by the link exchange control server in switching plane come managing cooperative relationship (i.e. link exchange corresponding relationship), and by chain The web site url that exchange control server is automatically inserted into collaboration when website is accessed every time is connect, artificial side is thus avoided The problems such as distrust each other in the presence of formula, has thoroughly prevented one party and has failed such as from about to be inserted into other side's web site url or stealthily delete Except the risk of other side's web site url.
In addition, even if the administrator of a certain website under the table can be inserted link exchange control server by technological means The partner site's link entered on its website source code is deleted, and the link exchange control server in the present invention can also be taken periodically The mode of detection detects this behavior stealthily deleted, to be solved simultaneously in link exchange corresponding relationship according to the behavior Except the corresponding relationship between the website and deleted website, it is achieved in justice.Also, it this to appearance can also stealthily delete The websites of violations give certain punitive measures.
Fig. 7 shows the structural schematic diagram of web site url switch provided by the invention.As shown in fig. 7, the website chain Connecing switch 700 includes: to obtain module 71, sending module 72, establish module 73 and Switching Module 74.
It obtains module 71 to be used to obtain and show the first site information for being desired with link exchange, wherein first net Include link exchanging control codes in the source code stood.
Sending module 72 carries out linking the second site information exchanged and links exchange for obtaining hope with the first website Solicited message, and link exchange solicited message is sent to the first website, wherein it is handed in the source code of second website comprising link Change control routine.Wherein, it at least one required following information when linking in exchange solicited message comprising link exchange: is linked at Display mark on other side website, display mark includes: words identification, picture identification or user-defined identification;It is linked at other side Show Styles on website, the Show Styles include: display color and/or display size;Link swap time.
Module 73 is established for being built after the first website is agreed to carry out link exchange between the first website and the second website Vertical link exchange corresponding relationship.Exchanging corresponding relationship to can be seen that the partner site of the first website by the link includes second Website, and the partner site of the second website includes the first website.Partner site mentioned here, which refers to, reaches phase with a certain website The website of the cooperation intention of interchangeable link.In addition, link exchange corresponding relationship can both be established by way of list, It can also establish by other means.
Switching Module 74 is used to exchange corresponding relationship according to above-mentioned link, link exchanging control codes is executed, in the first net The link that the second website is shown in standing shows the link of the first website in the second website.Optionally, Switching Module 74 is further It include: the first Switching Module 741, for exchanging corresponding relationship according to link, determination is carried out with it when the first website is accessed The second website of exchange is linked, the link information of the second website is generated and is exported to the first website;Second Switching Module 742, For exchanging corresponding relationship according to link, determination carries out linking the first website exchanged with it, raw when the second website is accessed At the first website link information and export on the second website.
Above-mentioned link exchanging control codes are link exchange scripted code, and the link exchange scripted code is exchanged by link Control server exchanges corresponding relationship and site information dynamic generation according to the link.
Optionally, the module 73 of establishing is further used for: receiving linking between the first website and the second website and exchanges Corresponding relationship revocation request, and above-mentioned link is updated according to revocation request and exchanges corresponding relationship.
Concrete operating principle about above-mentioned modules can refer to the description of each step in embodiment of the method, herein It repeats no more.
In web site url provided by the invention exchange method and device, firstly, being desired with the first of link exchange Addition links exchanging control codes respectively in the website source code of website and the second website;Then, when the first website is agreed to and second When website carries out link exchange, is established the link between the first website and the second website and exchange corresponding relationship;Finally, according to the chain Exchange corresponding relationship is connect, above-mentioned link exchanging control codes are executed, so that the link of the second website is shown in the first website, The link of the first website is shown in the second website, and link exchange is realized with this.It can be seen that in website chain provided by the invention It connects in exchange method and device, to wish that the website for exchanging link provides a link switching plane, it is desirable to pass through the platform Link exchanging control codes are added in its website source code in advance in the website for carrying out link exchange.Accordingly, it is desirable to pass through the platform The website for carrying out link exchange need to only issue link exchange request to the partner site in its intention, so that it may receive collaboration network After the confirmation message stood, link exchange is automatically performed by above-mentioned link exchanging control codes.It can be seen that the exchange method and dress Set and at least have the following beneficial effects: firstly, eliminate the link that both sides administrator links up repeatedly, saved a large amount of time and Energy;Secondly as link exchange process is automatically performed by above-mentioned link exchanging control codes, therefore it can be in both sides' net The link of other side is stood above while adding, so that it is guaranteed that fairness, has prevented trust problem (example caused when artificial addition link A such as side fails the link for such as from about adding other side, or after the link of addition other side and the problems such as stealthily removing).
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein. Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) realize some or all portions in device according to an embodiment of the present invention The some or all functions of part.The present invention is also implemented as a part or complete for executing method as described herein The device or device program (for example, computer program and computer program product) in portion.It is such to realize program of the invention It can store on a computer-readable medium, or may be in the form of one or more signals.Such signal can be with It downloads from internet website, is perhaps provided on the carrier signal or is provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.

Claims (10)

1. a kind of web site url exchanges method, comprising the following steps:
It obtains and shows the first site information for being desired with link exchange, wherein include chain in the source code of first website Connect exchanging control codes;
It obtains and wishes to carry out linking the second site information exchanged with the first website and link exchange solicited message, and link is handed over It changes solicited message and is sent to the first website, wherein include link exchanging control codes in the source code of second website;
After the first website is agreed to carry out link exchange, is established the link between the first website and the second website and exchange corresponding close System;
Corresponding relationship is exchanged according to the link, executes link exchange control generation included in the source code of first website Code shows the link of second website in first website, executes chain included in the source code of second website Exchanging control codes are connect, the link of first website is shown in second website.
2. the method for claim 1, wherein exchanging corresponding relationship according to the link, the link exchange control is executed Code processed shows the link of second website in first website, and first net is shown in second website The step of link stood, further comprises:
When first website is accessed, corresponding relationship is exchanged according to the link, determination carries out linking the institute exchanged with it The second website is stated, the link information of second website is generated and is exported to first website;
When second website is accessed, corresponding relationship is exchanged according to the link, determination carries out linking the institute exchanged with it The first website is stated, the link information of first website is generated and is exported to second website.
3. method according to claim 1 or 2, wherein further comprise step:
It receives linking between first website and second website and exchanges corresponding relationship revocation request, and removed according to described Pin request updates the link and exchanges corresponding relationship.
4. method according to claim 1 or 2, wherein required when in the link exchange solicited message comprising link exchange At least one of following information:
The display mark being linked on other side website, the display mark includes: words identification, picture identification or customized mark Know;
The Show Styles being linked on other side website, the Show Styles include: display color and/or display size;
Link swap time.
5. method according to claim 1 or 2, wherein link exchange control included in the source code of first website Link exchanging control codes included in code and the source code of second website are to link exchange scripted code, described first The link exchange scripted code of website exchanges corresponding relationship and the first website according to the link by link exchange control server The link exchange scripted code of information dynamic generation, second website is handed over by link exchange control server according to the link Change corresponding relationship and the second site information dynamic generation.
6. a kind of web site url switch, comprising:
Module is obtained, suitable for obtaining and showing the first site information for being desired with link and exchanging, wherein first website Include link exchanging control codes in source code;
Sending module wishes link the second site information exchanged and link exchange request believing with the first website suitable for obtaining Breath, and link exchange solicited message is sent to the first website, wherein include link exchange control in the source code of second website Code processed;
Module is established, suitable for establishing chain between the first website and the second website after the first website is agreed to carry out link exchange Connect exchange corresponding relationship;
Switching Module is suitable for exchanging corresponding relationship according to the link, executes chain included in the source code of first website Exchanging control codes are connect, exchanging control codes are linked included in the source code for executing second website, in first net The link that second website is shown in standing shows the link of first website in second website.
7. device as claimed in claim 6, wherein the Switching Module further comprises:
First Switching Module is suitable for when first website is accessed, exchanges corresponding relationship according to the link, determination and its Second website of link exchange is carried out, the link information of second website is generated and is exported to first website;
Second Switching Module is suitable for when second website is accessed, exchanges corresponding relationship according to the link, determination and its First website of link exchange is carried out, the link information of first website is generated and is exported to second website.
8. device as claimed in claims 6 or 7, wherein the module of establishing is further adapted for: receive first website with Link exchange corresponding relationship revocation request between second website, and the link is updated according to revocation request and is exchanged Corresponding relationship.
9. device as claimed in claims 6 or 7, wherein required when in the link exchange solicited message comprising link exchange At least one of following information:
The display mark being linked on other side website, the display mark includes: words identification, picture identification or customized mark Know;
The Show Styles being linked on other side website, the Show Styles include: display color and/or display size;
Link swap time.
10. device as claimed in claims 6 or 7, wherein link exchange control included in the source code of first website Link exchanging control codes included in code and the source code of second website are to link exchange scripted code, described first The link exchange scripted code of website exchanges corresponding relationship and the first website according to the link by link exchange control server The link exchange scripted code of information dynamic generation, second website is handed over by link exchange control server according to the link Change corresponding relationship and the second site information dynamic generation.
CN201610293427.4A 2014-06-25 2014-06-25 Web site url exchanges method and device Active CN105721619B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610293427.4A CN105721619B (en) 2014-06-25 2014-06-25 Web site url exchanges method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610293427.4A CN105721619B (en) 2014-06-25 2014-06-25 Web site url exchanges method and device
CN201410290910.8A CN104079642B (en) 2014-06-25 2014-06-25 Web site url switching method and device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201410290910.8A Division CN104079642B (en) 2014-06-25 2014-06-25 Web site url switching method and device

Publications (2)

Publication Number Publication Date
CN105721619A CN105721619A (en) 2016-06-29
CN105721619B true CN105721619B (en) 2019-05-24

Family

ID=56162014

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610293427.4A Active CN105721619B (en) 2014-06-25 2014-06-25 Web site url exchanges method and device

Country Status (1)

Country Link
CN (1) CN105721619B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108694233A (en) * 2018-04-27 2018-10-23 厦门二五八网络科技集团股份有限公司 A kind of friend's chain management system and management method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7996259B1 (en) * 2000-06-07 2011-08-09 Perfect Web Technologies, Inc. Method for developing electronic documents providing e-commerce tools
CN101202678A (en) * 2007-12-05 2008-06-18 深圳市迅雷网络技术有限公司 Method and device of controlling link
US8132091B2 (en) * 2008-08-07 2012-03-06 Serge Nabutovsky Link exchange system and method
CN101814083A (en) * 2010-01-08 2010-08-25 上海复歌信息科技有限公司 Automatic webpage classification method and system
CN102169561A (en) * 2011-04-07 2011-08-31 姜华 Method for displaying information according to association between users
CN104079642B (en) * 2014-06-25 2016-06-08 北京奇虎科技有限公司 Web site url switching method and device

Also Published As

Publication number Publication date
CN105721619A (en) 2016-06-29

Similar Documents

Publication Publication Date Title
CN106528432B (en) The construction method and device of test scene data bury a test method
CN104426925B (en) Web page resources acquisition methods and device
CN102999636B (en) Pop-up in webpage is carried out method and the browser of intercept process
CN106156133B (en) The method, apparatus and system that control table substance is submitted again
CN102355500B (en) Service push method and device
CN101741872B (en) Method and device for acquiring information of target resources
CN103942225A (en) Method and system for invoking resources of Hybrid App client and client
CN103577129B (en) A kind of browser for realizing browsing content printing, method and system
CN103383687A (en) Page processing method and device
CN108259598A (en) A kind of awareness apparatus unified access method based on isomery fusion and cloud analytic technique
CN105205072B (en) The methods of exhibiting and system of webpage information
CN103475744A (en) Resource downloading method, device and system on basis of Web application
CN110347946B (en) Page display method and device, computer equipment and storage medium
CN105554085B (en) A kind of dynamic timeout treatment method and apparatus based on server connection
CN105897888A (en) Client connection method and system
CN105095220B (en) A kind of browser implementation method, terminal and virtualization agent device
CN110795650A (en) Webpage opening method and device and computer readable storage medium
CN104618420A (en) Information display method and device
CN104731817B (en) A kind of webpage exhibiting method and device
TWI713342B (en) Object uploading method and device
CN103379163B (en) A kind of defining method of business object and determining device
CN105721619B (en) Web site url exchanges method and device
CN103605486B (en) A kind of browser for realizing isochronous printing, method and system
CN112818270A (en) Data cross-domain transfer method and device and computer equipment
CN105354269B (en) Web applicational language Localization methodologies and system based on reverse proxy and information filtering

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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee after: Beijing Qizhi Business Consulting Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220329

Address after: 100016 1773, 15 / F, 17 / F, building 3, No.10, Jiuxianqiao Road, Chaoyang District, Beijing

Patentee after: Sanliu0 Digital Security Technology Group Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Beijing Qizhi Business Consulting Co.,Ltd.