In general, web proxies that want to play beautifully usually annotate an HTTP conversation with additional response headers that can be detected.
Thus, one of the approaches to creating a person-in-the-middle detector can be to check these response headers and compare the results from when MITM is and when not.
Many public websites will display headers for any request; redbot is one.
So maybe you could ask the member whose content will be modified to visit the url: youtube favicon via redbot .
Once you have collected enough samples, you can heuristically build the detector.
In addition, some CDNs (such as Akamai) will allow clients to visit the URL from remote proxy locations on their network. This can provide better coverage, although they are unlikely to be behind a blocking firewall.
source share