I am having a hard time restricting access to angular build files using nginx server, I tries chmoding them but if affects the application performance. I also tried to restrict .js files in the nginx.conf but no luck. Any other way to prevent these? I would like to return 404 with these kind of access.
Asked
Active
Viewed 7 times
0
-
You can't. Anything loaded by the browser is publicly visible one way or another. What are you trying to solve? – Phix Mar 09 '22 at 01:18
-
I just want to restrict the contents of generated angular files – sonjasan Mar 09 '22 at 01:20
-
There's obfuscation tools out there, but that's about it. The browser downloads them, does it's magic and displays your app. Anyone who visits your site can inspect and see the source code. – Phix Mar 09 '22 at 01:22