Forum Discussion

David Selby's avatar
David Selby
Copper Contributor
Mar 27, 2018

how to check if a user is internal

I have a website that my users have access to but the way they access depends on whether they are within the school or outside the school. Is there a way to check if they are in school in which case display the internal link and in all other cases display the external link?

2 Replies

  • Matt Weston's avatar
    Matt Weston
    Brass Contributor

    Hi David

     

    How is the link being presented and is the route to that page the same? I.e. do external and internal users navigate directly to the page or are external users taken a different way? If the latter then you could look at the referrer and determine which link to show based on that.

    • David Selby's avatar
      David Selby
      Copper Contributor

      Thanks for the help

      The only thing that changes is the port number so http://somepage.com/ becomes https://somepage.com:1234

Resources