Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can my app be downloaded from my local computer?  RSS feed

 
Winston Liek
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

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.

Thanks!
 
Norm Radder
Ranch Foreman
Posts: 2240
28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can the user be able to copy or download my deployed app on my local laptop? 

Yes, it should work if your PC has an IP address that can be accessed outside of your LAN.
I think tomcat can restrict or control what folders's contents that a client can see.
 
Norm Radder
Ranch Foreman
Posts: 2240
28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This thread is Connected with: https://coderanch.com/t/682627/specific-url-laptopp
 
Winston Liek
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can I prevent it? I do not want him to copy my deployed war file.

If in case I deployed my war file in tomcat manager and I will not give him access to tomcat manager, will he still be able to find it in file directory or ftp?
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16028
87
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Dave Tolls
Rancher
Posts: 2914
36
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Norm Radder
Ranch Foreman
Posts: 2240
28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Winston Liek
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, my purpose is to prevent the user to copy my web app that i created since it is deployed on my local computer and he will be accessing my laptop. I just want him to use my web app pages.

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?
 
Winston Liek
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont want him to copy my web app and open my source codes. I just want him to use my web app just like browsing the internet
 
Norm Radder
Ranch Foreman
Posts: 2240
28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!