简体   繁体   中英

“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 .

Disallowing these files in robots.txt works fine (as suggested here by TheLukeMcCarthy).

User-agent: *
Disallow: /WebSite/ScriptResource.axd
Disallow: /WebSite/WebResource.axd

This does not work, thought, for services like Websense that (rudely) ignore robots.txt.

Any idea how to stop Websense from trying to crawl those files?

The sites are developed using ASP.NET and HTML5 and hosted on 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. (I haven't personally done this so it's just an idea.)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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