Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Troubleshooting automated appearance of a JS tag with 127 loopback in a web page

Reply
Thread Tools

Troubleshooting automated appearance of a JS tag with 127 loopback in a web page

 
 
murrayatuptowngallery
Guest
Posts: n/a
 
      02-18-2006
I'm caught in a classic finger-pointing situation.

My hosting company's server appears to be automatically inserting JS
tags into a JS-free html page that has an image inked to a 2nd page
with JS.

The problem may well be that I am calling JS incorrectly. My host co.
insists my ''web publishing software' is doing this. I can prove it
isn't by deleting the offending code with an impotent text editor like
Notepad, upload it with a WS_FTP and view it's contents. The code
insertion occurs when the JS-containing page is accessed from the
'front' page.

I am going to experiment with accessing the JS page directly so there
is no linking 'calling' page to dump it's trash into.

excerpt from an index.html page in my public_html directory:

<html>
<head>
<meta name="GENERATOR" content="">
<meta name="Keywords" content="gallery, Holland, Michigan, framing,
watercolor, acrylic, oil paintings, photography,Tanis, Vanderhill">
<meta name="Description" content="Fine art gallery &amp; custom
picture framing.">
<meta name="revisit-after" content="7 days">
<title>uptowngallery.org/index.html</title>


<script language='javascript'
src='http://127.0.0.1:1025/js.cgi?pcaw&r=19629'></script>

</head>
<body>

....more html in the middle...

end of the '1st' page has a second line inserted (sometimes multiple
appearances of this)
after the closing body & html tags
</body>
</html>


<script language='javascript'>postamble();</script>


So, I have a 2-3 questions:

1) Any idea how/why a server can access someone's page and why it would
list 127 addresses in there. I read IANA & RFFC3330 references but that
only indicates it's a self-identification IP address that should not
appear anywhere on any network. Obviously it goes somewhere in the path
from a user back to one's self. But WHO is the 127 being
referenced...me or the host server?

2) Is there a problem with linking from an html page called index.html
to another also called index.html but another tree level lower (another
subdirectory)? Should a page containing JS be called .js instead of
..html?


www.uptowngallery.org/index.html is the calling page in the
(transparent) directory public_html.

There is one large image in this page that calls
www.uptowngallery.org/Tanis/index.html .

This page contains JS. Accessing this page thru the 'parent' index page
causes the JS loopback & postamble mess. I only become aware of it
because some browsers 'choke' on it (hang halfway without loading the
page) and once it's there my html editor gives a script error upon
opening the 'corrupted' page.
------

I just looked and now see the same

<script language='javascript'
src='http://127.0.0.1:1027/js.cgi?pcaw&r=31322'></script>

inserted into the Tanis/index.html JS page now. This is a new
development. That page already had a JS identifier, so it looks like
the inserted code is a self-contained script. It has start and finish
script tags.

The Tanis directory also has index1.html, index2.html and index3.html.
They appear to be called my the index.html page in the same directory
but they work fine with JS and a .html extension, nor do they have the
'mystery' code lines.

If I understood this, I could either fix my code 'grammar' or yell
louder at my hosting company.

The script was generated by ImageWalker.

Thanks

Murray

 
Reply With Quote
 
 
 
 
McKirahan
Guest
Posts: n/a
 
      02-18-2006
"murrayatuptowngallery" <> wrote in message
news: oups.com...
> I'm caught in a classic finger-pointing situation.
>
> My hosting company's server appears to be automatically inserting JS
> tags into a JS-free html page ...


[snip]

I stopped reading your post after the above because:

If you page is "JS-free" and there's JS in it when viewed then they did it!

