Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    How to block ISP injected advertisements in webpages

    Scheduled Pinned Locked Moved General pfSense Questions
    38 Posts 12 Posters 16.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • johnpozJ Offline
      johnpoz LAYER 8 Global Moderator
      last edited by

      Clearly they think it is.. did you see the to copies of the page he showed.  The left side clearly has been altered, while the right side shows not such modifications.

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 25.07 | Lab VMs 2.8, 25.07

      1 Reply Last reply Reply Quote 0
      • K Offline
        kejianshi
        last edited by

        I agree something is up, for sure.

        I just don't think the ISP has that much control to be able to inject whatever they want into whatever web page they like easily.

        Nor do I feel its in their interest to do so.

        Thats why I'm wondering about other explanations.

        Normally I suspect a hijacked browser when I see stuff like this.

        He says its across a variety of devices, so then I start thinking maybe its a DNS issue.

        If its really as bad as the ISP screwing with their own customers, then VPN is the way to go I think.

        Or dump the ISP and try another?

        1 Reply Last reply Reply Quote 0
        • stephenw10S Offline
          stephenw10 Netgate Administrator
          last edited by

          Did you follow Supermule's link to the report that Comcast are doing this. The OP is using MTNL so I'm guessing they're in India, not Comcast anyway. Technically it's not difficult at all if they are running any sort of proxy. For example:
          http://www.ex-parrot.com/pete/upside-down-ternet.html

          Steve

          1 Reply Last reply Reply Quote 0
          • KOMK Offline
            KOM
            last edited by

            I just don't think the ISP has that much control to be able to inject whatever they want into whatever web page they like easily.

            It is trivially easy for an ISP to do this.  Why?  The universal answer to all questions: money.  Same reason why some ISPs are hijacking NXDOMAIN DNS responses and feeding people loaded ad pages in their place?

            1 Reply Last reply Reply Quote 0
            • S Offline
              shebang1234
              last edited by

              I can confirm that this is something that the ISP is doing. The ads are provided by adphonso (something that I forgot to mention earlier.) They very proudly talk about their "solutions" to make communication between ISPs and customers easier. (wtf?)

              There are records of MTNL customers complaining about adphonso ads all over the internet. Never became a hype though.
              The ISP is government controlled so I doubt if they really care whether or not they lose customers (I mean they've never behaved like it.) I don't have a choice here; I'd have switched to a different ISP long ago, if I could have.

              EDIT: I have blocked both adphonso and adtech. Purpose of this message was to check if there was a way for it to not spoil my layout either.
              EDIT2: Removed link.

              1 Reply Last reply Reply Quote 0
              • DerelictD Offline
                Derelict LAYER 8 Netgate
                last edited by

                That's really unfortunate.  Tunnel all your traffic through a VPN I guess.

                (suppress desire to rant libertarian.)

                I set up vpnbook.com last night to test something.  They have free OpenVPN servers on UDP 53, UDP 25000, TCP 80, TCP 443.  Three of those will be pretty hard to block with a generic rule.  TCP/80 is probably going to be worthless to you.  Depends on how locked down/proxied your outbound traffic is.

                Chattanooga, Tennessee, USA
                A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                Do Not Chat For Help! NO_WAN_EGRESS(TM)

                1 Reply Last reply Reply Quote 0
                • johnpozJ Offline
                  johnpoz LAYER 8 Global Moderator
                  last edited by

                  "EDIT: I have blocked both adphonso and adtech. Purpose of this message was to check if there was a way for it to not spoil my layout either."

                  You would have to tunnel so they can not inject for that to happen, or have something that removed the injected code - proxy could do something like that.  But easy solution is to just tunnel past them so they can not inject.

                  To me the best vpn solution for something like this is a low end vps, CHEAP – I have a couple of them, one on west cost other on east coast I use for testing - they cost $15 a year each.  500GB a month bandwidth so make great little vpn exit points.

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 25.07 | Lab VMs 2.8, 25.07

                  1 Reply Last reply Reply Quote 0
                  • K Offline
                    kejianshi
                    last edited by

                    What is going on there is incredibly stupid on the part of the ISP.  Sorry to seem so unbelieving before.  It just seems crazy.

                    Thats the sort of crap I'd maybe expect on free wifi in a mall or something.

                    I'd almost say move!

                    The weather is quit nice tonight in manila…  And....  No ads.

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      Cino
                      last edited by

                      @KOM:

                      It is trivially easy for an ISP to do this.  Why?  The universal answer to all questions: money.  Same reason why some ISPs are hijacking NXDOMAIN DNS responses and feeding people loaded ad pages in their place?

                      I know TWC does this. Other then redirecting you to a search page if the domain can't be found; the main reason is for them to direct your traffic is if you account is flagged. Example would be lack of payment (happen at a friends house, they had to acknowledge that they were over due before being routed to the internet), secuity reasons…

                      If an ISP is going to inject ads, there service should be free then! This kinda reminds me of the Juno email....

                      1 Reply Last reply Reply Quote 0
                      • DerelictD Offline
                        Derelict LAYER 8 Netgate
                        last edited by

                        You might also want to make sure tunneling your internet around the government network won't land you in jail.

                        Chattanooga, Tennessee, USA
                        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                        Do Not Chat For Help! NO_WAN_EGRESS(TM)

                        1 Reply Last reply Reply Quote 0
                        • K Offline
                          kejianshi
                          last edited by

                          Is this China?  North Korea?  Iran?

                          Who else is making a huge fuss about VPNs?

                          I've used VPNs is and around china and the middle east.

                          Didn't go to jail…  But then again, I wasn't leading an insurrection either.

                          Haven't tried North Korea.  They lock people away for taking a deep breath.

                          1 Reply Last reply Reply Quote 0
                          • DerelictD Offline
                            Derelict LAYER 8 Netgate
                            last edited by

                            Looks like Mumbai, India.  I was just sayin…  Aren't they the ones that made Blackberry give them the ability to MITM?

                            Chattanooga, Tennessee, USA
                            A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                            DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                            Do Not Chat For Help! NO_WAN_EGRESS(TM)

                            1 Reply Last reply Reply Quote 0
                            • ? This user is from outside of this forum
                              Guest
                              last edited by

                              @shebang1234:

                              I can confirm that this is something that the ISP is doing. The ads are provided by adphonso (something that I forgot to mention earlier.) They very proudly talk about their "solutions" to make communication between ISPs and customers easier. (wtf?)
                              http://adph_onso.com/

                              DON'T click this adphonso link, I get a phising and a virus warning when clicking…

                              1 Reply Last reply Reply Quote 0
                              • K Offline
                                kejianshi
                                last edited by

                                MITM in India?

                                People do that?

                                https://www.youtube.com/watch?v=o66FUc61MvU

                                1 Reply Last reply Reply Quote 0
                                • First post
                                  Last post
                                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.