WO2015196776A1 - 网站链接交换方法及装置 - Google Patents

网站链接交换方法及装置 Download PDF

Info

Publication number
WO2015196776A1
WO2015196776A1 PCT/CN2014/095945 CN2014095945W WO2015196776A1 WO 2015196776 A1 WO2015196776 A1 WO 2015196776A1 CN 2014095945 W CN2014095945 W CN 2014095945W WO 2015196776 A1 WO2015196776 A1 WO 2015196776A1
Authority
WO
WIPO (PCT)
Prior art keywords
website
link
link exchange
exchange
information
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.)
Ceased
Application number
PCT/CN2014/095945
Other languages
English (en)
French (fr)
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 Qihoo Technology Co Ltd
Qizhi Software Beijing 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
Publication of WO2015196776A1 publication Critical patent/WO2015196776A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Definitions

  • the present invention relates to the field of network communication technologies, and in particular, to a website link exchange method and apparatus.
  • Friendship links also known as website exchange links, reciprocal links, interchange links, alliance links, etc.
  • the cooperation website has reached a cooperation intention in advance. For example, after the A website and the B website reach a cooperation intention, the website name of the other website represented by the picture form or the text form is placed on the own website, and the corresponding party is set correspondingly.
  • Hyperlinks on the website ie, friendship links
  • the browser will automatically switch to the page of the other website, thereby bringing more visits to the other website.
  • the websites that want to implement the link exchange can achieve the cooperation intention and exchange the links by the following methods: First, the administrator of the A website posts a link exchange information through various chat platforms such as private letters, and the administrator of the B website sees the After the link exchange information, contact the administrator of the A website through a chat platform such as a private message. Then, the two sides discuss the details of the link exchange, such as the link location, link form (picture, text) and so on. Finally, one of the administrators first adds a link to the other party's website on their own website. Another administrator sees that their website link appears on the other party's website, and then adds the other party's website link to their website. carry out.
  • the present invention has been made in order to provide a website link exchange method, apparatus, computer program and computer readable medium that overcome the above problems or at least partially solve the above problems.
  • a website link exchange method comprising the following steps: Obtaining and displaying first website information that is desired to be exchanged by a link, wherein the source code of the first website includes a link exchange control code; obtaining second website information and link exchange request information that is desired to be exchanged with the first website, and linking The exchange request information is sent to the first website, where the source code of the second website includes a link exchange control code; after the first website agrees to perform the link exchange, a link exchange correspondence relationship is established between the first website and the second website; The link exchange correspondence, the link exchange control code is executed, the link of the second website is displayed in the first website, and the link of the first website is displayed in the second website.
  • a website link switching apparatus comprising: an obtaining module, configured to acquire and display first website information that is desired to be exchanged by a link, wherein the source code of the first website includes a link exchange control code a sending module, configured to obtain second website information and link exchange request information that is desired to be exchanged with the first website, and send the link exchange request information to the first website, where the source code of the second website includes link exchange control a code establishing module, configured to establish a link exchange correspondence between the first website and the second website after the first website agrees to perform the link exchange; the exchange module is adapted to exchange the correspondence according to the link, and execute the link exchange control code, A link to the second website is displayed in the first website, and a link to the first website is displayed in the second website.
  • a computer program comprising computer readable code that causes the website link exchange method to be executed when the electronic device runs the computer readable code.
  • a computer readable medium storing a computer program as described above is provided.
  • a link exchange control code is separately added to a website source code of a first website and a second website for which link exchange is desired; and then, when the first website agrees with the second website
  • the link exchange is performed, a link exchange correspondence relationship is established between the first website and the second website; finally, the link exchange control code is executed according to the link exchange correspondence, thereby displaying the link of the second website in the first website.
  • Linking is performed by displaying a link to the first website in the second website.
  • a link exchange platform for a website that wishes to exchange links, and a website that wants to exchange links through the platform pre-adds a link exchange control code to its website source code in advance. . Therefore, the website that wants to exchange the link through the platform only needs to issue a link exchange request to the cooperation website in its intention, and the link exchange control code automatically completes the link exchange after receiving the confirmation message of the cooperation website.
  • the switching method and device have at least the following beneficial effects: firstly, the link between the two administrators is repeatedly saved, which saves a lot of time and effort; secondly, since the link exchange process is automatically controlled by the above link exchange control code Completed, so you can add the other party's link on both sites to ensure fairness and eliminate the trust problem caused by manually adding links (such as a The party failed to add the other party's link, or added the other party's link and then secretly removed the problem.
  • FIG. 1 is a flowchart of a website link exchange method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a website link exchange method provided by a specific embodiment of the present invention.
  • FIG. 3 shows an interface diagram of the switching platform
  • FIG. 4 is a schematic diagram showing an interface popped up after clicking the “I want to post a friend chain” button in FIG. 3;
  • Figure 5 shows a schematic diagram of the interface containing the "I want to exchange” button
  • Figure 6 shows a schematic diagram of the interface popped up after clicking the "I want to exchange” button in Figure 5;
  • FIG. 7 is a schematic structural diagram of a website link switching apparatus provided by the present invention.
  • Figure 8 shows a block diagram of an electronic device for performing the method of the present invention
  • Figure 9 shows a schematic diagram of a memory unit for holding or carrying program code implementing a method in accordance with the present invention.
  • the embodiment of the invention provides a method and a device for exchanging links of a website, which can solve the problem of repeated communication caused by the webmasters of the two parties communicating the details of the link exchange and manually performing the link exchange, and the problem of mutual trust. .
  • FIG. 1 is a flowchart of a website link exchange method according to an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps:
  • Step S110 Acquire and display the first website information that is desired to be exchanged by the link, wherein the source code of the first website includes a link exchange control code.
  • link exchange control code is used to implement link exchange in subsequent steps.
  • link The exchange control code is the link exchange script code.
  • Step S120 Acquire second website information and link exchange request information that is desired to be exchanged with the first website, and send the link exchange request information to the first website, where the source code of the second website includes a link exchange control code.
  • the foregoing link exchange request information includes at least one of the following information required for the link exchange: a display identifier linked to the website of the other party, the display identifier includes: a text identifier, a picture identifier, or a custom identifier; the link is in the other party
  • the display style on the website including: display color and/or display size; link exchange time.
  • Step S130 After the first website agrees to perform the link exchange, a link exchange correspondence relationship is established between the first website and the second website.
  • the cooperation website of the first website includes the second website
  • the cooperation website of the second website includes the first website.
  • the cooperative website mentioned here refers to a website that has a cooperative intention to exchange links with a certain website.
  • the link exchange correspondence may be established by means of a list or by other means.
  • Step S140 Execute the link exchange control code according to the link exchange correspondence, display a link of the second website in the first website, and display a link of the first website in the second website.
  • the step S140 is specifically implemented by: when the first website is accessed, determining, according to the link exchange correspondence, the second website with which the link exchange is performed, generating link information of the second website, and outputting the link information to the first On the website; when the second website is accessed, the first website is exchanged according to the above link, and the first website with the link exchange is determined, and the link information of the first website is generated and output to the second website.
  • the website link exchange method provided by the embodiment of the invention can save the link of repeated communication between the two administrators, saves a lot of time and effort; in addition, since the link exchange process is automatically completed by the above link exchange control code, Both parties add links to each other's websites to ensure fairness and eliminate the trust problems caused by manually adding links (for example, if one party fails to add a link to the other party or adds a link to the other party and then sneak it off).
  • the website link exchange method provided by the present invention is described in detail below in conjunction with a specific embodiment.
  • the above-described website link exchange method is implemented based on an exchange platform.
  • the exchange platform may also be referred to as a friend chain exchange platform, wherein the friend chain refers to a link corresponding to a website that achieves the cooperation intention of exchanging links, and is also called a friendship link.
  • FIG. 2 shows a flow chart of the method of this particular embodiment.
  • the website link exchange method provided by the specific embodiment includes the following steps:
  • Step S210 Acquire and display the A website information that is desired to be exchanged by the link.
  • the A website mainly refers to a website that wants to exchange links through the exchange platform.
  • Figure 3 shows A schematic diagram of an interface of the exchange platform.
  • the administrator of the A website clicks the “I want to post the friend chain” button at the top right of the interface, and the interface shown in Figure 4 will pop up.
  • the exchange platform obtains the information of the A website entered by the administrator through the interface shown in FIG. 4.
  • the A website information includes: a website domain name, a website type, and a website name.
  • the input content in the website name is also the name displayed by the website A on the cooperation website.
  • the website name or other customized form of the website logo may be input. Improve the display of A website on the cooperation website.
  • the friend input chain code of the default input is also included in the interface shown in FIG.
  • the friend chain code is the link exchange control code mentioned above.
  • the link exchange control code is automatically generated by the exchange platform for automatically implementing link exchange in a subsequent link exchange process. When the "Publish" button in FIG. 4 is clicked, the friend chain platform acquires and displays the above-mentioned A website information, and automatically inserts the above-mentioned link exchange control code in the website source code of the A website.
  • the exchange platform can also be obtained by the method in step S210.
  • the website information such as the website, wherein the source code of the website of the B website, the C website, the D website, and the like also includes the above-mentioned link exchange control code).
  • the exchange platform can display all the websites that have obtained the website information (all the website source code that obtains the website information includes the above-mentioned link exchange control code) to help these websites find suitable cooperation websites.
  • the exchange platform can also display the website that obtains the website information according to different classifications: for example, the corresponding website can be displayed according to the size of the PR value (page level PageRank, referred to as PR) and the website type.
  • PR page level PageRank
  • Step S220 Obtain B website information and link exchange request information that is desired to be exchanged with the A website, and send the link exchange request information to the A website, wherein the source code of the B website includes a link exchange control code.
  • the method for obtaining the B website information that is desired to be exchanged with the A website and the method for inserting the link exchange control code in the source code of the website B can be implemented by referring to step S210, and details are not described herein again.
  • the administrator of the B website finds the information of the A website in the numerous website information displayed by the exchange platform, and believes that the information such as the PR value and/or the network type of the website A meets the cooperation requirements of the website B, and thus The administrator of the B website generates the above-mentioned link exchange request information by clicking the "I want to exchange” button on the right side of the A website information shown in FIG.
  • the link exchange request information generation interface shown in FIG. 6 pops up.
  • the link exchange request information first includes domain name information (www.9867.org) of the website A, and the exchange platform forwards the link exchange request information to the website A according to the domain name information.
  • the link exchange request information further includes information for setting a display manner of the B website link on the A website, and link exchange time information.
  • the "Website" input box can confirm the domain name information of the input B website, and the "Site Name” input box can input the text display identifier of the B website link on the A website.
  • another type of display identifier such as a picture display identifier or a custom display identifier, may be further set in the link exchange request information, so that the display identifier of the B website link on the A website may be not only a text but also a picture. Or other custom methods, which can improve the experience satisfaction of the visitors of the B website.
  • the display style of the B website link on the A website can be further set in the link exchange request information. Therefore, the display style of the B website link on the A website can be consistent with the overall style of the B website, thereby further improving the experience satisfaction of the website visitors of the website B.
  • Step S230 After the A website agrees to perform the link exchange, a link exchange correspondence relationship is established between the A website and the B website.
  • the website A After the website A receives the above-mentioned link exchange request information, its administrator determines whether to exchange the link with the B website by checking the website content and PR value of the website B. If the A website agrees to exchange the link with the B website, the consent message is returned to the exchange platform, and the exchange platform establishes a link exchange correspondence between the A website and the B website according to the consent message, and continues to perform the subsequent step S240. If the A website does not agree to exchange links with the B website, a rejection message will be returned to the exchange platform, and the method ends. In addition, the exchange platform may forward the above consent message or rejection message to the B website, so that the administrator of the B website knows the result.
  • Step S240 Execute the above-mentioned link exchange control code according to the link exchange correspondence in step S230, display the link of the B website in the A website, and display the link of the A website in the B website.
  • the link exchange correspondence is: B-A and A-B.
  • the link exchange control code included in the A website source code is automatically executed, and according to the above-mentioned link exchange correspondence, the website linked with the A website is determined to be the B website, and then the link of the B website is generated.
  • the information is output to the A website; when the B website is accessed, the link exchange control code included in the B website source code is automatically executed, and the corresponding link is exchanged according to the above link, and the website with which the link exchange is performed is determined as the A website, thereby generating A.
  • the link information of the website is output to the B website. It can be seen that step S240 is a multiple execution step, and step S240 is executed as long as the A website or the B website is accessed.
  • the link exchange control code included in the A website source code and the link exchange control code included in the B website source code are link exchange script codes.
  • the link exchange script code is dynamically generated by the link exchange control server (the server for managing the exchange platform) according to the link exchange correspondence and the website information in step S230.
  • the source server address "http://links.webscan.360.cn" is automatically requested by the control code.
  • the source server is the link exchange control server.
  • the link exchange control server when the link exchange control server generates and outputs the script code corresponding to the B website link on the A website source code, it is necessary to further determine the encoding format of the A website source code (for example, javascript format, etc.), and then link the script code corresponding to the B website link. It is output to the corresponding position of the A website through the encoding method consistent with the encoding format of the A website source code.
  • the encoding format of the A website source code for example, javascript format, etc.
  • the link exchange control code in the B website source code will be automatically executed.
  • the control code of the B website will automatically request the source server address, ie, the link exchange. Control server address.
  • the link exchange control server After receiving the request message from the link exchange control code, the link exchange control server first determines, according to the identification information contained in the request message, the website where the link exchange control code of the request message is sent (ie, the B website); and then, the query step The link exchange correspondence in S230 determines that the website corresponding to the B website is the A website; finally, the link exchange control server generates and outputs the script code corresponding to the link of the A website, and inserts the script code into the website B, When the B website loads, it will automatically display the link of the A website.
  • the link exchange control server can automatically load the friend chain (ie, the link of the cooperation website) according to the request of the link exchange control code, thereby achieving a time-saving and efficient effect.
  • step S230 the B website transmits link exchange request information to the C website, the D website, and the E website in addition to the link exchange request information to the A website.
  • the B website received the A website, the C website and the D network.
  • the A website in addition to receiving the link exchange request information from the B website, the A website also receives the link exchange request information from the C website, the D website, and the E website. After that, the website A sent a consent message to the B website and the D website, and sent a rejection message to the C website and the E website. Therefore, the link exchange correspondence established by the exchange platform according to this is A-B, A-D.
  • the exchange platform may store the above-mentioned respective link exchange correspondences through a link exchange list. In the link exchange list, in addition to the link exchange correspondence associated with the A website and the B website, a link exchange correspondence relationship of each of the other websites is stored.
  • step S240 when the link exchange control code is executed according to the link exchange list, the links of the B website and the D website are simultaneously displayed in the A website, and the A website, the C website, and the B website are simultaneously displayed in the B website.
  • a link to the D website For example, whenever the A website is accessed, the link exchange control code in the A website source code automatically executes and requests the source server address, ie the link exchange control server address.
  • the link exchange control server determines, according to the request message, the website where the link exchange control code for transmitting the request message is located (ie, the A website); and then queries the link exchange list to determine that the website corresponding to the A website is the B website and the D website; therefore, The link exchange control server generates and outputs the script code corresponding to the B website and the D website, inserts the script code into the A website, and automatically displays the links of the B website and the D website when the website A loads.
  • the embodiment may further include an undoing step of: receiving a link exchange correspondence revocation request between the A website and the B website, and updating the link exchange correspondence according to the revocation request.
  • the link exchange correspondence cancellation request may be sent by any website of the A website or the B website. It is assumed that the link exchange corresponding relationship revocation request is issued by the A website.
  • the exchange platform After receiving the revocation request, the exchange platform not only modifies the website corresponding to the A website in the link exchange correspondence relationship (the B website is deleted from the corresponding website of the A website) At the same time, the website corresponding to the B website will be modified in the link exchange correspondence (the A website will be deleted from the corresponding website of the B website).
  • step S240 is executed again, but in the process of performing step S240 again, since the link exchange correspondence has been modified, it will be exchanged according to the modified link.
  • the correspondence is executed, so that the purpose of deleting the link of the other website on both websites can be achieved in time.
  • the link exchange control server in the exchange platform manages the cooperation relationship (ie, the link exchange correspondence), and the link exchange control server automatically inserts the website cooperated with each time the website is accessed. Linking, thus avoiding the problems of mutual distrust in the manual mode, completely eliminates the risk that one party fails to insert the link of the other party's website or secretly delete the link of the other website.
  • the link exchange control server in the present invention can also detect by means of periodic detection.
  • This sneaky deletion behavior in accordance with the behavior, simultaneously removes the correspondence between the website and the deleted website in the link exchange correspondence, thereby achieving fairness.
  • FIG. 7 is a schematic structural diagram of a website link switching apparatus provided by the present invention.
  • the website link switching device 700 includes an acquisition module 71, a sending module 72, an establishing module 73, and a switching module 74.
  • the obtaining module 71 is configured to acquire and display first website information that is desired to be linked for exchange, wherein the source code of the first website includes a link exchange control code.
  • the sending module 72 is configured to obtain second website information and link exchange request information that is desired to be exchanged with the first website, and send the link exchange request information to the first website, where the source code of the second website includes link exchange control Code.
  • the link exchange request information includes at least one of the following information required for the link exchange: a display identifier of the link on the other website, the display identifier includes: a text identifier, a picture identifier or a custom logo; the link is on the other party's website.
  • Display style which includes: display color and/or display size; link exchange time.
  • the establishing module 73 is configured to establish a link exchange correspondence between the first website and the second website after the first website agrees to perform the link exchange. It can be seen that the cooperation website of the first website includes the second website, and the cooperation website of the second website includes the first website.
  • the cooperative website mentioned here refers to a website that has a cooperative intention to exchange links with a certain website.
  • the link exchange correspondence may be established by means of a list or by other means.
  • the exchange module 74 is configured to execute a link exchange control code according to the link exchange correspondence, display a link of the second website in the first website, and display a link of the first website in the second website.
  • the switching module 74 further includes: a first switching module 741, configured to: when the first website is accessed, determine, according to the link exchange correspondence, the second website with which the link exchange is performed, and generate the link information of the second website.
  • the second exchange module 742 is configured to: when the second website is accessed, determine the first website that is linked and exchanged according to the link exchange correspondence, generate the link information of the first website, and output the information to the first website. On the website.
  • the link exchange control code is a link exchange script code
  • the link exchange script code is dynamically generated by the link exchange control server according to the link exchange correspondence and the website information.
  • the establishing module 73 is further configured to: receive a link exchange correspondence revocation request between the first website and the second website, and update the link exchange correspondence according to the revocation request.
  • a link exchange control code is separately added to a website source code of a first website and a second website for which link exchange is desired; and then, when the first website agrees with the second website
  • the link exchange is performed, a link exchange correspondence relationship is established between the first website and the second website; finally, the link exchange control code is executed according to the link exchange correspondence, thereby displaying the link of the second website in the first website.
  • Linking is performed by displaying a link to the first website in the second website.
  • a link exchange platform for a website that wishes to exchange links, and a website that wants to exchange links through the platform pre-adds a link exchange control code to its website source code in advance. . Therefore, the website that wants to exchange the link through the platform only needs to issue a link exchange request to the cooperation website in its intention, and the link exchange control code automatically completes the link exchange after receiving the confirmation message of the cooperation website.
  • the switching method and device have at least the following beneficial effects: firstly, the link between the two administrators is repeatedly saved, which saves a lot of time and effort; secondly, since the link exchange process is automatically controlled by the above link exchange control code Completed, so you can add the other party's link on both websites, thus ensuring fairness and eliminating the trust problem caused by manually adding the link (for example, one party fails to add the other party's link, or adds the other party's link) Secretly removed and other issues).
  • modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment.
  • Can be practical Modules or units or components in the embodiments are combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components.
  • any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined.
  • Each feature disclosed in this specification may be replaced by alternative features that provide the same, equivalent or similar purpose.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components in accordance with embodiments of the present invention.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals.
  • Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • FIG. 8 illustrates an electronic device in which the website link exchange method of the present invention can be implemented.
  • the electronic device conventionally includes a processor 810 and a computer program product or computer readable medium in the form of a memory 820.
  • the memory 820 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM.
  • Memory 820 has a memory space 830 for program code 831 for performing any of the method steps described above.
  • storage space 830 for program code may include various program code 831 for implementing various steps in the above methods, respectively.
  • the program code can be read from or written to one or more computer program products.
  • Such computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • Such a computer program product is typically a portable or fixed storage unit as described with reference to FIG.
  • the storage unit may have a storage section or a storage space or the like arranged similarly to the storage 820 in the electronic device of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit comprises a program 831' for performing the steps of the method according to the invention, ie a code readable by a processor, such as 810, which, when executed by the electronic device, causes the electronic device to perform the above Each step in the described method.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明涉及一种网站链接交换方法及装置,能够解决现有技术中由双方网站管理员自行沟通链接交换细节并人工执行链接交换时所导致的反复沟通的问题以及彼此不信任的问题。该方法包括:获取并显示希望进行链接交换的第一网站信息,其中,第一网站的源码中包含链接交换控制代码;获取希望与第一网站进行链接交换的第二网站信息及链接交换请求信息,并将链接交换请求信息发送至第一网站,其中,第二网站的源码中包含链接交换控制代码;在第一网站同意进行链接交换后,在第一网站与第二网站之间建立链接交换对应关系;根据链接交换对应关系,执行链接交换控制代码,在第一网站中显示第二网站的链接,在第二网站中显示第一网站的链接。

