Stump the Panel » End Users and Information Workers

Filter Content by IP Address

(10 posts)
  • Started 1 week ago by N_Williams
  • Latest reply from Christophe
  1. N_Williams
    Member

    Hi, I want to put a company video onto our intranet (WSS 3.0). Our remote users access our network using Terminal Services - so performance with video clips is not great.
    I would like to create a page with the link to the video with the following conditions:

    1) show the video to non terminal service users (all IP addresses other than TS Servers)
    2) don't show the video to terminal service users (takes them to a page stating 'due to technical difficulties, we're unable to display this content')

    Is there a way to do this by IP address?

    Posted 1 week ago #
  2. eric
    Moderator

    I've done this with one of our installations. I had 2 document libraries, one I wanted to disply to local users, and one outside of the network (logging in via the internet). To do this, I had to specify some IIS variables to caputre the incoming IP address and wrap the document libraries I was displaying in XSLT if statements.

    This hid 1 of the document libraries depending on what their IP address was.

    I made these modifications in SPD using dataview web parts.

    Here is part of the code:
    <xsl:if test="$IncomingIP != starts-with($IncomingIP,150.216)" >

    <xsl:template name="dvt_1"><xsl:choose>
    <xsl:when test="$IncomingIP != starts-with($IncomingIP,150.216)">
    <table border="0" width="100%" cellpadding="2" cellspacing="0">
    <tr valign="top">
    <td class="ms-vb" nowrap="nowrap">You are visiting the site off the campus network or from a residence hall. Please use the links below.</td>
    </tr>
    </table>
    </xsl:when>
    <xsl:otherwise>
    <xsl:variable name="dvt_StyleName">Table</xsl:variable>
    <xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row"/>
    <table border="0" width="100%" cellpadding="2" cellspacing="0">
    <tr valign="top">
    <xsl:if test="$dvt_1_automode = '1'" ddwrt:cf_ignore="1">
    <th class="ms-vh" width="1%" nowrap="nowrap"></th>
    </xsl:if>
    <th class="ms-vh" nowrap="nowrap">Download Path</th>
    <th class="ms-vh" nowrap="nowrap">Title</th><th class="ms-vh" nowrap="nowrap">IncomingIP</th><th class="ms-vh" nowrap="nowrap">Modified</th></tr>
    <xsl:call-template name="dvt_1.body">
    <xsl:with-param name="Rows" select="$Rows"/>
    </xsl:call-template>
    </table></xsl:otherwise></xsl:choose>
    </xsl:template>

    Posted 1 week ago #
  3. N_Williams
    Member

    Hi Eric,
    Everything I've done up to now on SharePoint has been done through the browser. We have SPD at work but so far not had the chance to use it. Any chance you could give me a more detailed description of what I need to do to get this working please?

    Posted 1 week ago #
  4. Eric - Sounds like your first article for EUSP. When you have time, send me the documentation with screenshots. We'll publish it. -- Mark

    Posted 1 week ago #
  5. This seems to be beyond end user reach (me included), as it involves IIS changes...

    Posted 1 week ago #
  6. eric
    Moderator

    I'll get the information together. It doesn't involve changes to IIS, it just requires you to define a variable to get the Remote Address from the web server. You just need access to Sharepoint Designer and a little trial and error.

    Posted 1 week ago #
  7. N_Williams
    Member

    Many thanks in advance Eric

    Posted 1 week ago #
  8. eric
    Moderator

    This has been created and sent to Mark to review. He said he hopes to have it published next week so be on the look out.

    Posted 1 week ago #
  9. Eric's article will go live on March 4th, before anyone gets up in the morning...

    Posted 3 days ago #
  10. Well, that's what Americans think ;-)

    Posted 2 days ago #

RSS feed for this topic

Reply

You must log in to post.