Copied to clipboard

Flag this post as spam?

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


  • Lewis Smith 211 posts 620 karma points c-trib
    Jul 26, 2017 @ 12:10
    Lewis Smith
    0

    Nicer 403 page

    Hi All,

    Is there any way of making the 403 page a little nicer? Or is this a server thing?

    Thanks

  • Paul Seal 524 posts 2890 karma points MVP 7x c-trib
    Jul 26, 2017 @ 15:10
    Paul Seal
    1

    Hi Lewis I did this recently.

    I created a content page called Forbidden I then added this to my web.config file underneath httpProtocol:

    <httpErrors errorMode="Custom" existingResponse="Replace">
          <remove statusCode="403" subStatusCode="-1" />
          <error statusCode="403" prefixLanguageFilePath="" path="/Forbidden" responseMode="ExecuteURL" />
    </httpErrors>
    

    I hope that helps.

    Cheers

    Paul

  • Lewis Smith 211 posts 620 karma points c-trib
    Jul 26, 2017 @ 15:12
    Lewis Smith
    0

    Hi Paul,

    Thank you very much! I will implement this and see if this solves my issue!

    A 403 error is a server error, is there anyway i can trigger this for testing purposes?

    Thanks, Lewis

  • Paul Seal 524 posts 2890 karma points MVP 7x c-trib
    Jul 26, 2017 @ 15:39
    Paul Seal
    1

    Try my blog post on protecting the media section.

    It returns a 403 error depending on the logic.

    http://www.codeshare.co.uk/blog/how-to-protect-media-items-in-umbraco/

    Cheers

    Paul

Please Sign in or register to post replies

Write your reply to:

Draft