Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 12 of 12
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    626
    Thanks
    0
    Thanked 0 Times in 0 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
    Regular Coder
    Join Date
    Jun 2002
    Posts
    676
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Posts
    344
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #4
    Regular Coder
    Join Date
    May 2002
    Location
    Maine, USA
    Posts
    574
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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; 06-19-2002 at 02:43 PM.
    boxer_1
    CodingForums Moderator
    "How did a fool and his money get together in the first place?"

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Posts
    626
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #6
    Regular Coder
    Join Date
    Jun 2002
    Posts
    344
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #7
    Regular Coder
    Join Date
    May 2002
    Location
    Maine, USA
    Posts
    574
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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
    CodingForums Moderator
    "How did a fool and his money get together in the first place?"

  • #8
    Regular Coder Feyd's Avatar
    Join Date
    May 2002
    Location
    Los Angeles, CA Maxim: Subvert Society
    Posts
    404
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #9
    Regular Coder
    Join Date
    Jun 2002
    Posts
    626
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #10
    Regular Coder Feyd's Avatar
    Join Date
    May 2002
    Location
    Los Angeles, CA Maxim: Subvert Society
    Posts
    404
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #11
    Regular Coder
    Join Date
    May 2002
    Location
    Helsinki, Finland
    Posts
    231
    Thanks
    0
    Thanked 1 Time in 1 Post
    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

  • #12
    Regular Coder
    Join Date
    Jun 2002
    Posts
    626
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •