不带参数请求 WebResource.axd - 这是无效的 Web 资源请求

发布于 2024-07-14 07:59:17 字数 329 浏览 6 评论 0原文

我时不时地在我的生产网站上发现这个问题,这让我完全难住了......

我的应用程序在开发和生产中都完美运行,但时不时地,我收到一封来自我的全局错误的电子邮件处理:

消息:这是一个无效的网络资源请求。
网址:/WebResource.axd
(这意味着由于某种原因,请求 webresource.axd 时未指定任何 GET 参数)

我自己没有对 webresource.axd 执行任何操作,我没有通过它获取任何资源,它仅由 .Net 自动使用服务它是验证器等的典型 JS。

知道为什么这可能会在没有参数的情况下被请求吗? 有人遇到过这种情况吗?

I'm finding this problem every now and then in my production website, and it has me absolutely stumped...

My app works perfectly in both dev and production, but every now and then, I get an e-mail from my global error handling with this:

MESSAGE: This is an invalid webresource request.
URL: /WebResource.axd
(which means that for some reason webresource.axd was requested without specifying any GET parameters)

I'm not doing anything with webresource.axd myself, I don't get any of my resources through it, it's only used automatically by .Net to serve it's typical JS for validators, etc.

Any idea why this might be getting requested without parameters?
Has anyone encountered this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

坏尐絯 2024-07-21 07:59:17

这绝对是一个机器人在抓取您的网站方面表现不佳。 它处理您的 Web 表单并找到对 WebResource.axd 的引用,例如:

<script src="/site/WebResource.axd?d=MtIW_TBRtZCvAXDMJGwg4g2&t=633772897740666651" type="text/javascript"></script>

机器人仅需要静态 JavaScript 文件,并尝试通过请求不带参数的 WebResource.axd 来下载它。 结果是 System.Web.Handlers.AssemblyResourceLoader 类抛出异常,并被 Global.asax 中的 Application_Error 拦截。

我相信这个异常是无害的——客户端会收到 404 错误。 您可以安全地忽略它。

That definitely is a bot not doing very good job of crawling your web site. It processes your web form and locates reference to WebResource.axd, for example:

<script src="/site/WebResource.axd?d=MtIW_TBRtZCvAXDMJGwg4g2&t=633772897740666651" type="text/javascript"></script>

The bot expects static JavaScript files only and tries to download it by requesting WebResource.axd without parameters. The result is an exception thrown by System.Web.Handlers.AssemblyResourceLoader class and intercepted by Application_Error in Global.asax.

I believe this exception is harmless - the client will receive 404 error. You can safely ignore it.

撑一把青伞 2024-07-21 07:59:17

我们还将所有错误通过电子邮件发送给我们,我们偶尔也会收到这些错误。 他们似乎从来没有推荐人,而且用户代理通常有点古怪。 我们将它们视为机器人。

我刚刚针对 Arin 检查了几个有问题的客户端 IP,其中一个属于网络蜘蛛类型组织,所以机器人理论有更多的证据。

We also have all of our errors emailed to us, and we occasionally get those too. They never seem to have a referrer, and the user agent is usually a little wacky. We write them off as bots.

I just checked a couple of the offending client IP's against Arin, and one them belonged to a web-spidering-type organization, so there's a little more evidence for the bot theory.

桃扇骨 2024-07-21 07:59:17

我还将记录向 WebResource.axd 发出请求的用户代理。 如果是机器人爬行您的网站,我不会感到惊讶。

I would also log the useragent that made the request to WebResource.axd. It wouldn't surprise me if it was a bot crawling your site.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文