Hide .aspx

R

Rena

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.
 
O

Ollie Riches

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

HTH

Ollie Riches
 
E

Elton Wang

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
(e-mail address removed)
 
K

Kevin Spencer

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.
 
D

darrel

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
 
K

Karl Seguin

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
 
K

Ken Cox [Microsoft MVP]

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
 
Joined
Dec 17, 2009
Messages
1
Reaction score
0
Hide extention

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 ?
I want to know also how to hide only the extention i.e. only .aspx on my URL in Asp.Net?
Thanks a lot
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,123
Messages
2,570,736
Members
47,289
Latest member
KathrynSta

Latest Threads

Top