The working of my virtual defense mechanism is rather simple. In the server side many web pages are created by JSP, Servlets, then the host searches for the corresponding requested URL & encrypts by using the sender’s public key and send to the client. The client receives the encrypted server responsed page and decrypts using its own Private key. Finally displays the message in the browser. In the clientside using CoreJava we implement the cryptography RSA Algorithm and generate the Private key as well as Public key. All the client-server technologies are implemented in the Java networking. In the serverside we create the web sites using JSP, Servlets ; at the server-side we also implement multithreading concept for response of more number of clients . Java Swing is used to design the user interface in the client and server side.