The remedy for that is to emulate the server
The remedy for that is to encrypt the communication
The remedy for that is to MITM the server connection
The remedy for that is HSTS...
It's a cat a mouse game, the better solution for society (imo) is to have specific rights enshrined by law to allow for a qualified 3rd parties to access a system's internals.