Web Analytics Made Easy -
StatCounter Popup Blocker Code being added without knowing - CodingForum

Announcement

Collapse
No announcement yet.

Popup Blocker Code being added without knowing

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Popup Blocker Code being added without knowing

    An individual that I help from time to time with scripting is finding some javascript being added to her HTML pages without her doing anything. Here is the code:
    Code:
    <!-- BEGIN Popup Blocker --> 
                <script language='javascript'> 
                NS_ActualOpen=window.open; 
                function NS_NullWindow(){this.window;} 
                function NS_NewOpen(url,nam,atr){return(new NS_NullWindow());} 
                window.open=NS_NewOpen; 
                </script> 
                <!-- END Popup Blocker -->
    She statest that any page that she has created has this code included and can't uderstand how it is being added. I suggested that maybe she has some software running on her PC that could be doing it. She uses a combination of Hot Metal Pro 6 and notetab for creating her pages. Has anybody ever seen this before and if so could you shed some light on the subject. Thank you.

  • #2
    req...
    is sheee by just a ny® chance saving these pages to say like geocities??? theyyy used to just a dd® their own coding.../me would see it in the 'just a dvanced®' editor on the site.../me would just a delete® it cause when she saves just a gain®??? geocities will put it on thattt page tooo...
    ifin' thattts what /me thinks it is...lol...

    /me still isnt programmed to think...lol..
    The New JustaBuster Version 2.0 OR JustaBusta Lite V2.0
    ...just a special® thanx kinda hugs to jkd n' nex ...:O)))

    CommemorateWTC.com --Please lend your support

    Comment


    • #3
      as justame said, she's probably getting the code pasted in there because her pages are hosted by a free server (Geocities, Angelfire, etc.)

      They have all those pop-up scripts to show their advertising, which is what pays for your free hosting... it's a term of using the service that was most likely stated in ther Terms of Service agreement that you said "I Agree" without reading (Don't we all )

      Anyways, that's why..

      ~Quack

      Comment


      • #4
        Hmm, tough one to call. Is this code being added to just the pages she creates (that's the way I read it)? Does this code appear before she uloads her pages, or only after? Have her look at her raw source before a page has been uploaded and see if it is there then.

        Who is she hosted with? Adding a pop-up blocker code to pages hosted on a free host that requires their pop-ups to be visible would violate the TOS of the host. However, it almost looks like it might be code added after a page is uploaded (by the host). It's certainly generated by something.

        Have her create a simple 'test' page in Hot Metal Pro, save it, then open it in notepad and see if the code has been added. Sort of like a process of elimination . Likewise, have her create a test page in notepad, upload it to her hosting space, and view the source to see if it is added after FTPing.

        Edit: Didn't see you there Justame and Quackhead when I was posting this...slooow typer i guess...lol .
        Last edited by boxer_1; Jun 19, 2002, 10:43 AM.
        boxer_1
        CodingForum Moderator
        "How did a fool and his money get together in the first place?"

        Comment


        • #5
          As far as I know she is not hosting with a free Web Host, in fact she uses two different ones. She also did save a HTML page that I created (did not have blocking code) using the save as option of the browser. When she opened it up it had the code. She did not say though if she opened it first in Hot Metal Pro or notetab. I will have her try your suggestions. Thank you for your help.

          Comment


          • #6
            Originally posted by boxer_1
            Edit: Didn't see you there Justame and Quackhead when I was posting this...slooow typer i guess...lol . [/B]
            meh, we'll forgive you - this time

            Comment


            • #7
              Interesting that the code showed up in a page you created when she saved it with her browser. What browser is she using? There is, of course, some software out there that blocks pop-up advertisements/windows, but I don't know if any of them accomplish this via altering the source code during the time the page is being parsed by the browser. Very strange .
              boxer_1
              CodingForum Moderator
              "How did a fool and his money get together in the first place?"

              Comment


              • #8
                Check if she is using a personal firewall that has ad blocking enabled, or privacy enabled/webbugs disabled...typically these types of programs add almost identical code to all pages a browser sees in order to comply with the firewall's settings.
                Moderator, Perl/CGI Forum
                shadowstorm.net - subvert society

                Comment


                • #9
                  She download a page using WS-FTP and checked it in Notetab only and the code was not in it. I suspect that it could be her Hot Metal Pro that is adding the code. She uses Zone Alarm as her firewall which is what I use and I have not had any problems with that. Thank you for all your suggestions, she is doing some more testing to try and narrow it down.

                  Comment


                  • #10
                    ZAP (Zone Alarm) does add that popup blocking code, and she may have the issue because she is blocking popups and perhaps you are not...

                    I can almost guarantee you that is the problem.
                    Moderator, Perl/CGI Forum
                    shadowstorm.net - subvert society

                    Comment


                    • #11
                      Originally posted by Feyd
                      ZAP (Zone Alarm) does add that popup blocking code, and she may have the issue because she is blocking popups and perhaps you are not...

                      I can almost guarantee you that is the problem.
                      I give 100% certainity that current code is implemented by ZoneAlarm. Which is very good firewall, though for personal use.

                      You can decide whether to block pop-ups or not.
                      Zvona
                      First Aid for
                      Web Design

                      Comment


                      • #12
                        I did not realize that because I use the free version. I will check with her and find out. Thank you for the Heads Up.

                        Comment

                        Working...
                        X