404错误 - Google尝试对ColdFusion CFC建立索引 [英] 404 error - Google attempting to index ColdFusion CFC

查看:202
本文介绍了404错误 - Google尝试对ColdFusion CFC建立索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几个月来,我们的IIS / ColdFusion服务器在Google抓取工具扫描期间发生404错误。通常很容易跟踪这些,但在这种情况下,Google正在尝试扫描我们的CFC文件。这些文件确实存在,但它们不会公开到Internet - 只显示给ColdFusion服务器。但是,Google在我们网站上的某个地方看到了CFC的链接,并尝试关注它们。

For months, our IIS/ColdFusion server has been throwing 404 errors during Google crawler scans. Normally it's easy to track these down but in this case, Google is trying to scan our CFC files. The files do exist, but they are not exposed to the Internet - only to the ColdFusion server. Nevertheless, Google is seeing links to the CFCs somewhere on our site and is trying to follow them.

下面是404的一个中转储我们的CGI结构。 baseCFC 是一个CF映射到 D:\Domains\ [domain] \cfc 。在我们的源代码中对 baseCFC 的所有引用均位于< cfajaxproxy> 标记中,或 CreateObject()在Application.CFC中调用(下面的示例)。

Below is a dump of our CGI structure during one of the 404's. baseCFC is a CF Mapping to D:\Domains\[domain]\cfc. All references to baseCFC in our source code are either in a <cfajaxproxy> tag, or a CreateObject() call in Application.CFC (examples below).

也许这是一个重要的线索: baseCFC 是指 D:\Domains \ [domain] \cfc ,但Google尝试到达 D :\Domains \ [domain] \www\baseCFC ,这是我们网站的主目录。显然,Google将 baseCFC 视为服务器上的正常(未映射)目录,并想要扫描它。

Perhaps this is an important clue: baseCFC refers to D:\Domains\[domain]\cfc, but Google is trying to reach D:\Domains\[domain]\www\baseCFC, which is our site's home directory. Apparently Google sees baseCFC as a normal (unmapped) directory on the server and wants to scan it.

下面是我们代码中两种类型的 baseCFC 引用的示例:

Here are examples of the two types of baseCFC references in our code:

< cfajaxproxy>:

<cfajaxproxy>:

<cfajaxproxy cfc="baseCFC.Misc" jsclassname="ajxMisc">

CreateObject():

CreateObject():

<cfscript>
  request.Misc = CreateObject( "component", "baseCFC.Misc" );
</cfscript>

我们如何解决这些CFC相关的404错误?

How do we troubleshoot these CFC-related 404 errors? Thank you!

推荐答案

cfajaxproxy 创建的JavaScript包含参考文献:查看你的页面的源代码你应该能够找到字符串'/ baseCFC / Statement.cfc'

The javascript created by cfajaxproxy includes the location of the cfc. Viewing the source of your page you should be able to find the string '/baseCFC/Statement.cfc'. That is how Google is finding them.

让Google忽略这些问题的快速方法是修改您的 robots.txt 文件以排除 baseCFC 目录。

A quick way to get Google to ignore them is to modify your robots.txt file to exclude the baseCFC "directory".

User-Agent: *
Disallow: /baseCFC/

这篇关于404错误 - Google尝试对ColdFusion CFC建立索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