Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

block direct url access

Status
Not open for further replies.

s786787

Programmer
Nov 2, 2003
2
IN
I have a web site in asp where I do not want the users to directly type in the URL
of some pages in the browser. For e.g. the main page is 'index.asp' and depending on
the users resolution either 'mypage1024.asp' or page 'my800.asp' would open up in the
browser.

What I want is that no user should be able to directly access the page by typing in
the URL or If a user
tries to access these pages directly then they should be forcefully redirected to the
home page and this page would check the resolution
and load the 'mypage1024.asp' or 'mypage800.asp' depending on the users resolution.

Can someone tell me how to go about this.

V
 
How about checking the referer URL. Let say your web site has the follow sitemap:

index.asp -> page_a.jsp -> page_b.asp

if someone access page_b.asp and it's referer is not page_a.jsp then forward to index.asp.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top