SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Hybrid View

  1. #1
    SitePoint Zealot D.D.S. Polymath's Avatar
    Join Date
    Apr 2005
    Location
    Regnvm ServiŠ
    Posts
    181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Generated JavaScript reference invalidating source code

    Hello.

    I am not quite sure whether this thread belongs to this section of the forum, so please relocate it if necessary.

    Being in the habit of viewing source from web pages I come across every day, I could not but notice a rather too ubiquitous script reference that seems to plague the otherwise correct code as reported by the Firefox HTML Validator extension. It runs thus:
    Code:
    <script language='javascript' src='http://127.0.0.1:1026/js.cgi?ca&r=17870'></script>
    I am quite sure that it is somehow generated on the spot and not a part of the original code. The numeric part of the URL I recognize to be equivalent to localhost, but I do not know what to make of the js.cgi? and the variable part that follows.

    Is it server- or browser-generated, and does firewall software have anything to do with it? I am at a complete loss to understand it.
    Be not too sure that none of the old magic endures...

  2. #2
    Guru Meditation Error gnarly's Avatar
    Join Date
    Dec 2003
    Location
    Cheltenham, United Kingdom
    Posts
    692
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've not seen that one before. I suspect it's something like McAfee or Norton doing something silly. What firewall software do you have running?

    The invalid bit is language='javascript' - which should be type="text/javascript".

    Update - a quick google reveals it's Zone Alarm throwing that out. Do you really need their script checking tool switched on?
    Olly Hodgson
    thinkdrastic.net

  3. #3
    SitePoint Enthusiast Tygatur's Avatar
    Join Date
    Apr 2006
    Location
    Germany
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hm, this piece of code is really odd.

    http://127.0.0.1:1026
    Usually the number after the colon is the subnet mask(meaning the last 1026 bits of the IP adress belong to the subnet).
    But an IP Adress only consists of 32bits. So this can't be a valid subnet mask.
    Looks rather like a security hole, because normally you don't run your computer as a webserver and therefore http:// in front of 127.0.0.1 makes absolutely no sense.
    to code or not to code ?
    that's too much of a question for a signature.

  4. #4
    Guru Meditation Error gnarly's Avatar
    Join Date
    Dec 2003
    Location
    Cheltenham, United Kingdom
    Posts
    692
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Tygatur
    http://127.0.0.1:1026
    Usually the number after the colon is the subnet mask
    I thought it was the port number?
    Olly Hodgson
    thinkdrastic.net

  5. #5
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Tygatur
    http://127.0.0.1:1026
    Usually the number after the colon is the subnet mask(meaning the last 1026 bits of the IP adress belong to the subnet).
    No, in a URI the part after the colon specifies the port number. So it's port 1026 on localhost.
    Birnam wood is come to Dunsinane

  6. #6
    SitePoint Zealot D.D.S. Polymath's Avatar
    Join Date
    Apr 2005
    Location
    Regnvm ServiŠ
    Posts
    181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The firewall in question is indeed ZoneAlarm Pro. I supposed it had its part in the entire matter, but fail to see why it should insert a JavaScript reference of all things. As regards script checking tools, it is what my antivirus program (Avast! 4.7 Pro) is entrusted with via its Web Shield component, although no customization I made seems to entail the above issue. Could it be the guilty party after all? And does the fact that I am on a wireless network help explain the situation at hand?
    Be not too sure that none of the old magic endures...


Bookmarks

Posting Permissions

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