Stop mobile network proxy from injecting JavaScript

后端 未结 13 983
鱼传尺愫
鱼传尺愫 2020-11-29 18:50

I am using a mobile network based internet connection and the source code is being rewritten when they present the site to the end user.

In the localhost my website

13条回答
  •  日久生厌
    2020-11-29 19:38

    An effective solution that I found was to edit your hosts file (/etc/hosts on Unix/Linux type systems, C:\Windows\System32\drivers\etc on Windows) to have:

    null 1.2.3.4
    

    Which effectively maps all requests to 1.2.3.4 to null. Tested with my Crazy Johns (owned by Vofafone) mobile broadband. If your provider uses a different IP address for the injected script, just change it to that IP.

提交回复
热议问题