Reputation: 190
I'm making a web app and need to call .js files from .html files, but would like some of the .js files to be private (users should not be able to see or download them). The solutions I've found have been for making files password-protected or domain-restricted, but I would like to make them simply inaccessible to everyone. How could I do this?
Upvotes: 0
Views: 137
Reputation: 509
That is not possible.
I think that it is not possible protect and use web files at the same time. If you want use it, the user could find it. That is like to try to protect html code from a website.
Upvotes: 1
Reputation: 463
You can let users access the files, or you can not let users access the files. There is no way to let users access the files from a web app without being able to see or download the files.
Upvotes: 0