Stop mobile network proxy from injecting JavaScript

后端 未结 13 946
鱼传尺愫
鱼传尺愫 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:30

    I'm suprised no one has put this as answer yet. The real solution is:

    USE HTTPS!

    This is the only way to stop ISPs (or anyone else) from inspecting all your traffic, snooping on your visitors, and modifying your website in flight.

    With the advent of Let's Encrypt, getting a certificate is now free and easy. There's really no reason not to use HTTPS in this day and age.

    You should also use a combination of redirects and HSTS to keep all of your users on HTTPS.

提交回复
热议问题