Groups | Blog | Home
all groups > inetserver asp general > november 2003 >

inetserver asp general : block direct access to web pages


V
11/2/2003 7:49:19 PM
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 www.mysite.com/page1024.asp or
www.mysite.com/800.asp. If a user
tries to access these pages directly then they should be
forcefully redirected to the
home page www.mysite.com/index.asp 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.

William Tasso
11/3/2003 7:08:27 AM
[quoted text, click to view]

what does the resolution tell you about the window size?

--
William Tasso - http://WilliamTasso.com

Ken Schaefer
11/3/2003 3:49:41 PM
Set a session variable on the index.asp page. Then, on both of the other
pages, check for the session variable, and if it's not there, redirect to
index.asp

However, sessions rely on cookies being enabled on the client.

Cheers
Ken



[quoted text, click to view]
: 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 www.mysite.com/page1024.asp or
: www.mysite.com/800.asp. If a user
: tries to access these pages directly then they should be
: forcefully redirected to the
: home page www.mysite.com/index.asp 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

AddThis Social Bookmark Button