Description

网站链接交换方法及装置 技术领域
本发明涉及网络通信技术领域,具体涉及一种网站链接交换方法及装置。
背景技术
友情链接,也称为网站交换链接、互惠链接、互换链接、联盟链接等,是近期在具有一定资源互补优势的网站之间兴起的一种简单合作形式。在这种合作形式中,合作网站预先达成合作意向,例如,A网站和B网站达成合作意向之后,分别在自身网站上放置由图片形式或文字形式表示的对方网站的网站名称,并对应设置对方网站的超链接(即友情链接);当访问自身网站的网络用户终端点击该超链接后,浏览器会自动切换到对方网站的页面,从而为对方网站带来更多的访问量。网站之间通过这种合作方式能够达到互相推广的目的。
目前,欲实现链接交换的网站之间通过如下方式来达成合作意向并进行链接交换:首先,A网站的管理员通过私信等各类聊天平台发布一链接交换信息,B网站的管理员看到该链接交换信息之后通过私信等聊天平台联系A网站的管理员。然后,双方商量链接交换的细节,例如链接位置、链接形式(图片、文字)等。最后,其中的一个管理员先在自己的网站上添加对方的网站链接,另外一个管理员看到自己的网站链接出现在对方网站上之后,再在自己网站上添加对方的网站链接,至此链接交换完成。
在上述方式中,需要由双方管理员自行沟通链接交换的细节,并由双方管理员完成网站链接的添加工作。这种人工沟通的方式导致了下述一系列的问题:首先,双方管理员为了交换一个链接,往往需要与对方反复沟通多次才能达成交换意向,由此浪费了管理员大量的时间和精力。其次,双方管理员之间互不相识,还存在着是否能够彼此信任的问题:在达成交换意向之后,先在自己网站上添加对方网站链接的一方存在被另一方欺骗的风险,如果另一方没有按照约定添加自己网站的链接则会导致先添加链接的一方利益受损。最后,即使双方管理员都如约添加了对方的链接,但是,如果一段时间之后,其中一方偷偷将另一方的链接删除,同样会导致另一方的利益受损而无法及时发现。
发明内容
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的网站链接交换方法、装置、计算机程序以及计算机可读介质。
依据本发明的一个方面,提供了一种网站链接交换方法,包括以下步骤: 获取并显示希望进行链接交换的第一网站信息,其中,第一网站的源码中包含链接交换控制代码;获取希望与第一网站进行链接交换的第二网站信息及链接交换请求信息,并将链接交换请求信息发送至第一网站,其中,第二网站的源码中包含链接交换控制代码;在第一网站同意进行链接交换后,在第一网站与第二网站之间建立链接交换对应关系;根据链接交换对应关系,执行链接交换控制代码,在第一网站中显示第二网站的链接,在第二网站中显示第一网站的链接。
依据本发明的另一方面,提供了一种网站链接交换装置,包括:获取模块,适于获取并显示希望进行链接交换的第一网站信息,其中,第一网站的源码中包含链接交换控制代码;发送模块,适于获取希望与第一网站进行链接交换的第二网站信息及链接交换请求信息,并将链接交换请求信息发送至第一网站,其中,第二网站的源码中包含链接交换控制代码;建立模块,适于在第一网站同意进行链接交换后,在第一网站与第二网站之间建立链接交换对应关系;交换模块,适于根据链接交换对应关系,执行链接交换控制代码,在第一网站中显示第二网站的链接,在第二网站中显示第一网站的链接。
根据本发明的另一个方面,提供了一种计算机程序,其包括计算机可读代码,当电子设备运行所述计算机可读代码时,导致所述的网站链接交换方法被执行。
根据本发明的再一个方面,提供了一种计算机可读介质,其中存储了如上所述的计算机程序。
在本发明提供的网站链接交换方法及装置中,首先,在希望进行链接交换的第一网站和第二网站的网站源码中分别添加链接交换控制代码;然后,当第一网站同意与第二网站进行链接交换时,在第一网站与第二网站之间建立链接交换对应关系;最后,根据该链接交换对应关系,执行上述的链接交换控制代码,从而在第一网站中显示第二网站的链接,在第二网站中显示第一网站的链接,以此实现链接交换。由此可见,在本发明提供的网站链接交换方法及装置中,为希望交换链接的网站提供了一个链接交换平台,希望通过该平台进行链接交换的网站预先在其网站源码中添加链接交换控制代码。由此,希望通过该平台进行链接交换的网站只需向其意向中的合作网站发布链接交换请求,就可以在收到合作网站的确认消息后,由上述链接交换控制代码自动完成链接交换。由此可见,该交换方法及装置至少具有如下有益效果:首先,省去了双方管理员反复沟通的环节,节约了大量的时间和精力;其次,由于链接交换过程是由上述链接交换控制代码自动完成的,因此能够在双方网站上同时添加对方的链接,从而确保公平性,杜绝了人工添加链接时所导致的信任问题(例如一 方未能如约添加对方的链接,或是添加对方的链接后又偷偷去掉等问题)。
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。
附图说明
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:
图1示出了本发明实施例提供的网站链接交换方法的流程图;
图2示出了本发明具体实施例提供的网站链接交换方法的流程图;
图3示出了该交换平台的一种界面示意图;
图4示出了在图3中点击“我要发布友链”按钮后弹出的界面示意图;
图5示出了包含“我要交换”按钮的界面示意图;
图6示出了在图5中点击“我要交换”按钮后弹出的界面示意图;以及
图7示出了本发明提供的网站链接交换装置的结构示意图;
图8示出了用于执行本发明的方法的电子设备的框图;以及
图9示出了用于保持或者携带实现根据本发明的方法的程序代码的存储单元示意图。
具体实施方式
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。
本发明实施例提供了一种网站链接交换方法及装置,能够解决现有技术中由双方网站管理员自行沟通链接交换细节并人工执行链接交换时所导致的反复沟通的问题以及彼此不信任的问题。
图1示出了本发明实施例提供的网站链接交换方法的流程图。如图1所示,该方法包括如下步骤:
步骤S110:获取并显示希望进行链接交换的第一网站信息,其中,该第一网站的源码中包含链接交换控制代码。
上述链接交换控制代码用于在后续步骤中实现链接交换。可选地,该链接 交换控制代码为链接交换脚本代码。
步骤S120:获取希望与第一网站进行链接交换的第二网站信息及链接交换请求信息,并将链接交换请求信息发送至第一网站,其中,该第二网站的源码中包含链接交换控制代码。
可选地,上述链接交换请求信息中包含链接交换时所需的以下至少一项信息:链接在对方网站上的显示标识,该显示标识包括:文字标识、图片标识或自定义标识;链接在对方网站上的显示样式,该显示样式包括:显示颜色和/或显示大小;链接交换时间。
步骤S130:在第一网站同意进行链接交换后,在第一网站与第二网站之间建立链接交换对应关系。
通过该链接交换对应关系可以看出,第一网站的合作网站包括第二网站,且第二网站的合作网站包括第一网站。这里所说的合作网站是指与某一网站达成相互交换链接的合作意向的网站。另外,该链接交换对应关系既可以通过列表的方式来建立,也可以通过其他方式来建立。
步骤S140:根据上述链接交换对应关系,执行上述链接交换控制代码,在第一网站中显示第二网站的链接,在第二网站中显示第一网站的链接。
可选地,步骤S140具体通过如下方式实现:当上述第一网站被访问时,根据上述链接交换对应关系,确定与其进行链接交换的第二网站,生成第二网站的链接信息并输出至第一网站上;当第二网站被访问时,根据上述链接交换对应关系,确定与其进行链接交换的第一网站,生成第一网站的链接信息并输出至第二网站上。
通过本发明实施例提供的网站链接交换方法,能够省去双方管理员反复沟通的环节,节约大量的时间和精力;另外,由于链接交换过程是由上述链接交换控制代码自动完成的,因此能够在双方网站上同时添加对方的链接,从而确保公平性,杜绝了人工添加链接时所导致的信任问题(例如一方未能如约添加对方的链接,或是添加对方的链接后又偷偷去掉等问题)。
下面结合一个具体实施例详细描述一下本发明提供的网站链接交换方法。在该具体实施例中是基于一个交换平台来实现上述的网站链接交换方法的。该交换平台也可以称作友链交换平台,其中,友链是指:达成相互交换链接的合作意向的网站所对应的链接,又叫友情链接。
图2示出了该具体实施例的方法流程图。如图2所示,该具体实施例提供的网站链接交换方法包括如下步骤:
步骤S210:获取并显示希望进行链接交换的A网站信息。
其中,A网站主要是指希望通过该交换平台进行链接交换的网站。图3示出 了该交换平台的一种界面示意图。A网站的管理员点击界面右上方的“我要发布友链”按钮后,则会弹出图4所示的界面。该交换平台通过图4所示的界面来获取管理员录入的A网站信息。如图4所示,该A网站信息包括:网站域名、网站类型、以及网站名称。当然,本领域技术人员还可以根据实际需求增加或减少A网站信息所包含的内容,本发明对此不作限定。例如,网站名称中的输入内容也就是A网站在合作网站上所显示的名称,除了图4所示的文字形式的网站名称之外,还可以输入图片形式或其他自定义形式的网站标识,以改善A网站在合作网站上的显示效果。另外,在图4所示的界面中还包含默认输入的友链代码。该友链代码即为上文提到的链接交换控制代码。其中,该链接交换控制代码是由交换平台自动生成的,用于在后续的链接交换过程中自动实现链接交换。当图4中的“发布”按钮被点击后,友链平台获取并显示上述的A网站信息,并且,在A网站的网站源码中自动插入上述的链接交换控制代码。
另外,由于希望通过该交换平台进行链接交换的网站往往很多,因此,还可以通过步骤S210中的方式来获取其他网站(例如步骤S220中的B网站,以及一些其他的网站,例如C网站、D网站等的网站信息,其中,B网站、C网站、D网站等的网站的源码中也都包含上述的链接交换控制代码)。并且,该交换平台能够将所有获取到网站信息的网站全部显示出来(所有获取到网站信息的网站源码中都包含上述的链接交换控制代码),以帮助这些网站寻找合适的合作网站。具体地,为了便于查找,该交换平台还能够根据不同的分类来显示获取到网站信息的网站:例如,可以根据PR值(网页级别PageRank,简称PR)的大小、网站类型来显示对应的网站。
步骤S220:获取希望与A网站进行链接交换的B网站信息及链接交换请求信息,并将链接交换请求信息发送至A网站,其中,该B网站的源码中包含链接交换控制代码。
其中,获取希望与A网站进行链接交换的B网站信息以及在B网站的源码中插入链接交换控制代码的方式可参照步骤S210来实现,此处不再赘述。
在本步骤中,B网站的管理员在该交换平台所显示的众多网站信息中查找到A网站的信息,认为A网站的PR值和/或网络类型等信息都符合B网站的合作要求,因而,B网站的管理员通过点击图5所示的A网站信息右侧的“我要交换”按钮来生成上述的链接交换请求信息。当“我要交换”按钮被点击后弹出图6所示的链接交换请求信息生成界面。如图6所示,该链接交换请求信息中首先包含A网站的域名信息(www.9867.org),交换平台根据该域名信息将链接交换请求信息转发至A网站。其次,该链接交换请求信息中还包含用于设置B网站链接在A网站上的显示方式的信息以及链接交换时间信息。例如,图6中的“选择 网站”输入框能够确认输入B网站的域名信息,“网站名称”输入框能够输入B网站链接在A网站上的文字显示标识。除此之外,为了提高用户体验,在本发明其他实施例中,还可以进一步在链接交换请求信息中设置其他类型的显示标识,例如图片显示标识或自定义显示标识,这样一来,B网站链接在A网站上的显示标识不仅可以为文字,还可以为图片或其他自定义方式,从而能够提高B网站访客的体验满意度。另外,还可以进一步在链接交换请求信息中设置B网站链接在A网站上的显示样式,例如显示颜色和/或显示大小等,从而能够使B网站链接在A网站上的显示样式与B网站的整体风格一致,从而进一步提高B网站访客的体验满意度。
步骤S230:在A网站同意进行链接交换后,在A网站与B网站之间建立链接交换对应关系。
A网站收到上述的链接交换请求信息后,其管理员通过查看B网站的网站内容、PR值等方式,来决定是否与B网站交换链接。如果A网站同意与B网站交换链接,则会向该交换平台返回同意消息,由交换平台根据该同意消息在A网站与B网站之间建立链接交换对应关系,并继续执行后续步骤S240。如果A网站不同意与B网站交换链接,则会向该交换平台返回拒绝消息,至此该方法结束。另外,交换平台可以将上述的同意消息或拒绝消息转发给B网站,以使B网站的管理员知晓结果。
步骤S240:根据步骤S230中的链接交换对应关系,执行上述链接交换控制代码,在A网站中显示B网站的链接,在B网站中显示A网站的链接。
由于在本实施例中,仅以A网站与B网站之间建立链接交换为例进行说明。因此,此处的链接交换对应关系即为:B-A以及A-B。具体地,当A网站被访问时,自动执行A网站源码中所包含的链接交换控制代码,根据上述链接交换对应关系,确定与A网站进行链接交换的网站为B网站,进而生成B网站的链接信息并输出至A网站上;当B网站被访问时,自动执行B网站源码中所包含的链接交换控制代码,根据上述链接交换对应关系,确定与其进行链接交换的网站为A网站,进而生成A网站的链接信息并输出至B网站上。由此可见,步骤S240是一个多次执行的步骤,只要A网站或B网站被访问,就会执行步骤S240。
其中,在A网站源码中所包含的链接交换控制代码以及在B网站源码中所包含的链接交换控制代码均为链接交换脚本代码。并且,该链接交换脚本代码是由链接交换控制服务器(用于管理该交换平台的服务器)根据步骤S230中的链接交换对应关系及网站信息动态生成的。例如,假设A网站上插入的链接交换控制代码为“<script type=″text/javascript″src=″http://links.webscan.360.cn″></script>”,其中, type=″text/javascript″表示该链接交换控制代码是由javascript脚本生成的文本型控制代码,src=″http://links.webscan.360.cn″用以表示该链接交换控制代码的源服务器地址。每当A网站被访问时,A网站源码中的上述链接交换控制代码“<script type=″text/javascript″src=″http://links.webscan.360.cn″></script>”就会自动执行。在执行该控制代码的过程中,由该控制代码自动请求源服务器地址″http://links.webscan.360.cn″。该源服务器即为链接交换控制服务器。链接交换控制服务器收到来自链接交换控制代码的请求消息后,首先,根据该请求消息中包含的标识信息确定该请求消息的来源,即发送该请求消息的链接交换控制代码所在的网站(即A网站);然后,查询步骤S230中的链接交换对应关系,确定出与A网站对应的网站为B网站;最后,该链接交换控制服务器生成并输出B网站链接所对应的脚本代码:如用javascript脚本编写的document.write(‘<a href=”http://360.cn”>360官网</a>’)代码,将此javascript代码插入到A网站上,使A网站在加载时自动展示B网站的链接。其中,链接交换控制服务器在A网站源码上生成并输出B网站链接所对应的脚本代码时,需要进一步判断A网站源码的编码格式(例如javascript格式等),然后将B网站链接所对应的脚本代码通过与A网站源码的编码格式一致的编码方式输出到A网站的对应位置上。
同理,每当B网站被访问时,B网站源码中的链接交换控制代码也会自动执行,在执行该控制代码的过程中,B网站的控制代码也会自动请求源服务器地址,即链接交换控制服务器地址。链接交换控制服务器收到来自链接交换控制代码的请求消息后,首先,根据该请求消息中包含的标识信息确定发送该请求消息的链接交换控制代码所在的网站(即B网站);然后,查询步骤S230中的链接交换对应关系,确定出与B网站对应的网站为A网站;最后,该链接交换控制服务器生成并输出A网站链接所对应的脚本代码,将此脚本代码插入到B网站上后,B网站加载时就会自动展示A网站的链接。
通过上述步骤S210至步骤S240,就实现了本发明中的网站链接交换方法。在该方法中,能够根据链接交换控制代码的请求,由链接交换控制服务器自动加载友链(即合作网站的链接),由此达到了省时高效的效果。
另外,在本实施例中,为了描述方便,仅以A网站与B网站之间建立链接交换为例进行了说明。但是,由于希望通过交换平台进行链接交换的网站非常多,因此,实际情况中可能更为复杂。例如,在本发明其他的实施例中,在步骤S230中,B网站除了向A网站发送链接交换请求信息之外,还同时向C网站、D网站和E网站发送了链接交换请求信息。之后,B网站收到了来自A网站、C网站和D网 站的同意消息,以及来自E网站的拒绝消息。因此,交换平台据此建立的链接交换对应关系为B-A,B-C,B-D。另外,A网站除了收到了来自B网站的链接交换请求信息之外,还同时收到了来自C网站、D网站和E网站的链接交换请求信息。之后,A网站向B网站和D网站发送了同意消息,并向C网站和E网站发送了拒绝消息。因此,交换平台据此建立的链接交换对应关系为A-B,A-D。为了便于查询,交换平台可以通过一个链接交换列表来存储上述的各个链接交换对应关系。在该链接交换列表中,除了存储有与A网站和B网站相关的链接交换对应关系之外,还存储有其他各个网站的链接交换对应关系。与之相应的,在步骤S240中,根据该链接交换列表,执行上述链接交换控制代码时,在A网站中同时显示B网站、D网站的链接,在B网站中同时显示A网站、C网站和D网站的链接。例如,每当A网站被访问时,A网站源码中的链接交换控制代码自动执行并请求源服务器地址,即链接交换控制服务器地址。链接交换控制服务器根据请求消息确定发送该请求消息的链接交换控制代码所在的网站(即A网站);然后,查询链接交换列表,确定出与A网站对应的网站为B网站和D网站;因此,该链接交换控制服务器生成并输出B网站和D网站所对应的脚本代码,将此脚本代码插入到A网站上,使A网站加载时自动展示B网站和D网站的链接。
可选地,该实施例还可以进一步包括撤销步骤:接收A网站与B网站之间的链接交换对应关系撤销请求,并根据该撤销请求更新上述链接交换对应关系。其中,该链接交换对应关系撤销请求可以由A网站或B网站中的任一网站发出。假设该链接交换对应关系撤销请求由A网站发出,交换平台收到该撤销请求后,不仅会在链接交换对应关系中修改A网站所对应的网站(将B网站从A网站的对应网站中删除),同时也会在链接交换对应关系中修改B网站所对应的网站(将A网站从B网站的对应网站中删除)。在执行撤销步骤之后,当A网站或B网站再次被访问时,步骤S240再次执行,但是,再次执行步骤S240的过程中,由于链接交换对应关系已经被修改,因此,将根据修改后的链接交换对应关系来执行,因而能够及时地达到同时在双方网站上删除对方网站链接的目的。
综上所述,由于在本发明提供的网站链接交换方法中,由交换平台将希望交换链接的网站全部展示出来并提供了便于交换链接的通信接口,因此,省去了各个网站管理员私下反复沟通的交流成本,节约了大量的时间和精力。另外,由于双方网站达成合作意向之后,由交换平台中的链接交换控制服务器来管理合作关系(即链接交换对应关系),并由链接交换控制服务器在网站每次被访问时自动插入与其合作的网站链接,由此避免了人工方式中所存在的彼此不信任等问题,彻底杜绝了某一方未能如约插入对方网站链接或偷偷删除对方网站链接的风险。
另外,即使某一网站的管理员能够通过技术手段偷偷地将链接交换控制服务器插入在其网站源码上的合作网站链接删除,本发明中的链接交换控制服务器还可以采取定期检测的方式来检测到这种偷偷删除的行为,从而根据该行为在链接交换对应关系中同时解除该网站与被删除网站之间的对应关系,由此实现公平。并且,还可以对出现这种偷偷删除的违约行为的网站给予一定的惩罚措施。
图7示出了本发明提供的网站链接交换装置的结构示意图。如图7所示,该网站链接交换装置700包括:获取模块71、发送模块72、建立模块73和交换模块74。
获取模块71用于获取并显示希望进行链接交换的第一网站信息,其中,该第一网站的源码中包含链接交换控制代码。
发送模块72用于获取希望与第一网站进行链接交换的第二网站信息及链接交换请求信息,并将链接交换请求信息发送至第一网站,其中,该第二网站的源码中包含链接交换控制代码。其中,链接交换请求信息中包含链接交换时所需的以下至少一项信息:链接在对方网站上的显示标识,该显示标识包括:文字标识、图片标识或自定义标识;链接在对方网站上的显示样式,该显示样式包括:显示颜色和/或显示大小;链接交换时间。
建立模块73用于在第一网站同意进行链接交换后,在第一网站与第二网站之间建立链接交换对应关系。通过该链接交换对应关系可以看出,第一网站的合作网站包括第二网站,且第二网站的合作网站包括第一网站。这里所说的合作网站是指与某一网站达成相互交换链接的合作意向的网站。另外,该链接交换对应关系既可以通过列表的方式来建立,也可以通过其他方式来建立。
交换模块74用于根据上述链接交换对应关系,执行链接交换控制代码,在第一网站中显示第二网站的链接,在第二网站中显示第一网站的链接。可选地,交换模块74进一步包括:第一交换模块741,用于当第一网站被访问时,根据链接交换对应关系,确定与其进行链接交换的第二网站,生成第二网站的链接信息并输出至第一网站上;第二交换模块742,用于当第二网站被访问时,根据链接交换对应关系,确定与其进行链接交换的第一网站,生成第一网站的链接信息并输出至第二网站上。
上述链接交换控制代码为链接交换脚本代码,所述链接交换脚本代码由链接交换控制服务器根据所述链接交换对应关系及网站信息动态生成。
可选地,所述建立模块73进一步用于:接收第一网站与第二网站之间的链接交换对应关系撤销请求,并根据该撤销请求更新上述链接交换对应关系。
关于上述各个模块的具体工作原理可参照方法实施例中的各个步骤的描 述,此处不再赘述。
在本发明提供的网站链接交换方法及装置中,首先,在希望进行链接交换的第一网站和第二网站的网站源码中分别添加链接交换控制代码;然后,当第一网站同意与第二网站进行链接交换时,在第一网站与第二网站之间建立链接交换对应关系;最后,根据该链接交换对应关系,执行上述的链接交换控制代码,从而在第一网站中显示第二网站的链接,在第二网站中显示第一网站的链接,以此实现链接交换。由此可见,在本发明提供的网站链接交换方法及装置中,为希望交换链接的网站提供了一个链接交换平台,希望通过该平台进行链接交换的网站预先在其网站源码中添加链接交换控制代码。由此,希望通过该平台进行链接交换的网站只需向其意向中的合作网站发布链接交换请求,就可以在收到合作网站的确认消息后,由上述链接交换控制代码自动完成链接交换。由此可见,该交换方法及装置至少具有如下有益效果:首先,省去了双方管理员反复沟通的环节,节约了大量的时间和精力;其次,由于链接交换过程是由上述链接交换控制代码自动完成的,因此能够在双方网站上同时添加对方的链接,从而确保公平性,杜绝了人工添加链接时所导致的信任问题(例如一方未能如约添加对方的链接,或是添加对方的链接后又偷偷去掉等问题)。
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实 施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
例如,图8示出了可以实现本发明的网站链接交换方法的电子设备。该电子设备传统上包括处理器810和以存储器820形式的计算机程序产品或者计算机可读介质。存储器820可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器820具有用于执行上述方法中的任何方法步骤的程序代码831的存储空间830。例如,用于程序代码的存储空间830可以包括分别用于实现上面的方法中的各种步骤的各个程序代码831。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图9所述的便携式或者固定存储单元。该存储单元可以具有与图8的电子设备中的存储器820类似布置的存储段或者存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括用于执行根据本发明的方法步骤的程序831’,即可以由例如诸如810之类的处理器读取的代码,这些代码当由电子设备运行时,导致该电子设备执行上面所描述的方法中的各个步骤。
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例” 意味着,结合实施例描述的特定特征、结构或者特性包括在本发明的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下被实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。
此外,还应当注意,本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本发明的主题而选择的。因此,在不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。对于本发明的范围,对本发明所做的公开是说明性的,而非限制性的,本发明的范围由所附权利要求书限定。

