Wrox Programmer Forums
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 19th, 2006, 04:29 AM
Authorized User
 
Join Date: May 2006
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default avoid direct acces

hi i am using tomcat/jboss as my server.

each time i open a page the url is shown on the address bar.

now i want my pages to identify that the urll has been directly typed or it comes from the server so that i can avoid direct access to a page. i have tried document.refferer but did not succeed

thanks for the help

 
Old June 19th, 2006, 06:37 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default


sometimes document.refferer gives nothing .Its not a good check for ,from where current page comes or ,it is originally sent by the the page on your domain.
There are multiple ways.
1>Hidden fields ,that shows carries page-referer or pagecode.be careful about popup page,and ur encryption -decription technique.

2>Make your own level of authorization ,allow to access to different Modules.

3>You can use server variables at some extents,also avoid pagecode- to shown on url(using querystring).

4>Check session ,if session is null -->main login page.
well once your session is establised and user have access to module, as i think its not easy to track whether the page is generated from the server or user types directly the url of your domain.

Plz let me know if you have other alternatives



Cheers :)

vinod





Similar Threads
Thread Thread Starter Forum Replies Last Post
MS Acces Autonumber teddyk ASP.NET 2.0 Basics 7 October 22nd, 2008 09:07 PM
using password in Acces Vince_421 Access VBA 8 February 6th, 2007 08:06 AM
java with Acces database colombo_ar BOOK: Beginning Java 2 3 April 30th, 2005 04:37 AM
Acces Db conversion angel_xpmx SQL Language 1 December 1st, 2004 12:08 PM
sntax error or acces violation shoakat Classic ASP Databases 0 November 9th, 2004 07:07 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.