ASP.Net webpages security hack

I have an ASP.Net, VB.Net (1.1 framework) web application that has 5 webpages in it.

I would like the users to go in a sequential flow. so for example: they should navigate
page1.aspx->page2.aspx->page3->page4->page5 by clicking the next buttons.

Now, I would like to prohibit them from typing and changing the webpage name directly in the Web browsers address bar. So they should not be able to go from page1.aspx to page3.aspx directly. And if they tried to do so they should not have access to that renamed page.

I have seen some banks implement such security. Please advise how can we implement it in a small size company?

Thanks,
Ricky

Ricky66Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

cdaly33Commented:
You could use the Request.UrlReferrer object to track which page they came from.  For each page you could check that object during load to make sure they came from the page you intended.
0
masterpassCommented:
Before doing the Response.redirect, check the following condition

If Not Request.ServerVariables("HTTP_REFERER") Is Nothing Then
    Response.Redirect("page2.aspx")
End If
0
blandyukCommented:
There is one problem with using Request.UrlReferrer and that is the fact that it can be blocked by certain users. Not often but it does. I'd use a Session variable to track how far a user is thru the process:

Session("Page") = "1"

If they try to goto Page4.aspx, the Session("Page") = "1" so they can be re-directed back. When they goto page 2, update Session variable to "2". etc.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Exploring SQL Server 2016: Fundamentals

Learn the fundamentals of Microsoft SQL Server, a relational database management system that stores and retrieves data when requested by other software applications.

Ricky66Author Commented:
Let me give these a try and I will get back to you.  Thanks.
0
lvparkingtonCommented:
You may also need to use Application State in case user has several browser windows open and uses back button etc!
0
Ricky66Author Commented:
Thank you all!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.