popup blocker code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bill M.

    #1

    popup blocker code

    How do pop-up blocker programs work? Do they intercept http transactions and
    strip-out window.open() commands? Is there a single methodology?

    Thanks


  • Hywel Jenkins

    #2
    Re: popup blocker code

    In article <6a85f$3fa69ec1 $44a52955$8796@ msgid.meganewss ervers.com>,
    wpmccormick@hot mail.com says...[color=blue]
    > How do pop-up blocker programs work? Do they intercept http transactions and
    > strip-out window.open() commands?[/color]

    Possibly.
    [color=blue]
    > Is there a single methodology?[/color]

    No. Mine (PopUp Killer) scans for browser windows and reads the titles
    - no proxy involved. You won't be able to beat them.

    --
    Hywel I do not eat quiche


    Comment

    • Jerry Park

      #3
      Re: popup blocker code

      Bill M. wrote:[color=blue]
      > How do pop-up blocker programs work? Do they intercept http transactions and
      > strip-out window.open() commands? Is there a single methodology?
      >
      > Thanks
      >
      >[/color]
      They use various methods. For example, my browser blocks pop ups
      automatically (can be turned off, of course). If I click on a link which
      causes a pop up window, that is OK. But if the site initiates a pop up,
      it is killed.

      Comment

      • Bill M.

        #4
        Re: popup blocker code

        > Does that help you any?

        Well, some good reply's. I would like to either grow my own popup blocker or
        use squid to do it. Using squid to do this is kind of an
        after-the-post-thought but it occurs to me that since I'm already using
        Linux squid for my Windoz clients, that would be the place to do this.

        In terms of growing my own (Windoz app), I think I was actually looking for
        more technical details/best practice on how to do this. I wasn't very clear
        about what I was looking for. My bad.


        Thanks,

        Bill


        Comment

        • Bill M.

          #5
          Re: popup blocker code

          >[color=blue]
          > Well, some good reply's. I would like to either grow my own popup blocker[/color]
          or[color=blue]
          > use squid to do it. Using squid to do this is kind of an
          > after-the-post-thought but it occurs to me that since I'm already using
          > Linux squid for my Windoz clients, that would be the place to do this.[/color]




          Looks like what I want.


          Comment

          • Randell D.

            #6
            Re: popup blocker code


            "Bill M." <wpmccormick@ho tmail.com> wrote in message
            news:6a85f$3fa6 9ec1$44a52955$8 796@msgid.megan ewsservers.com. ..[color=blue]
            > How do pop-up blocker programs work? Do they intercept http transactions[/color]
            and[color=blue]
            > strip-out window.open() commands? Is there a single methodology?
            >
            > Thanks[/color]

            I have Internet Security 2003... It has a feature to block popups and
            adverts... It is very successful, but not 100% successful.

            I did some checks... note, I am a javascript newbie but I am a techie (with
            several years of linux/unix and some windoze support behind me) so I think I
            got a good distance...

            First... part of the Firewall that comes with Internet Security 2003 and its
            efforts to prevent popups is it scans all html as you surf and if it finds
            reference to "banner" or "popup" it can end up either removing the
            code/reference to the function or createing a similar named function after
            the original named function so as the author's original one is not
            used/called.

            Thus, a javascript with /banner/ in the path will not be displayed - the
            same with /banner.js or /banner.jpg It has other terms also written in, and
            it has various website names too (like doubleclick.net ) that are
            automatically ignored.

            Secondly, I found that when I do a View Source of some web pages, I get code
            similar to the following sprinkled in there (normally immediately after
            <head>)

            <script language="JavaS cript">
            <!--

            function SymError()
            {
            return true;
            }

            window.onerror = SymError;

            var SymRealWinOpen = window.open;

            function SymWinOpen(url, name, attributes)
            {
            return (new Object());
            }

            window.open = SymWinOpen;

            //-->
            </script>


            This code turns up before </BODY>
            <script language="JavaS cript">
            <!--

            window.open = SymRealWinOpen;

            //-->
            </script>


            I have visited http://mail.yahoo.com then did a view source and extracted
            the above just as an example - I don't know if difference code is inserted
            pending on what website I visit.

            Does that help you any?

            randelld


            Comment

            • friendship_rays@yahoo.com

              #7
              Re: popup blocker code

              hi,
              I want to write a program which will popup IE instances
              programmaticall y even if there is a POPUP-BLOCKER installed.Does
              anybody know how to do it??Please help..


              Thanx
              Dileep




              Randell D. wrote:[color=blue]
              > "Bill M." <wpmccormick@ho tmail.com> wrote in message
              > news:6a85f$3fa6 9ec1$44a52955$8 796@msgid.megan ewsservers.com. ..[color=green]
              > > How do pop-up blocker programs work? Do they intercept http[/color][/color]
              transactions[color=blue]
              > and[color=green]
              > > strip-out window.open() commands? Is there a single methodology?
              > >
              > > Thanks[/color]
              >
              > I have Internet Security 2003... It has a feature to block popups and
              > adverts... It is very successful, but not 100% successful.
              >
              > I did some checks... note, I am a javascript newbie but I am a techie[/color]
              (with[color=blue]
              > several years of linux/unix and some windoze support behind me) so I[/color]
              think I[color=blue]
              > got a good distance...
              >
              > First... part of the Firewall that comes with Internet Security 2003[/color]
              and its[color=blue]
              > efforts to prevent popups is it scans all html as you surf and if it[/color]
              finds[color=blue]
              > reference to "banner" or "popup" it can end up either removing the
              > code/reference to the function or createing a similar named function[/color]
              after[color=blue]
              > the original named function so as the author's original one is not
              > used/called.
              >
              > Thus, a javascript with /banner/ in the path will not be displayed -[/color]
              the[color=blue]
              > same with /banner.js or /banner.jpg It has other terms also written[/color]
              in, and[color=blue]
              > it has various website names too (like doubleclick.net ) that are
              > automatically ignored.
              >
              > Secondly, I found that when I do a View Source of some web pages, I[/color]
              get code[color=blue]
              > similar to the following sprinkled in there (normally immediately[/color]
              after[color=blue]
              > <head>)
              >
              > <script language="JavaS cript">
              > <!--
              >
              > function SymError()
              > {
              > return true;
              > }
              >
              > window.onerror = SymError;
              >
              > var SymRealWinOpen = window.open;
              >
              > function SymWinOpen(url, name, attributes)
              > {
              > return (new Object());
              > }
              >
              > window.open = SymWinOpen;
              >
              > //-->
              > </script>
              >
              >
              > This code turns up before </BODY>
              > <script language="JavaS cript">
              > <!--
              >
              > window.open = SymRealWinOpen;
              >
              > //-->
              > </script>
              >
              >
              > I have visited http://mail.yahoo.com then did a view source and[/color]
              extracted[color=blue]
              > the above just as an example - I don't know if difference code is[/color]
              inserted[color=blue]
              > pending on what website I visit.
              >
              > Does that help you any?
              >
              > randelld[/color]

              Comment

              • friendship_rays@yahoo.com

                #8
                Re: popup blocker code

                hi,
                I want to write a program which will popup IE instances
                programmaticall y even if there is a POPUP-BLOCKER installed.Does
                anybody know how to do it??Please help..


                Thanx
                Dileep




                Randell D. wrote:[color=blue]
                > "Bill M." <wpmccormick@ho tmail.com> wrote in message
                > news:6a85f$3fa6 9ec1$44a52955$8 796@msgid.megan ewsservers.com. ..[color=green]
                > > How do pop-up blocker programs work? Do they intercept http[/color][/color]
                transactions[color=blue]
                > and[color=green]
                > > strip-out window.open() commands? Is there a single methodology?
                > >
                > > Thanks[/color]
                >
                > I have Internet Security 2003... It has a feature to block popups and
                > adverts... It is very successful, but not 100% successful.
                >
                > I did some checks... note, I am a javascript newbie but I am a techie[/color]
                (with[color=blue]
                > several years of linux/unix and some windoze support behind me) so I[/color]
                think I[color=blue]
                > got a good distance...
                >
                > First... part of the Firewall that comes with Internet Security 2003[/color]
                and its[color=blue]
                > efforts to prevent popups is it scans all html as you surf and if it[/color]
                finds[color=blue]
                > reference to "banner" or "popup" it can end up either removing the
                > code/reference to the function or createing a similar named function[/color]
                after[color=blue]
                > the original named function so as the author's original one is not
                > used/called.
                >
                > Thus, a javascript with /banner/ in the path will not be displayed -[/color]
                the[color=blue]
                > same with /banner.js or /banner.jpg It has other terms also written[/color]
                in, and[color=blue]
                > it has various website names too (like doubleclick.net ) that are
                > automatically ignored.
                >
                > Secondly, I found that when I do a View Source of some web pages, I[/color]
                get code[color=blue]
                > similar to the following sprinkled in there (normally immediately[/color]
                after[color=blue]
                > <head>)
                >
                > <script language="JavaS cript">
                > <!--
                >
                > function SymError()
                > {
                > return true;
                > }
                >
                > window.onerror = SymError;
                >
                > var SymRealWinOpen = window.open;
                >
                > function SymWinOpen(url, name, attributes)
                > {
                > return (new Object());
                > }
                >
                > window.open = SymWinOpen;
                >
                > //-->
                > </script>
                >
                >
                > This code turns up before </BODY>
                > <script language="JavaS cript">
                > <!--
                >
                > window.open = SymRealWinOpen;
                >
                > //-->
                > </script>
                >
                >
                > I have visited http://mail.yahoo.com then did a view source and[/color]
                extracted[color=blue]
                > the above just as an example - I don't know if difference code is[/color]
                inserted[color=blue]
                > pending on what website I visit.
                >
                > Does that help you any?
                >
                > randelld[/color]

                Comment

                • friendship_rays@yahoo.com

                  #9
                  Re: popup blocker code

                  hi,
                  I want to write a program which will popup IE instances
                  programmaticall y even if there is a POPUP-BLOCKER installed.Does
                  anybody know how to do it??Please help..


                  Thanx
                  Dileep




                  Randell D. wrote:[color=blue]
                  > "Bill M." <wpmccormick@ho tmail.com> wrote in message
                  > news:6a85f$3fa6 9ec1$44a52955$8 796@msgid.megan ewsservers.com. ..[color=green]
                  > > How do pop-up blocker programs work? Do they intercept http[/color][/color]
                  transactions[color=blue]
                  > and[color=green]
                  > > strip-out window.open() commands? Is there a single methodology?
                  > >
                  > > Thanks[/color]
                  >
                  > I have Internet Security 2003... It has a feature to block popups and
                  > adverts... It is very successful, but not 100% successful.
                  >
                  > I did some checks... note, I am a javascript newbie but I am a techie[/color]
                  (with[color=blue]
                  > several years of linux/unix and some windoze support behind me) so I[/color]
                  think I[color=blue]
                  > got a good distance...
                  >
                  > First... part of the Firewall that comes with Internet Security 2003[/color]
                  and its[color=blue]
                  > efforts to prevent popups is it scans all html as you surf and if it[/color]
                  finds[color=blue]
                  > reference to "banner" or "popup" it can end up either removing the
                  > code/reference to the function or createing a similar named function[/color]
                  after[color=blue]
                  > the original named function so as the author's original one is not
                  > used/called.
                  >
                  > Thus, a javascript with /banner/ in the path will not be displayed -[/color]
                  the[color=blue]
                  > same with /banner.js or /banner.jpg It has other terms also written[/color]
                  in, and[color=blue]
                  > it has various website names too (like doubleclick.net ) that are
                  > automatically ignored.
                  >
                  > Secondly, I found that when I do a View Source of some web pages, I[/color]
                  get code[color=blue]
                  > similar to the following sprinkled in there (normally immediately[/color]
                  after[color=blue]
                  > <head>)
                  >
                  > <script language="JavaS cript">
                  > <!--
                  >
                  > function SymError()
                  > {
                  > return true;
                  > }
                  >
                  > window.onerror = SymError;
                  >
                  > var SymRealWinOpen = window.open;
                  >
                  > function SymWinOpen(url, name, attributes)
                  > {
                  > return (new Object());
                  > }
                  >
                  > window.open = SymWinOpen;
                  >
                  > //-->
                  > </script>
                  >
                  >
                  > This code turns up before </BODY>
                  > <script language="JavaS cript">
                  > <!--
                  >
                  > window.open = SymRealWinOpen;
                  >
                  > //-->
                  > </script>
                  >
                  >
                  > I have visited http://mail.yahoo.com then did a view source and[/color]
                  extracted[color=blue]
                  > the above just as an example - I don't know if difference code is[/color]
                  inserted[color=blue]
                  > pending on what website I visit.
                  >
                  > Does that help you any?
                  >
                  > randelld[/color]

                  Comment

                  • Randy Webb

                    #10
                    Re: popup blocker code

                    friendship_rays @yahoo.com wrote:
                    [color=blue]
                    > hi,
                    > I want to write a program which will popup IE instances
                    > programmaticall y even if there is a POPUP-BLOCKER installed.Does
                    > anybody know how to do it??Please help..[/color]

                    And if IE isn't installed on the machine?

                    But you and ever other spammer on the web wants to know how to open a
                    popup window even if a popup blocker is installed.

                    --
                    Randy
                    comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly

                    Comment

                    Working...