I am new this forum and would like to say HI to all the developers.

I have setup java based web application. I preferred to access this application through third party site where i can enable the secure authentication support. This site can be accessed directly without third party site. But i prefer to block direct access of this site, only can be do after authentication.

I am not very well in java. I would like to know some idea for this setup and any java code to be put in main access file.