目前,我们正在使用 Kentico CMS 作为网站,我们曾经有一个名为 pages/page1.aspx 的页面。我们删除了该页面,但每天 google、bing 和 yahoo sarch 机器人都会尝试阅读该页面。因为页面不存在,CMS 会抛出以下错误(在日志中)
Event URL: /pages/page1.aspx
URL referrer:
User agent: Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)
Message: The file '/pages/page1.aspx' does not exist.
Stack Trace:
at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
// and the rest of the stacktrace
当我们收到太多这些错误时,整个站点就会崩溃(必须清除 .Net 临时文件并重新启动应用程序池)。基本上我可以转到一个不存在的页面,多次点击刷新并关闭该站点。非常糟糕。但是,首先,我怎样才能让机器人不尝试访问此页面?
提前致谢。