URL access

bungpeng

Well-known member
Joined
Sep 10, 2002
Messages
906
Location
Malaysia
How to avoid URL access by user?

for example: "ABC.aspx" page can only link from other page, but not allows user enter URL in browsers address field to access.

Anyone know how to do it?

In ASP, we may use Request.ServerVariables("HTTP_REFERER"), how about in ASP.NET? or any better solution?
 
restricting access to certain pages, which I am assuming is what you want can be done within a web.config file; check out Microsofts demonstration sites documentation as they do it for an online store

http://www.ibuyspystore.com/docs/docs.htm

and click on the link web.config

The file contains sections, which look like this...

<location path="Checkout.aspx">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>

this allows you to restrict access to certain pages.
 
Back
Top