简体   繁体   English

Websense爬网/ScriptResource.axd时出现“这是无效的脚本资源请求。”错误

[英]“This is an invalid script resource request.” error when Websense crawls /ScriptResource.axd

I am getting the following error very often on my websites: 我的网站上经常出现以下错误:

"This is an invalid script resource request." “这是无效的脚本资源请求。”

The error occurres when a spider tries to crawl /ScriptResource.axd or /WebResource.axd . 蜘蛛尝试爬网/ScriptResource.axd/WebResource.axd时,会发生错误。

Disallowing these files in robots.txt works fine (as suggested here by TheLukeMcCarthy). 在robots.txt中禁止这些文件运行正常(如TheLukeMcCarthy 此处建议)。

User-agent: * 用户代理: *
Disallow: /WebSite/ScriptResource.axd 禁止:/WebSite/ScriptResource.axd
Disallow: /WebSite/WebResource.axd 禁止:/WebSite/WebResource.axd

This does not work, thought, for services like Websense that (rudely) ignore robots.txt. 认为对于Websense这样的服务(粗暴地)忽略robots.txt的服务而言,这是行不通的。

Any idea how to stop Websense from trying to crawl those files? 知道如何阻止Websense尝试爬网那些文件吗?

The sites are developed using ASP.NET and HTML5 and hosted on IIS7. 这些站点是使用ASP.NET和HTML5开发的,并托管在IIS7上。

Thanks in advance! 提前致谢!

We're getting something similar. 我们正在得到类似的东西。 My only idea is to turn IP Address restrictions in IIS and then block their IP. 我唯一的想法是打开IIS中的IP地址限制,然后阻止其IP。 (I haven't personally done this so it's just an idea.) (我还没有亲自做过,所以这只是一个主意。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM