设置网站,百度蜘蛛,google bot能访问,普通用户不能访问

总有些原因,需要关站一段时间,那么怎么设置网站。百度google能访问,用户不能访问呢?

我设置了index.php为默认文档

<?php$useragent = strtolower($_SERVER['HTTP_USER_AGENT']);

if (strpos($useragent, ‘baiduspider’) || strpos($useragent, ‘googlebot’))
{ header(‘HTTP/1.1 301 Moved Permanently’); header(‘Location:index.html’);}

else{  exit;}

?>

这样 百度,google来的时候返回index.html

用户访问的时候,退出

我的第一个c#程序..

我的第一个c#程序..

内个啥,学学C#总会是有好处的

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

class Welcome{

static void Main()
{
Console.WriteLine("please write you name:");
Console.ReadLine();
Console.WriteLine("welcome!");
}
}