Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
We have an installation of Umbraco 4.0.3 which run both our internet website as well as our intranet website. For security reasons I dont want the intranet website avalaible on the internet - what are my options here?Perhaps I could add some ASP-code to my masterpage on the intranet to validate for a local IP-address, and if yes; how? Unfortunately I had some bad luck trying to succeed with this..
I believe I have solved it by adding this to the top of my MasterPage for the intranet site:
<script type="c#" runat="server">
public string Ip()
string ipAddress = Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
if (ipAddress == null || ipAddress == "")
ipAddress = Request.ServerVariables["REMOTE_ADDR"];
protected void Page_Load(object sender, EventArgs e)
if (Ip() != "10")
Any thoughts on this is highly appreciated..
So is the intranet and internet content in a different content tree?
Personally that's how I would have set it up - you can then mount the sites using IIS and host headers to have two completely seperate websites under the same Umbraco instance. Security / Access etc can then all be managed via IIS.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted