This is a post out of a small amount of frustration of wanting a host a simple web server and simply disallow one file in there (it's a webmanifest - to prevent a PWA from loading on localhost for automatic debugging). The point isn't to hide it, but just make it so the browser doesn't like it and won't use it.
I know there are many other workarounds for this that I'm not interested in. Different kinds of server software.
I'm wondering whether it's possible to add a header to a file as the the server serves it (not talking about changing the response code), and make it so the file loses it's integrity through either some kind of misinterpretation or making it so that the browser won't accept it.
Thanks!