Copied to clipboard

Flag this post as spam?

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


  • Connie DeCinko 931 posts 1159 karma points
    Aug 01, 2011 @ 22:16
    Connie DeCinko
    0

    Restrict display via IP or other???

    I was trying to troubleshoot a live site and I really don't want to show the dump to the world.  Is there a way to restrict the display to only an internal IP or via some other method?

     

  • Chriztian Steinmeier 2726 posts 8320 karma points MVP 4x admin c-trib
    Aug 01, 2011 @ 23:43
    Chriztian Steinmeier
    0

    Hi Connie,

    Yes - you can do that; The easiest way would be to find the line in the XMLDump.xslt file that says:

    <xsl:variablename="xmldumpAllowed"select="boolean($currentPage/ancestor-or-self::*[xmldumpAllowed = 1] | $currentPage/ancestor-or-self::node[data[@alias = 'xmldumpAllowed'] = 1])"/>

    - and make your own logic for setting it to true(), e.g. something like:

    <xsl:variablename="xmldumpAllowed"select="boolean(umb:RequestServerVariables('REMOTE_ADDR') = '10.0.0.1')"/>

    /Chriztian

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies