Copied to clipboard

Flag this post as spam?

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


  • Bagus Adiyanto 4 posts 34 karma points
    Nov 22, 2009 @ 22:38
    Bagus Adiyanto
    0

    Restrict the site content in umbraco

    I'm using umbraco to develop public site for my client. there are some content that should not be visible for public user and it's only visible for visitor within internal organization. Usually we can utlize the IP address of visitor so if the IP address falls within the IP address range of internal network then we can make the content is visible. In ASP.NET we can use Server object to identify the visitor IP address I wander how I can do that in umbraco particularly when I have to deal with XSLT to manage the page content. Does any body have experience with this kind of scenario ?

     

  • atze187 160 posts 215 karma points
    Nov 22, 2009 @ 22:45
    atze187
    0

    I guess your looking for something like this:

    <xsl:value-of select="umbraco.library:RequestServerVariables('HTTP_USER_AGENT')"/> 

    For more, check http://our.umbraco.org/wiki/reference/umbracolibrary

     

  • atze187 160 posts 215 karma points
    Nov 22, 2009 @ 23:02
    atze187
    0

    Sorry, must be

    <xsl:value-of select="umbraco.library:RequestServerVariables('REMOTE_ADDR')"/> 
Please Sign in or register to post replies

Write your reply to:

Draft