开发者

Prevent googlebot from calling ajax methods

Googlebot keeps trying to call ajax methods on my website. For example: default.aspx/GetStuffWit开发者_开发技巧hAjax

The problem is that this method should be impossible for google to call since im checking with javascript if the querystring has id=xxxx before calling it. There is no link anywhere with this querystring that google could follow.

Is is possible that the bot scans for PageMethods.GetStuffWithAjax in my html code and then just tries to call the ajax method? And how could I prevent this.. Anyone?


Put Disallow: /GetStuffWithAjax as a line in your robots.txt file at your domain's root.


You can use robots.txt to tell Google (and other good bots) not to go there. Check here:

  • http://www.robotstxt.org/
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