I have a tomcat and a web app that will be deployed on my local laptop. Then I will allow other user to remote access my laptop and use my application on localhost.
My question is, can the user be able to copy or download my deployed app on my local laptop? Because I do not want him to copy my program. I just want him to use it on my laptop remotely. No plans on uploading my app on cloud.
Jesper de Jong wrote:I don't know why Norm said "yes", but:
No, people accessing your webapp running in Tomcat on your laptop cannot normally download the war file of your application.
I think Norm was thinking in terms of accessing the website, rather than actually downloading the war file as a whole.
I think tomcat can restrict or control what folders's contents that a client can see.
The OPs questions was ambiguous about what files he wanted clients to access and what files would be hidden. If the files are in the accessible folders the client will be able to access them.
I have several internet servers on my computers. One allows the client to go to any folder on the server. Some restrict the client's access to select folders.
So final answer is impossible as long as he cant access the tomcat manager? If that so then my next question is there any way for the user to edit the user config of tomcat server? How can i prevent it?
prevent the user to copy my web app
Yes, I think that can be done. I think you can restrict what files the client can see.
Do you have a tomcat server to test with to see what can be done?