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 1160 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 2800 posts 8790 karma points MVP 8x 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

Please Sign in or register to post replies

Write your reply to:

Draft