By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,404 Members | 1,873 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,404 IT Pros & Developers. It's quick & easy.

Hide .aspx

P: n/a
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.
Nov 19 '05 #1
Share this Question
Share on Google+
9 Replies


P: n/a
If you mean you want to provent from anonymous access
your .NET pages, you can use following setting

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

in Web.config file

Elton Wang
el********@hotmail.com

-----Original Message-----
Hi all,
I would like to know if there are any way to hide the xxxx.aspx on myURL on server-side to avoid anonymous knowing i am using ASP. Net ?
Thanks a lot.
.

Nov 19 '05 #2

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

HTH

Ollie Riches

"Rena" <Re**@mail.com> wrote in message
news:#o**************@TK2MSFTNGP09.phx.gbl...
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.

Nov 19 '05 #3

P: n/a

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

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
http://www.openmymind.net/
"Rena" <Re**@mail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
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.

Nov 19 '05 #4

P: n/a
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" <Re**@mail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
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.

Nov 19 '05 #5

P: n/a
> 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 ?


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

-Darrel
Nov 19 '05 #6

P: n/a
Among other things. Asp .net pages are easily recognized if you view the
source.

"darrel" wrote:
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 ?


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

-Darrel

Nov 19 '05 #7

P: n/a
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
http://www.openmymind.net/
"darrel" <no*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
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 ?


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

-Darrel

Nov 19 '05 #8

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

Rena

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net> 在郵
件 news:%2****************@TK2MSFTNGP12.phx.gbl 中撰寫...

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

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
http://www.openmymind.net/
"Rena" <Re**@mail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
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.


Nov 19 '05 #9

P: n/a
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" <Re**@mail.com> wrote in message
news:Og**************@TK2MSFTNGP12.phx.gbl...
Hi Karl, and others
Thanks a lot. for the suggestion and reminder :)

Rena

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
在郵
件 news:%2****************@TK2MSFTNGP12.phx.gbl 中撰寫...

you can map any extension to aspnet_isapi.dll, simply go to IIS, go to

your
websites properties, under "ISAPI Filter" "ADD" a new extension and make

it
point to aspnet_isapi.dll

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
http://www.openmymind.net/
"Rena" <Re**@mail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
> 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.
>
>




Nov 19 '05 #10

This discussion thread is closed

Replies have been disabled for this discussion.