Dong Jingyi: Maintaining a link group with a remote read txt text method

Source: Internet
Author: User

We all know that outside the chain is important for SEO, actually do seo, to the last spell are linked resources, and not what other technology, SEO novice due to lack of resources, mainly outside the chain of resources, so restricting the effect, and SEO veteran, often through the accumulation of time, hand has a large number of high-quality outside the chain of resources, General SEO veteran have their own at least dozens of high-quality sites for their own want to optimize the new station to provide link support, so in the initial stage of optimization, SEO veteran generally do not need to worry about the link. For example, moving network marketing, itself running more than 20 high-quality Web sites, through these own links, new sites can be included for a short time and get sufficient link support.

In the form of the outside chain, the best effect of the home Ming chain, usually in the form of links to show, if you are specialized in SEO, then you will certainly have their own site groups to optimize the site to provide links, the maintenance of the site links to the workload is very large, for example, when you want to provide links to the 50th site , you need to manually add a 50th website link in the first 49 sites, if the number of sites more, then this workload will be increased geometrically.

In fact, we can read txt text by remote way to maintain a large number of links on these sites, so that you can save a lot of work to improve the efficiency of SEO, only need to add the code on the site once, you can maintain a fixed txt text to maintain the links on these sites, Instantly the new site links appear on dozens of sites, if your site is particularly many, links are particularly many, you can also consider grouping for these links, each txt text for a group, recommended not more than 50 sites. The only thing to note is that the TXT link text URL must be kept stable, the space must be stable, otherwise it will affect all sites. Here recommend a stable speed of space, Baidu search "Move Network Marketing", independent IP space is very suitable for SEO.

PHP remote read txt text code:

<? Php

$file _name= "Http://www.***.com/url/1.txt";

$i = 1;

$FP =fopen ($file _name, ' R ');

while (!feof ($FP))

{

$buffer =fgets ($fp, 4096);

echo $buffer. " ";

$i = $i +1;

}

Fclose ($FP);

? >

ASP remote read txt text code:

<%

Function Posthttppage (Loginacturl,postdata)

Dim xmlHttp

Dim Retstr

Set xmlHttp = CreateObject ("Microsoft.XMLHTTP")

Xmlhttp.open "POST", Loginacturl, False

Xmlhttp.setrequestheader "Content-length", Len (PostData)

Xmlhttp.setrequestheader "Content-type", "application/x-www-form-urlencoded"

Xmlhttp.send PostData

If err.number <> 0 Then

Set xmlhttp=nothing

Response. Write ("ERR:" &postdata)

Exit Function

End If

Posthttppage=bytestobstr (Xmlhttp.responsebody, "GB2312")

Set xmlHttp = Nothing

End Function

Function Bytestobstr (Body,code)

Dim objstream

Set objstream = Server.CreateObject ("ADODB.stream")

Objstream. Type = 1

Objstream. Mode =3

Objstream. Open

Objstream. Write body

Objstream. Position = 0

Objstream. Type = 2

Objstream. Charset =code

Bytestobstr = objstream. ReadText

Objstream. Close

Set objstream = Nothing

End Function

% >

<%= posthttppage ("Http://www.***.com/url/1.txt", "")% >

Inside the Http://www.***.com/url/1.txt modify the address for your TXT link text to be stored.

qq:543646 (China move not move) Dong Jingyi personal blog: http://www.djycn.com



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.