Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Custom Error pages

    Hi All,

    I have a windows authenticated web site - a sub directory
    has been secured by denying various roles. When access is
    denied the default error page for 401.2 is displayed -
    How can I customise my own access denied page?
    I have tried custom error tags in the web.config but that
    doesnt seem to work, nor does changing the IIS error page
    settings.

    Any ideas?

    Cheers,
    Rich

    Rich Guest

  2. Similar Questions and Discussions

    1. Custom Error Pages - 404 File not found & 301 redirect
      Hello, We are preparing to launch a new site and would like to create a custom error page for 404 - File not found. I would also like to create...
    2. Displaying Custom Error Pages
      I've got my '404 page not found' error page working by using IIS server to redirect users. Now I need to supply an error page when users enter...
    3. Cross Site Scripting & Custom Error Pages
      Hi, I have been investigating CSS vulnerabilites within my application and have a question. If I added malicious script tags to the Url these are...
    4. custom error pages in asp
      You have to set that URL as your 404 in IIS. Did you do that? Ray at work "Raphael Gluck" <iwish i could tell you @alas blame the spammers>...
    5. Custom error message in custom Web publishing
      "Frank A. Bravo" wrote: There is a command , use it as part of an If statement... So, Nor records were found matching your search an...
  3. #2

    Default Re: Custom Error pages

    You can attempt to customise the page (and IIS will send the customised
    page - you can check using network sniffer), but it is up to the browser to
    decide what to display. Most (if not all) browsers will *not* display custom
    content when the HTTP status from the server is 401 - they will either
    display a logon dialogue box -or- they will display an "access denied" error
    message (after three, or whatever, failed attempts). This is a security
    measure on the part of the browser.

    What you would need to do is intercept the 401.2 HTTP status, and change it
    to something else (eg 200 OK), and then you can server whatever content you
    want.

    Cheers
    Ken

    "Rich" <anonymous@discussions.microsoft.com> wrote in message
    news:07d601c503c0$5959aae0$a401280a@phx.gbl...
    > Hi All,
    >
    > I have a windows authenticated web site - a sub directory
    > has been secured by denying various roles. When access is
    > denied the default error page for 401.2 is displayed -
    > How can I customise my own access denied page?
    > I have tried custom error tags in the web.config but that
    > doesnt seem to work, nor does changing the IIS error page
    > settings.
    >
    > Any ideas?
    >
    > Cheers,
    > Rich
    >

    Ken Schaefer Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139