Claims (12)

  1. 一种网站链接交换方法,包括以下步骤:
    获取并显示希望进行链接交换的第一网站信息,其中,所述第一网站的源码中包含链接交换控制代码;
    获取希望与第一网站进行链接交换的第二网站信息及链接交换请求信息,并将链接交换请求信息发送至第一网站,其中,所述第二网站的源码中包含链接交换控制代码;
    在第一网站同意进行链接交换后,在第一网站与第二网站之间建立链接交换对应关系;
    根据所述链接交换对应关系,执行所述链接交换控制代码,在所述第一网站中显示所述第二网站的链接,在所述第二网站中显示所述第一网站的链接。
  2. 如权利要求1所述的方法,其中,根据所述链接交换对应关系,执行所述链接交换控制代码,在所述第一网站中显示所述第二网站的链接,在所述第二网站中显示所述第一网站的链接的步骤进一步包括:
    当所述第一网站被访问时,根据所述链接交换对应关系,确定与其进行链接交换的所述第二网站,生成所述第二网站的链接信息并输出至所述第一网站上;
    当所述第二网站被访问时,根据所述链接交换对应关系,确定与其进行链接交换的所述第一网站,生成所述第一网站的链接信息并输出至所述第二网站上。
  3. 如权利要求1或2所述的方法,其中,进一步包括步骤:
    接收所述第一网站与所述第二网站之间的链接交换对应关系撤销请求,并根据所述撤销请求更新所述链接交换对应关系。
  4. 如权利要求1-3任一所述的方法,其中,所述链接交换请求信息中包含链接交换时所需的以下至少一项信息:
    链接在对方网站上的显示标识,所述显示标识包括:文字标识、图片标识或自定义标识;
    链接在对方网站上的显示样式,所述显示样式包括:显示颜色和/或显示大小;
    链接交换时间。
  5. 如权利要求1-4任一所述的方法,其中,所述链接交换控制代码为链接交换脚本代码,所述链接交换脚本代码由链接交换控制服务器根据所述链接交换对应关系及网站信息动态生成。
  6. 一种网站链接交换装置,包括:
    获取模块,适于获取并显示希望进行链接交换的第一网站信息,其中,所述第一网站的源码中包含链接交换控制代码;
    发送模块,适于获取希望与第一网站进行链接交换的第二网站信息及链接交换请求信息,并将链接交换请求信息发送至第一网站,其中,所述第二网站的源码中包含链接交换控制代码;
    建立模块,适于在第一网站同意进行链接交换后,在第一网站与第二网站之间建立链接交换对应关系;
    交换模块,适于根据所述链接交换对应关系,执行所述链接交换控制代码,在所述第一网站中显示所述第二网站的链接,在所述第二网站中显示所述第一网站的链接。
  7. 如权利要求6所述的装置,其中,所述交换模块进一步包括:
    第一交换模块,适于当所述第一网站被访问时,根据所述链接交换对应关系,确定与其进行链接交换的所述第二网站,生成所述第二网站的链接信息并输出至所述第一网站上;
    第二交换模块,适于当所述第二网站被访问时,根据所述链接交换对应关系,确定与其进行链接交换的所述第一网站,生成所述第一网站的链接信息并输出至所述第二网站上。
  8. 如权利要求6或7所述的装置,其中,所述建立模块进一步适于:接收所述第一网站与所述第二网站之间的链接交换对应关系撤销请求,并根据所述撤销请求更新所述链接交换对应关系。
  9. 如权利要求6-8任一所述的装置,其中,所述链接交换请求信息中包含链接交换时所需的以下至少一项信息:
    链接在对方网站上的显示标识,所述显示标识包括:文字标识、图片标识或自定义标识;
    链接在对方网站上的显示样式,所述显示样式包括:显示颜色和/或显示大小;
    链接交换时间。
  10. 如权利要求6-9任一所述的装置,其中,所述链接交换控制代码为链接交换脚本代码,所述链接交换脚本代码由链接交换控制服务器根据所述链接交换对应关系及网站信息动态生成。
  11. 一种计算机程序,包括计算机可读代码,当电子设备运行所述计算机可读代码运行时,导致权利要求1-5中的任一项权利要求所述的网站链接交换方法被执行。
  12. 一种计算机可读介质,其中存储了如权利要求11所述的计算机程序。
