- 注册时间
- 2004-8-21
- 最后登录
- 1970-1-1
- 日志
- 阅读权限
- 10
|
发表于 2004-8-30 14:54:12
|
显示全部楼层
再贴
如果你想让各大搜索引擎可以自动找到您的网站 / 讨论区 / 讨论区?鹊奈恼
(也让他人在搜索引擎上找到您的网站 / 讨论区 / 讨论区?鹊奈恼拢
你可以使用以下的修正方法
打開 includes/functions.php
寻找
程代码:?>
之前加上
代码:function is_search_engine()
{
global $HTTP_SERVER_VARS;
$_this_agent = $HTTP_SERVER_VARS['HTTP_USER_AGENT'];
$search_engines = array(
// W3C HTML Validator:
"W3C_Validator/1.305.2.12 libwww-perl/5.64",
// W3C CSS Validator:
"Jigsaw/2.2.3 W3C_CSS_Validator_JFouffa/2.0",
// GoogleBot:
"Googlebot/2.1 (+http://www.googlebot.com/bot.html)",
// GID GZIP Test:
"GIDZipTest/1.2 (+ http://www.desilva.biz/gzip-test.php)"
);
foreach($search_engines as $search_engine)
{
if (!strcmp($_this_agent, $search_engine))
{
// Must be an engine... is in our list.
return true;
}
}
return false;
}
打开 includes/sessions.php
寻找
代码:function append_sid($url, $non_html_amp = false)
{
global $SID;
之后加上
代码: if (is_search_engine())
{
return $url;
}
最新的 Robot 名单(使用在 includes/functions.php 里面)
代码: $search_engines = array(
// W3C HTML Validator:
"W3C_Validator/1.305.2.12 libwww-perl/5.64",
// W3C CSS Validator:
"Jigsaw/2.2.3 W3C_CSS_Validator_JFouffa/2.0",
// W3C Link Checker:
"W3C-checklink/3.6.2.3 libwww-perl/5.64",
// Submit Express META TAG Analyzer:
"MetaTagRobot/1.6 (http://www.widexl.com/remote/search-engines/metatag-analyzer.html)",
// GoogleBot:
"Googlebot/2.1 (+http://www.googlebot.com/bot.html)",
"Googlebot-Image/1.0 (+http://www.googlebot.com/bot.html)",
// GID GZIP Test:
"GIDZipTest/1.2 (+ http://www.desilva.biz/gzip-test.php)",
// Alexa/Internet Archiver:
"ia_archiver",
"ia_archiver/1.6",
// Inktomi robot:
"Slurp/2.0 (slurp@inktomi.com; http://www.inktomi.com/slurp.html)",
"Slurp/2.0-KiteWeekly (slurp@inktomi.com; http://www.inktomi.com/slurp.html)",
"Slurp/si (slurp@inktomi.com; http://www.inktomi.com/slurp.html)",
// @nonymouse - WWW
"http://@nonymouse.com/ (Unix)",
"Fast Crawler Gold Edition",
"FAST Enterprise Crawler 6 (Experimental)",
"FAST FirstPage retriever (compatible; MSIE 5.5; Mozilla/4.0)",
"Fast PartnerSite Crawler",
"FastCrawler 3.0.1 (crawler@1klik.dk)",
"FAST-WebCrawler/2.2.6 (crawler@fast.no; http://www.fast.no/faq/faqfastwebsearch/faqfastwebcrawler.html)",
"FAST-WebCrawler/2.2.7 (crawler@fast.no; http://www.fast.no/faq/faqfastwebsearch/faqfastwebcrawler.html)",
"FAST-WebCrawler/2.2.8 (crawler@fast.no; http://www.fast.no/faq/faqfastwebsearch/faqfastwebcrawler.html)",
"FAST-WebCrawler/2.2.10 (Multimedia Search) (crawler@fast.no; http://www.fast.no/faq/faqfastwebsearch/faqfastwebcrawler.html)",
"FAST-WebCrawler/3.2 test",
"FAST-WebCrawler/3.3 (crawler@fast.no; http://fast.no/support.php?c=faqs/crawler)",
"FAST-WebCrawler/3.4/Nirvana (crawler@fast.no; http://fast.no/support.php?c=faqs/crawler)",
"FAST-WebCrawler/3.4/PartnerSite (crawler@fast.no; http://fast.no/support.php?c=faqs/crawler)",
"FAST-WebCrawler/3.5 (atw-crawler at fast dot no; http://fast.no/support.php?c=faqs/crawler)",
"FAST-WebCrawler/3.6 (atw-crawler at fast dot no; http://fast.no/support/crawler.asp)",
"FAST-WebCrawler/3.7 (atw-crawler at fast dot no; http://fast.no/support/crawler.asp)",
"FAST-WebCrawler/3.8 (atw-crawler at fast dot no; http://fast.no/support/crawler.asp) ",
"FAST-WebCrawler/3.8/Fresh (atw-crawler at fast dot no; http://fast.no/support/crawler.asp)",
"FAST-WebCrawler/3.6/FirstPage (crawler@fast.no; http://fast.no/support.php?c=faqs/crawler)",
"FAST-WebCrawler/3.7/FirstPage (atw-crawler at fast dot no;http://fast.no/support/crawler.asp)",
"FAST-WebCrawler/3.x Multimedia",
"FAST-WebCrawler/3.x Multimedia (mm dash crawler at fast dot no)",
"Overture-WebCrawler/3.8/Fresh (atw-crawler at fast dot no; http://fast.no/support/crawler.asp)",
"Scooter2_Mercator_x-x.0",
"Scrubby/2.x (http://www.scrubtheweb.com/)",
"Scooter/3.3_SF",
"Mozilla/5.0 (Slurp/cat; slurp@inktomi.com; http://www.inktomi.com/slurp.html)",
"Scooter/3.2.SF0",
"Mercator",
"Spider"
);
使用 Frame 的站长们,需要注意,搜索引擎的自动排版机器人(Indexing Robots)?K不喜欢使用 Frame 的网站。因此,要增加网站被找到的几率,?务必使用 META TAG 和 NOFRAME 在你的 Frame 首页中。
以下是个简单的例子:
代码:<html>
<head>
<title>网站</title>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<meta name="description" CONTENT="简单的网站描述"> (255 字元?燃纯桑
<meta name="keywords" CONTENT="关键字或詞汇"> (255 字元?燃纯桑
<meta name="copyright" content="Copyright 年份 网站版权所有人"> (不一定要加入)
<meta name="author" content="网站作者"> (不一定要加入)
<meta name="email" content="作者信箱"> (不一定要加入)
<meta name="Robots" content="INDEX,FOLLOW"> (不一定要加入,INDEX / NOINDEX 和 FOLLOW / NOFOLLOW)
<meta name="Revisit-after" content="机器人在几天後再次进入"> (不一定要加入)
</head>
<frameset framespacing="0" border="0" frameborder="0">
<noframes>
<body>
<H1>給看不到 Frame 的人或机器人看的?祟}</H1>
给看不到 Frame 的人或机器人看的?热菀
给看不到 Frame 的人或机器人看的?热荻
... 以此类推,不需給太多的?热荩避免使用 TABLE 和 IMG
给看不到 Frame 的机器人看的連結,如果使用 FOLLOW,机器人可以使用以下链接继续浏览和排版
<br><a href="网站?鹊木W?一">名稱一</a>
<br><a href="网站?鹊木W?二">名稱二</a>
... 以此类推,不需給太多的链接
You are viewing this page because your browser is incapable of displaying frames.
Please update your browser to see our site as it should be viewed.
</body>
</noframes>
<frame name="mainframe" src="真正需要浏览的网页"></frameset>
</html>
INDEX - 把网站和找到的网?加入搜索?ひ擎
NOINDEX - 不要把网站和找到的网?加入搜索引擎
FOLLOW - 继续進入 noframes 中提到的链接
NOFOLLOW - 不要继续進入 noframes 中提到的链接
站長??可以用 http://www.submitexpress.com/analyzer/
建入网站位置和随变一种 Robot,便可以检查首?是否 Robot-Friendly
作者:~Mac |
|