Stop mobile network proxy from injecting JavaScript

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

    PHP: Header("Cache-Control: no-transform"); Thanks! I'm glad I found this page.

    That Injector script was messing up my php page source code making me think I made an error in my php coding when viewing the page source. Even though the script was blocked with firefox NoScript add on. It was still messing up my code. Well, after that irritating dilemma, I wanted to get rid of it completely and not just block it with adblock or noscript firefox add ons or just on my php page.

    1. STOP http:// 1.2.3.4 Completely in Firefox: Get the add on: Modify Headers.
    2. Go to the modify header add on options... now on the Header Tab.
    3. Select Action: Choose ADD.
    4. For Header Name type in: cache-control
    5. For Header Value type in: no-transform
    6. For Comment type in: Block 1.2.3.4
    7. Click add... Then click Start.

    The 1.2.3.4 script will not be injected into any more pages! yeah!

    I no longer see 1.2.3.4 being blocked by NoScript. cause it's not there. yeah.

    But I will still add: PHP: Header("Cache-Control: no-transform"); to my php pages.

提交回复
热议问题