Mysterious code on the server
A couple of new items which I recently added to my index page aren't transferred to the server when I try uploading.
I compared the code on my local page with that on the server and the latter has two items which I don't recognise.
On the server, the last item in the head is
<script language='javascript' src='http://127.0.0.1:1027/js.cgi?pca&r=25627'></script>
and the last item on the page is
<script language='javascript'>postamble();</script>
I have no idea what these are nor how they got there.
If they shouldn't be there how can I eliminate them (and how did they get there in the first place?)
Could they have anything to do with my new items not appearing?
Equal rights for equal responsibilities.
Equal opportunities for equal abilities.
Greg K posted this at 15:39 — 7th June 2005.
He has: 2,145 posts
Joined: Nov 2003
What antivirus software are you running?
When I used the demo of Norton that came with my computer a year or so ago, it drove me nuts trying to figure out how a call to javascript kept getting on the page.
Here Norton inserted that into all webpages that it detected uses javascript "to protect me". the 127.0.0.1 address is your own computer, it always (it think) refers to iteslf on any OS.
So it is most likely one of two things. Antivrus protecting you by adding it, or a virus/spyware adding it. To test, turn off your virus protection then load the page (make sure to force a reload, holidng shift while pressing reload, or clearing your cache/temp internet files before access the page, to make sure it is truely grabbing a fresh copy). If when you have AV disabled, it doesn't have that code, then you are "probably" ok as it is your AV's script to disable bad things I guess.
On a side note, another probelm I found with norton, by default install it blocks your "refering page info". I had a section of a site that used the refering page to do things. It stopped working. Again drove me nuts trying to figure out why it was loosing it, just to find out that norton blocked that info from being sent to the servers, (as per their help system) "To protect my privacy and keep sites from getting my e-mail address" (I never did figure out how my refer info gives away my e-mail address... LOL
-Greg
dmb06851 posted this at 15:50 — 7th June 2005.
He has: 48 posts
Joined: Oct 2003
Hi Greg,
I'm using ZoneLabs Security Suite and AVG Anti-Virus free edition.
I shall try uploading the page again with ZoneLabs antivirus protection and AVG disabled.
Equal rights for equal responsibilities.
Equal opportunities for equal abilities.
dmb06851 posted this at 16:09 — 7th June 2005.
He has: 48 posts
Joined: Oct 2003
No, it made no difference.
Perhaps I should also have mentioned that when I preview the page, from the editor, in my browser everything appears ok.
Equal rights for equal responsibilities.
Equal opportunities for equal abilities.
dmb06851 posted this at 16:22 — 7th June 2005.
He has: 48 posts
Joined: Oct 2003
Got it! I had a fiddle with ZoneAlarm's privacy settings for my site and I see everthing correctly now.
The last item in the header is still the same but the bit after the body and html closure tags has disappeared.
Equal rights for equal responsibilities.
Equal opportunities for equal abilities.
Greg K posted this at 16:25 — 7th June 2005.
He has: 2,145 posts
Joined: Nov 2003
The AV setting should affect how the page comes in when you browse it, not when you upload it.
The reasoning why one part is still there and the other isn't is becuase the part in the head tells it where the javascript source is at (so it is is still including the av's javascript), the line at the end of the file that disapeared is just code to call a function within the av's javascript code.
Since that did make a diference, and it is pretty likely it is your AV, the easiest fix now is just to ignore those two lines when you view the code off of the server.
-Greg
dmb06851 posted this at 16:26 — 7th June 2005.
He has: 48 posts
Joined: Oct 2003
Thanks Greg, you pointed me in the right direction.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.