Copied to clipboard

Flag this post as spam?

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


  • Richard Atkinson 10 posts 100 karma points
    Sep 19, 2017 @ 13:06
    Richard Atkinson
    0

    How to handle internal application call to a folder with IIS redirect

    Hi,

    I've had a look around the website without any luck, so apologies if this has already been asked.

    Umbraco version 7.4.3

    I have an Umbraco website (internal) which is used for content management and previewing. A copy of this website (external) lives on another server and is used by the general public. The content changes are made internally, published to the internal site, and at the same time, published to the external site.

    There is no need to provide access to the Umbraco backend of the external site, therefore, I have placed an IIS redirect on the "umbraco" folder to a 404 page. This works perfectly until a report is called on the external site.

    The reports are displayed in the browser's PDF viewer using AngularJS and a call similar to {http…}/umbraco/surface/PDFReport/GetDataExport

    When calling a report the IIS redirect is actioned because the "umbraco" folder is being accessed; the PDF viewer shows the 404 page.

    How can I block access to the "umbraco" folder except for calls to the surface controllers of the reports?

    Please let me know if more details or code samples are required.

    Regards,

    Richard

  • Richard Atkinson 10 posts 100 karma points
    Sep 24, 2017 @ 16:54
    Richard Atkinson
    100

    Answer given on Stack Overflow which suggested the following URl:

    https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/72207-disabling-access-to-umbraco-backoffice#comment-231849

    It worked a treat.

Please Sign in or register to post replies

Write your reply to:

Draft