I am implementing a web based remote desktop application.Through this application client can connect to the server and can access the server using JSP/Servlet Java robot class.
I can configure the server to listen on port 6060 or any other port, but what kind of security measure I need to take to secure the connection. I know how to authenticate the client before establishing the connection i.e. using login page and chaptcha to prevent phishing attack and dictionary attack.
Another issues would be if I enable the client to upload a file to server, then how can I detect that the files is safe, is there any program to detect malicious files, or it only depends on the anti virus software.