Tag Archive: seo


How to get Google page rank programming in code (C#, PHP)

Introduction

Google’s Page Rank (PR) is a “link analysis algorithm measuring the relative importance” (PR @wikipedia). The importance of PR nowadays is a lot lower, than one or two years ago. Never the less, PR is the only Ranking value, that is public to all audience, which means it’s the only factor with some transparency. For those, who don’t know: a PR of 10 is the highest around (like apple.com) and 0 the lowest – those sites, who don’t even have a PR of 0 are in a kind of sandbox (a special filter to punish the site) or not indexed by Google.

Background

Google tries to measure the relevance of a domain/site by counting the links pointing to the site/domain. This is influenced by the number of links, that link to the linking site – in fact this kind of procedure is an iterative process, which needs a lot computing power.

Many webmasters believe, their ranking depends on the PR of their site – this, today, is not true. PR never was the only factor for Google’s ranking, but it was the most important factor. Right now, it’s not. And many people believe, that Google tries to get rid of the Rage Rank, because link traders are measuring the value (in $) of a link by PR – which is just stupid.

If you’re interested in buying links, go with following factors:

  • Link popularity (how often is the site, you’re willing to buy a link from, linked?)
  • Domain popularity (^ + by different domains)
  • IP-Popularity (^ + on different IPs)
  • has the Domain an “authority status”?
  • Is the content of the domain relevant for your content?
  • Has this domain a good ranking for keywords you wanna rank good at?
  • How many outgoing links does this site have?

Because PR is the one and only factor, we can have a look at, it’s pretty nice to check it. And it’s even more nice, if we can do that on more than one Google Datacenter at the same time.

Requesting the PR

Well, the easy part it, how the PR get’s requested: it’s just a simple HTTP-Request, with a little problem in it: here’s the request for www.codeproject.com
//
http://toolbarqueries.google.com/search?client=navclient-auto&hl=en&ch=6771535612&ie=UTF-8&oe=UTF-8&features=Rank&q=info:http%3A%2F%2Fwww.codeproject.com%2F
//
Well, this seems to be easy, but there’s this little

ch=6771535612

which is a hash value, referencing the domain we want to get the PR for. This hashing algorithm was NOT developed by Google, it’s the perfect hashing algorithm by Bob Jenkins

After some folks ported the code to php, I tried to do a port to C# – and here we go.

C# Example Code

[code:c#]
using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.IO;
using System.Text.RegularExpressions;

namespace GooglePR
{

100个免费英文目录站(Top 100 Free General Directories)

100个免费英文目录站(Top 100 Free General Directories)

http://info.vilesilencer.com/top

Google Sitemap and BlogEngine.NET

There seem to be some confusion about the Google Sitemap support of BlogEngine.NET, so I thought I would elaborate on it. First of all, BlogEngine.NET has a build-in sitemap handler so you don’t need to write it yourself.

BlogEngine.NET comes with many build-in handlers such as:

  • microsumary.axd
  • sitemap.axd
  • syndication.axd
  • commentfeed.axd
  • opensearch.axd
  • rsd.axd

…and more not so interesting ones.

All the handlers are accessible by typing http://www.yourblog.com/handler.axd where handler can be any one of them. So, in order to see the generated Google Sitemap just type in http://www.yourblog.com/sitemap.axd in your browser. Here is mine.

Auto discovery

You can tell Google manually about the location of your sitemap file or you can put the URL in the robots.txt file. I recommend putting it in the robots.txt because then Yahoo, MSN, Ask and Google can find it. Yahoo, MSN and Ask also supports the Google Sitemap format.

Just add this line to your robots.txt file:

sitemap: http://www.yourblog.com/sitemap.axd

This line can be the only line in the robots.txt if you don’t want to provide more information to the robots and spiders.

各大搜索引擎网站登录入口

Google网站登录
Baidu 网站登录
Yahoo 网站登录
Live 网站登录
Dmoz 网站登录
Coodir网站目录登录
Alexa 网站登录
Sogou 非商业登录
中国搜索网站登录
iAsk 网站登录
搜索引擎收录查询
有道搜索网站登录
Accoona 网站登录
Onebigdirectory.com 搜索引擎批量提交
Chainer.com 搜索引擎批量提交
Freewebsubmission.com 搜索引擎批量提交

Powered by WordPress | Theme: Motion by 85ideas.