棋子 发表于 2007-8-8 14:06:56

Yahoo back link checker

Yahoo back link checker


Here is a very simple script which you can tweak or modify to make it more complicated. This script will check how many back link a certain site or domain have in yahoo.

Here is the sample output of the script www.tips1001.com/tools/yahoobl.php?url=tips1001.com

You can create a form instead and replace the $_GET to $_POST from the script.

Here is the code

<?php

$url=$_GET;

if ($url == ""){
echo "Site url is required";
exit;
}

$domain=trim($url);
$path ="http://search.yahoo.com/search?p=linkdomain%3A"

.$domain."&ei=UTF-8&fr=fp-tab-web-t&cop=mss&tab=";

$data = strtolower(implode(" ",file($path)));
$data = strip_tags($data);

$reg = "/of about (.*?) from/";
$page = ereg_replace("\n", "", $data);
preg_match_all($reg, $page, $matches);

if(count($matches)==0){
echo "No back link found for the site/domain $domain";
}
else{
$backlink = $matches;
echo "Total yahoo back link of <b>$domain</b> is <b>$backlink</b>";
}

?>
页: [1]
查看完整版本: Yahoo back link checker