(If it's not "JS-free" than why claim that it is? How about a URL.)


 
Reply With Quote
 
 
 
 
murrayatuptowngallery
Guest
Posts: n/a
 
      02-18-2006
Ah, you stopped reading before the URL...

I meant there is no JS in it by design, until something corrupts it.
There are a couple banner/link things that call cgi on other sites and
I don't know what they have, but they have worked for years. The only
thing that has changed is relocated to new server/plan at host co. and
am experimenting with different image display pages that use JS (Image
Walker software)

www.uptowngallery.org
(loads index.html by default)

click on the large image to link to the first JS page or
to get to it directly, www.uptowngallery.org/Tanis/index.html
proper or not, I count on the index.html in a given directory loading
by default (i.e., www.uptowngallery.org/Tanis/)

Thanks

Murray

 
Reply With Quote
 
McKirahan
Guest
Posts: n/a
 
      02-18-2006
"murrayatuptowngallery" <> wrote in message
news: oups.com...
> Ah, you stopped reading before the URL...
>
> I meant there is no JS in it by design, until something corrupts it.
> There are a couple banner/link things that call cgi on other sites and
> I don't know what they have, but they have worked for years. The only
> thing that has changed is relocated to new server/plan at host co. and
> am experimenting with different image display pages that use JS (Image
> Walker software)
>
> www.uptowngallery.org
> (loads index.html by default)
>
> click on the large image to link to the first JS page or
> to get to it directly, www.uptowngallery.org/Tanis/index.html
> proper or not, I count on the index.html in a given directory loading
> by default (i.e., www.uptowngallery.org/Tanis/)



1) Your right frame isn't fully visible under 1024x768 even full screen!

2) Change all references to
<script language=javascript>
to
<script type="text/javascript">

3) "disable_right_click" doesn't do what it says.

Try right-clicking and, while still holding the mouse button down,
press Enter to clear the dialog -- see the context menu?

Remove all of the following:

function disable_right_click(e)
{
var browser = navigator.appName.substring ( 0, 9 );
var event_number = 0;
if (browser=="Microsoft")
event_number = event.button;
else if (browser=="Netscape")
event_number = e.which;

if ( event_number==2 || event_number==3 )
{
alert ("Right Mouse Button Is Disabled");
return (false);
}

return (true);
}
function trap_images_mouse_events ()
{
if ( document.images )
{
for (var pic=0; pic<document.images.length; pic++)
document.images[pic].onmousedown = disable_right_click;
}
}
window.onload = trap_images_mouse_events;
</script>
<body>

and replace it with

<body oncontextmenu="return false">

But that is canceled (or so I'm told) by visiting this link:

javascript:void(document.oncontextmenu=null)

Besides, all of the images are in the browser's cache.


How To Block Right Click
http://forums.aspfree.com/html-help-...-23799.html#po
st193345


 
Reply With Quote
 
Richard Cornford
Guest
Posts: n/a
 
      02-18-2006
murrayatuptowngallery wrote:
> I'm caught in a classic finger-pointing situation.
>
> My hosting company's server appears to be automatically
> inserting JS tags into a JS-free html page that has an
> image inked to a 2nd page with JS.

<snip>
> <script language='javascript'
> src='http://127.0.0.1:1025/js.cgi?pcaw&r=19629'></script>
>
> </head>
> <body>
>
> ...more html in the middle...
>
> end of the '1st' page has a second line inserted (sometimes
> multiple appearances of this)
> after the closing body & html tags
> </body>
> </html>
>
> <script language='javascript'>postamble();</script>

<snip>

These are the symptoms of a content inserting/re-writing proxy operating
on _your_ computer. These proxies may take the form of Internet
security/firewall software, add-blockers, etc (and may include some
flavours of spy-ware).

Richard.


 
Reply With Quote
 
murrayatuptowngallery
Guest
Posts: n/a
 
      02-20-2006
Yeah, the right click block seemed kind of unpredictable to me...it was
a checkbox option so I selected it . Not urgent.

Proxy thing, that's interesting...I'll look into that.

I think but have to verify that this problem appears regardless of
which computer I access it from.

Murray

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Web Parts - EditorZone - Changing the appearance of a web part Matt Adamson ASP .Net Web Controls 1 01-29-2007 03:11 PM
CNE question? 127 loopback addressed murrayatuptowngallery@yahoo.com Computer Security 4 02-19-2006 07:02 PM
how do u invoke Tag b's Tag Handler from within Tag a's tag Handler? shruds Java 1 01-27-2006 03:00 AM
Full trust and automated log-in for 127.0.0.1? Randall Parker ASP .Net 1 12-05-2005 12:30 PM
Automated HTML Tag inserts into my pages - I hate it :) michi ASP .Net 0 10-27-2004 06:05 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57