I'm getting a potentially dangerous Request.Path value was detected when bots (googlebot etc) are crawling imagegen paths.. just wondering if anyone had come across it and how you'd fix it without ignoring the images in robots.txt
There's nothing dangerous about the request per se. It might not like the querystring items but that can't be helped. All output is sanitisd as well. And the image path can't get outside the website. Additional features such as classes and imagebasedir settings are available in ImageGen Professional if you need them.
You don't say what the potentially dangerous path is but it may be the '&' characters. You can try encoding them to '&' in the URI and the problem may well go away.
Dangerous Request.Path
Hi Guys,
I'm getting a potentially dangerous Request.Path value was detected when bots (googlebot etc) are crawling imagegen paths.. just wondering if anyone had come across it and how you'd fix it without ignoring the images in robots.txt
ImageGen.ashx?image=/media/95969/bibendum-img.jpg&width=80&height=80&constrain=true
that is an example of an image that is blowing up...
Hi, Tom,
There's nothing dangerous about the request per se. It might not like the querystring items but that can't be helped. All output is sanitisd as well. And the image path can't get outside the website. Additional features such as classes and imagebasedir settings are available in ImageGen Professional if you need them.
cheers,
doug.
You don't say what the potentially dangerous path is but it may be the '&' characters. You can try encoding them to '&' in the URI and the problem may well go away.
This thread may also be helpful... http://social.microsoft.com/Forums/eu/Offtopic/thread/f6205835-a89f-4664-93c9-da6a4dde0efb
doug.
Hi Doug,
I tried with amp escaped and not escaped.. I couldn't see anything else there that would be a dodgy path
is working on a reply...