PCT/CN2014/095945 2014-06-25 2014-12-31 网站链接交换方法及装置 Ceased WO2015196776A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410290910.8 2014-06-25
CN201410290910.8A CN104079642B (zh) 2014-06-25 2014-06-25 网站链接交换方法及装置

Publications (1)

Publication Number Publication Date
WO2015196776A1 true WO2015196776A1 (zh) 2015-12-30

Family

ID=51600682

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/095945 Ceased WO2015196776A1 (zh) 2014-06-25 2014-12-31 网站链接交换方法及装置

Country Status (2)

Country Link
CN (1) CN104079642B (zh)
WO (1) WO2015196776A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105721619B (zh) * 2014-06-25 2019-05-24 北京奇虎科技有限公司 网站链接交换方法及装置
CN104079642B (zh) * 2014-06-25 2016-06-08 北京奇虎科技有限公司 网站链接交换方法及装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101394414A (zh) * 2007-09-17 2009-03-25 杨云国 开放式网页链接广告发布及评价的方法
US7996259B1 (en) * 2000-06-07 2011-08-09 Perfect Web Technologies, Inc. Method for developing electronic documents providing e-commerce tools
CN104079642A (zh) * 2014-06-25 2014-10-01 北京奇虎科技有限公司 网站链接交换方法及装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101520799A (zh) * 2009-03-31 2009-09-02 袁焕轩 一种实现互联网高效信息交换的系统
CN102487360A (zh) * 2010-12-03 2012-06-06 谢宗和 可携式线上即时互动系统
CN102169561A (zh) * 2011-04-07 2011-08-31 姜华 一种根据用户间的关联性展示信息的方法

