网络实验室

 找回密码
 注册账户
查看: 2019|回复: 0

Yahoo back link checker

[复制链接]
无心的棋子 发表于 2007-8-8 14:06:56 | 显示全部楼层 |阅读模式
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[url] to $_POST[url] from the script.

Here is the code

  1. <?php

  2. $url=$_GET[url];

  3. if ($url == ""){
  4. echo "Site url is required";
  5. exit;
  6. }

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

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

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

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

  15. if(count($matches[0])==0){
  16. echo "No back link found for the site/domain $domain";
  17. }
  18. else{
  19. $backlink = $matches[1][0];
  20. echo "Total yahoo back link of <b>$domain</b> is <b>$backlink</b>";
  21. }

  22. ?>
复制代码
您需要登录后才可以回帖 登录 | 注册账户

本版积分规则

黑屋|存档|手机|网络实验室 本站服务器由美国合租以及IDCLayer国际数据提供!!!

GMT+8, 2024-4-29 20:44 , Processed in 0.163024 second(s), 11 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表