I have a requirement of configuring nginx as a reverse proxy for one of my application servers.
I intend to stop the login url of that server which reads as “ Server2.com: Home
I have trying to configure the location regex as below:
The browser sees # to mean not to include any following characters in the request it sends to the server. Instead, it uses the characters that follow the # to determine what part of the page to load or what client-side route to activate.
You could use JavaScript on the client-side app or block it directly in the server-side app if you can change that code.
Thanks @davemc, I have also tried similar approach. I have been watching the javsacript library calls in the network tab to see which all libraries being fetched from server might be responsible for that. Then I selectively blocked each of the libraries, and eventually reached to a point where all the application specific libraries are blocked. That helped me in blocking the login page. however all I can see is the empty page. Perhaps this is the best and closest solution that I could implement in this case.