aspose file tools*
The moose likes Servlets and the fly likes Prevent another browser instance on client side Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Prevent another browser instance on client side" Watch "Prevent another browser instance on client side" New topic
Author

Prevent another browser instance on client side

annaunivStud Sboa
Greenhorn

Joined: Oct 29, 2008
Posts: 10
hi. I have an online examination scenario in which the clients should not be allowed to open another brwoser to search any other sites.
how do i do this.
Is it feasible?
i have an option for running applets to detect it on client side.the applet of same size as browser size.but i am runnin short of ideas to implement it technically.wanting for help badly
well i am working in jsf..
thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42292
    
  64
Even if the applet were signed -so that you could use native code to detect what processes are running on the client- that would not be a sure way to detect other browser instances (which could be named anything). It would also be tricky to detect multiple windows/tabs within the same process. Also, if this is in a distance learning situation, how would you stop someone from using two computers? My advice would be to drop this requirement, and rethink the situation.

Moving to the Servlets Forum, since there's nothing JSF can do to help with this.


Ping & DNS - my free Android networking tools app
annaunivStud Sboa
Greenhorn

Joined: Oct 29, 2008
Posts: 10
hi thanks... i know it cant be solved completely..
i wanted it to solve it partially atleast...
forget about using two computers..its out of scope.
atleast partial satisfing of the requirement should be done

i need help for it to be solved partiallly not completely.
annaunivStud Sboa
Greenhorn

Joined: Oct 29, 2008
Posts: 10
atleast preventing user from clicking on Internet explorer or firefox icon or start button... something like that will partially solve.
can you help on how do i use applets to that.
it cant be solved completely
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

"annaunivStud Sboa" please check your private messages for an important administrative matter.


SCJP, SCWCD.
|Asking Good Questions|
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42292
    
  64
There's nothing in the Java class libraries to do this kind of thing; you will need to use JNI to access native code. But even then: how would you know that a browser is being accessed? There's nothing stopping me from renaming firefox.exe to notepad.exe and starting that.

What I meant by "rethink the situation" was really: Think about alternative approaches to this exam that do not require you to essentially control the client computer. If the exam questions are of a nature that their answer can be looked up on the internet quickly, then what value does such an exam have?
Srikanth Nutigattu
Ranch Hand

Joined: Oct 30, 2007
Posts: 114
I think, if you have control on the systems.. ie If they belong to some center which you have control on. Then you can think of having "Kiosk Mode Engine" installed.

A Kiosk mode engine is nothing but a piece of software which runs only a designated application(s).

search for various kiosk engines for your OS. Any wayz I dont think you cannot do that in Java without help of any native code.

If you have seen some banks, which have systems for customers, These are called kiosks by which you can only access that bank's websites only.

If you dont have/own/control those systems then you can forget about this scenerio.

Thanks.
annaunivStud Sboa
Greenhorn

Joined: Oct 29, 2008
Posts: 10
hi thanks for your replies.
well talking about renaming the exe is a next level... but i want to satisfy it partially... something is better than nothing concept...
all those scenarios you explain me are valid but thats next level.. i want to solve the starter level atleast..i need help for that...waiting for the reply thanks

well talking about kiosk ..yes thanks..i have that kind of proctor exams too... so it ll be usefull... any further informations about that software on how to use...
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

You can't satisfy that requirement, fully, partially, or otherwise.
Web applications can not and should never be able to exert this type of control over a user's browser or desktop.


If the client machines are to be in a testing center, the way to handle this is to put them on a sub net that only has access to the test server (no other internet access). If this is to be used for testing from home, the approach usually taken is to set time limits so that people who don't already know the answers won't have time to go searching for them.
[ November 21, 2008: Message edited by: Ben Souther ]

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61437
    
  67

"annaunivStud Sboa", please check your private messages for an important administrative matter. Again.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Prevent another browser instance on client side