Copied to clipboard

Flag this post as spam?

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


  • Ben Wicks 4 posts 25 karma points
    Oct 19, 2011 @ 11:42
    Ben Wicks
    0

    Restricting umbraco access from a public network

    I need umbraco completely blocked from the public for a client, e.g. cant access the login page, but still accessible on their internal network.

    I’ve managed to get it running on server 2008/IIS7 but my solution is not ideal so anyone got a better way to do this?

    1. I have 2 websites pointing to the same file set
    2. one of which will have a bogus host header which they can manage internally so only they can access it on their private network, this one will need umbraco working. 
    3. That blocked website can run under it’s own application pool using ‘ApplicationPoolIdentity’. 
    4. The second ‘public’ site runs under ‘network service’ 
    5. I then use file permissions to deny access to the umbraco folder altogether for that network service user.
    6. There are a few side-effects but generally I get the desired result

     

    I’m absolutely sure though that I am missing a simple solution..

    Request filtering in IIS would allow this to happen except I can't figure out how to make that unique to the host header or website. - Is it possible in .net to simply write a custom request filter?

    I also thought of having 2 complete sites pointing to the same database but that causes more headaches with media and xml cache files.

Please Sign in or register to post replies

Write your reply to:

Draft