How do I stop external sites from doing ws://localhost and doing funny things to non-HTTP servers? [duplicate]

Discovered a certain site that I would rather not link was being mean and probing a bunch of ports with ws://127.0.0.1:port and wss://127.0.0.1:port. I want to put a stop to it, but how? Then discovered ebay was doing the same thing and on… Continue reading How do I stop external sites from doing ws://localhost and doing funny things to non-HTTP servers? [duplicate]