Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tom 713 posts 951 karma points
    Feb 06, 2012 @ 00:41
    Tom
    0

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

  • Douglas Robar 3570 posts 4670 karma points MVP 6x admin c-trib
    Feb 06, 2012 @ 08:09
    Douglas Robar
    0

    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. 

  • Douglas Robar 3570 posts 4670 karma points MVP 6x admin c-trib
    Feb 06, 2012 @ 08:15
    Douglas Robar
    0

    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

    Let us know what you find out.
    cheers,
    doug. 
  • Tom 713 posts 951 karma points
    Feb 06, 2012 @ 22:45
    Tom
    0

    Hi Doug,

    I tried with amp escaped and not escaped.. I couldn't see anything else there that would be a dodgy path

Please Sign in or register to post replies

Write your reply to:

Draft