Patent Citations (3)

* 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
CN101394414A (zh) * 2007-09-17 2009-03-25 杨云国 开放式网页链接广告发布及评价的方法
CN104079642A (zh) * 2014-06-25 2014-10-01 北京奇虎科技有限公司 网站链接交换方法及装置

Also Published As

Publication number Publication date
CN104079642A (zh) 2014-10-01
CN104079642B (zh) 2016-06-08

Similar Documents

Publication Publication Date Title
TWI387933B (zh) 用於安全模組間通訊機制之方法及裝置
CN106933871B (zh) 短链接处理方法、装置及短链接服务器
CN107390994B (zh) 界面呈现方法和装置
CN104348919B (zh) 进行文件下载的方法、装置和浏览器
CN106254325B (zh) 网站认证信息的显示方法及浏览器
CN106528432A (zh) 测试场景数据的构建方法及装置、埋点测试方法
CN107239701B (zh) 识别恶意网站的方法及装置
CN110851818B (zh) 验证码展示方法、装置、计算机设备和可读存储介质
US9245028B2 (en) System and method to identify machine-readable codes
WO2016155379A1 (zh) 动态获取app界面控件数据的方法、设备以及系统
CN103617267A (zh) 社交化扩展搜索方法及装置、系统
CN106973075A (zh) 分享评论方法及系统、域名转码方法、客户端以及服务器
CN102857530B (zh) 一种上传图片的方法及系统
CN104462500B (zh) 控件活跃度的确定方法、控件处理方法及装置
US9002936B2 (en) Metanodes for open graph protocols
CN103001934B (zh) 终端应用登录的方法和系统
CN104932910A (zh) 应用程序接口扩展的方法及系统
CN103269370A (zh) 浏览器扩展推荐的显示方法、客户端、服务器及系统
CN106682014B (zh) 游戏展示数据的生成方法和装置
CN111352993B (zh) 一种跨平台数据同步方法及装置、电子设备
CN107046527B (zh) Web漏洞扫描方法、装置及系统
CN110874433B (zh) 信息处理方法及其系统、计算机系统及计算机可读介质
CN104079642B (zh) 网站链接交换方法及装置
TWI505100B (zh) 在區域網路中進行資料分享與數據同步的方法
WO2016197884A1 (zh) 基于身份的数据处理方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14895498

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14895498

Country of ref document: EP

Kind code of ref document: A1