Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am doing a project of Inverstment Compnay(Asp.Net,C#,Sql Server)
There are many secure pages which is not for Investor ,they are for
company internal use only.

But when url is pasted on address bar , the page is displayed, i can not
stop them.I tried to block by url rewriting,but all in vain

Please help me
Posted
Comments
Reiss 17-Aug-11 5:06am    
What version of asp.net are you using - this will dictate the optimum solution, as you should be using role membership

1 solution

Don't know why the previous solution was deleted, it was correct. Use the web.config file to define the authorizations for the page(s) and use RoleMembership. You do have users authenticate into the site correct?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900