Hide .aspx

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rena

    Hide .aspx

    Hi all,
    I would like to know if there are any way to hide the xxxx.aspx on my
    URL on server-side to avoid anonymous knowing i am using ASP. Net ?

    Thanks a lot.


  • Elton Wang

    #2
    Hide .aspx

    If you mean you want to provent from anonymous access
    your .NET pages, you can use following setting

    <authorizatio n>
    <deny users="?" />
    ...
    </authorization>

    in Web.config file

    Elton Wang
    elton_wang@hotm ail.com

    [color=blue]
    >-----Original Message-----
    >Hi all,
    > I would like to know if there are any way to hide the[/color]
    xxxx.aspx on my[color=blue]
    >URL on server-side to avoid anonymous knowing i am using[/color]
    ASP. Net ?[color=blue]
    >
    >Thanks a lot.
    >
    >
    >.
    >[/color]

    Comment

    • Ollie Riches

      #3
      Re: Hide .aspx

      you could create a Http Handler for your own extension type (*.rena), check
      out IHttpHandler interface.

      HTH

      Ollie Riches

      "Rena" <Rena@mail.co m> wrote in message
      news:#oacorX$EH A.4092@TK2MSFTN GP09.phx.gbl...[color=blue]
      > Hi all,
      > I would like to know if there are any way to hide the xxxx.aspx on my
      > URL on server-side to avoid anonymous knowing i am using ASP. Net ?
      >
      > Thanks a lot.
      >
      >[/color]


      Comment

      • Karl Seguin

        #4
        Re: Hide .aspx


        you can map any extension to aspnet_isapi.dl l, simply go to IIS, go to your
        websites properties, under "ISAPI Filter" "ADD" a new extension and make it
        point to aspnet_isapi.dl l

        this might be slightly useful:
        http://aspnet.4guysfromrolla.com/articles/020404-1.aspx even though it's to
        achieve something else.

        Karl
        --
        MY ASP.Net tutorials
        Programming blog exploring Zig, Elixir, Go, Testing, Design and Performance



        "Rena" <Rena@mail.co m> wrote in message
        news:%23oacorX$ EHA.4092@TK2MSF TNGP09.phx.gbl. ..[color=blue]
        > Hi all,
        > I would like to know if there are any way to hide the xxxx.aspx on my
        > URL on server-side to avoid anonymous knowing i am using ASP. Net ?
        >
        > Thanks a lot.
        >
        >[/color]


        Comment

        • Kevin Spencer

          #5
          Re: Hide .aspx

          The easiest way is to configure IIS to use the ASP.Net ISAPI to process
          files with the extension "xxx" (make one up). Then rename the extensions of
          your pages to ".xxx" instead of ".aspx".

          --
          HTH,

          Kevin Spencer
          Microsoft MVP
          ..Net Developer
          Neither a follower nor a lender be.

          "Rena" <Rena@mail.co m> wrote in message
          news:%23oacorX$ EHA.4092@TK2MSF TNGP09.phx.gbl. ..[color=blue]
          > Hi all,
          > I would like to know if there are any way to hide the xxxx.aspx on my
          > URL on server-side to avoid anonymous knowing i am using ASP. Net ?
          >
          > Thanks a lot.
          >
          >[/color]


          Comment

          • darrel

            #6
            Re: Hide .aspx

            > Hi all,[color=blue]
            > I would like to know if there are any way to hide the xxxx.aspx on my
            > URL on server-side to avoid anonymous knowing i am using ASP. Net ?[/color]

            Woudln't the viewstate in the source markup pretty much give you away
            regardless of the file extension?

            -Darrel


            Comment

            • Scott Simons

              #7
              Re: Hide .aspx

              Among other things. Asp .net pages are easily recognized if you view the
              source.

              "darrel" wrote:
              [color=blue][color=green]
              > > Hi all,
              > > I would like to know if there are any way to hide the xxxx.aspx on my
              > > URL on server-side to avoid anonymous knowing i am using ASP. Net ?[/color]
              >
              > Woudln't the viewstate in the source markup pretty much give you away
              > regardless of the file extension?
              >
              > -Darrel
              >
              >
              >[/color]

              Comment

              • Karl Seguin

                #8
                Re: Hide .aspx

                Well, you could override the SaveViewState and LoadViewState methods of the
                page to make it a lot less obvious...

                dealing with those ctl0's might be tricky though.

                Karl

                --
                MY ASP.Net tutorials
                Programming blog exploring Zig, Elixir, Go, Testing, Design and Performance



                "darrel" <notreal@hotmai l.com> wrote in message
                news:%2303KtTY$ EHA.1904@TK2MSF TNGP14.phx.gbl. ..[color=blue][color=green]
                > > Hi all,
                > > I would like to know if there are any way to hide the xxxx.aspx on[/color][/color]
                my[color=blue][color=green]
                > > URL on server-side to avoid anonymous knowing i am using ASP. Net ?[/color]
                >
                > Woudln't the viewstate in the source markup pretty much give you away
                > regardless of the file extension?
                >
                > -Darrel
                >
                >[/color]


                Comment

                • Rena

                  #9
                  Re: Hide .aspx

                  Hi Karl, and others
                  Thanks a lot. for the suggestion and reminder :)

                  Rena

                  "Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net> ¦b¶l
                  ¥ó news:%23vNKzNY$ EHA.1604@TK2MSF TNGP12.phx.gbl ¤¤¼¶¼g...[color=blue]
                  >
                  > you can map any extension to aspnet_isapi.dl l, simply go to IIS, go to[/color]
                  your[color=blue]
                  > websites properties, under "ISAPI Filter" "ADD" a new extension and make[/color]
                  it[color=blue]
                  > point to aspnet_isapi.dl l
                  >
                  > this might be slightly useful:
                  > http://aspnet.4guysfromrolla.com/articles/020404-1.aspx even though it's[/color]
                  to[color=blue]
                  > achieve something else.
                  >
                  > Karl
                  > --
                  > MY ASP.Net tutorials
                  > http://www.openmymind.net/
                  >
                  >
                  > "Rena" <Rena@mail.co m> wrote in message
                  > news:%23oacorX$ EHA.4092@TK2MSF TNGP09.phx.gbl. ..[color=green]
                  > > Hi all,
                  > > I would like to know if there are any way to hide the xxxx.aspx on[/color][/color]
                  my[color=blue][color=green]
                  > > URL on server-side to avoid anonymous knowing i am using ASP. Net ?
                  > >
                  > > Thanks a lot.
                  > >
                  > >[/color]
                  >
                  >[/color]


                  Comment

                  • Ken Cox [Microsoft MVP]

                    #10
                    Re: Hide .aspx

                    And don't forget that the default headers will give you away:


                    HTTP/1.1 200 OK
                    Date: Wed, 19 Jan 2005 01:48:28 GMT
                    Server: Microsoft-IIS/6.0
                    X-Powered-By: ASP.NET
                    Content-Length: 1758
                    Content-Type: text/html
                    Cache-control: private

                    "Rena" <Rena@mail.co m> wrote in message
                    news:OgU5xHc$EH A.3908@TK2MSFTN GP12.phx.gbl...[color=blue]
                    > Hi Karl, and others
                    > Thanks a lot. for the suggestion and reminder :)
                    >
                    > Rena
                    >
                    > "Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
                    > ¦b¶l
                    > ¥ó news:%23vNKzNY$ EHA.1604@TK2MSF TNGP12.phx.gbl ¤¤¼¶¼g...[color=green]
                    >>
                    >> you can map any extension to aspnet_isapi.dl l, simply go to IIS, go to[/color]
                    > your[color=green]
                    >> websites properties, under "ISAPI Filter" "ADD" a new extension and make[/color]
                    > it[color=green]
                    >> point to aspnet_isapi.dl l
                    >>
                    >> this might be slightly useful:
                    >> http://aspnet.4guysfromrolla.com/articles/020404-1.aspx even though it's[/color]
                    > to[color=green]
                    >> achieve something else.
                    >>
                    >> Karl
                    >> --
                    >> MY ASP.Net tutorials
                    >> http://www.openmymind.net/
                    >>
                    >>
                    >> "Rena" <Rena@mail.co m> wrote in message
                    >> news:%23oacorX$ EHA.4092@TK2MSF TNGP09.phx.gbl. ..[color=darkred]
                    >> > Hi all,
                    >> > I would like to know if there are any way to hide the xxxx.aspx on[/color][/color]
                    > my[color=green][color=darkred]
                    >> > URL on server-side to avoid anonymous knowing i am using ASP. Net ?
                    >> >
                    >> > Thanks a lot.
                    >> >
                    >> >[/color]
                    >>
                    >>[/color]
                    >
                    >[/color]

                    Comment

                    Working...