473,508 Members | 2,333 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Prevent the URL access.

Hi,
I have a homepage.aspx and lot of other pages also.Some pages are pop
up pages which will get input from the user. now what happens is some
users try to enter the URL of the popups directly to the browser
window and tries to enter values.As he is logged in before, He able to
access the pages like that. what I want is to prevent all the pages
except the home page. if the user enters other urls it should simply
forward them to homw page.
Please help me

Jul 30 '07 #1
1 1703
* muthu wrote, On 30-7-2007 9:41:
Hi,
I have a homepage.aspx and lot of other pages also.Some pages are pop
up pages which will get input from the user. now what happens is some
users try to enter the URL of the popups directly to the browser
window and tries to enter values.As he is logged in before, He able to
access the pages like that. what I want is to prevent all the pages
except the home page. if the user enters other urls it should simply
forward them to homw page.
Please help me
There are a couple of things you can do:
1) Check if the correct parameters are passed to the page, if they are,
allow the user through. You can check these parameters in the
Page.OnInit method and either Response.Redirect/Server transfer the user
back to the homepage.

2) Check the Referrer of the page from the server variables. You can
check this variable in the Page.OnInit and either
Response.Redirect/Server transfer the user back to the homepage.

3) In javascript on the page, check if the Opener variable is set (in
that case it's a pop-up window). If its not, use Location.Replace(new
url) to send the user back to the homepage.

This isn't something you can easily configure if that was what you were
looking for.

Jesse
Jul 30 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2297
by: Jesu | last post by:
How to prevent data updating in oracle tables through MS access or vc++ sql screen? As of now I am using product_user_profiles. Which is preventing only through SQL*plus. The same way I want to...
7
16606
by: L Mehl | last post by:
Hello -- In a form text field for entering stock symbols, I want to allow only: alpha integer decimal backspace left and right arrows delete shift
22
7526
by: alecjames1 | last post by:
I have a form which the user must complete before closing. I have disabled the window x button and use my own exit button. When selected it checks to see if the user has completed the entries...
6
3050
by: deko | last post by:
Is there a way to set a custom property on Access tables and/or queries to prevent them from being overwritten by import wizards? Any Access database can be easily destroyed if a user mistakenly...
5
2550
by: Pint | last post by:
Is there a way to prevent my web application from shuting down if I don't have access to machine.config? Thanks, Pint
8
1930
by: Arno R | last post by:
Hi all, Is the above possible? I guess I need an API call for this ? How and where to find this? One of my new apps is used as a sort of 'dedicated' thing. Users see an empty desktop with...
16
6231
by: MLH | last post by:
If I give someone a runtime app, they can open the database window by pressing the F-11 key. How to prevent???
1
1889
by: RICHARD BROMBERG | last post by:
I am writing an Access program using Access 2000. There may be a small market for the application aI am writing and I would like to do two things. First I'd like to prevent a user from going...
5
9972
by: Vincent | last post by:
I have a bound listbox control on one of my forms that has an associated afterupdate event. When this event is invoked, I lock the control to prevent the user from clicking on it more than once....
7
4533
by: perryche | last post by:
Is there a way with MS Access 2002 and above to prevent people importing from a blank Database the tables in another database? I have done a lot of searches but there isn't really a solution that...
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7123
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7382
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7495
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5052
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3193
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3181
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1556
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.