Author Topic: More weird 404s - rotating banner?  (Read 4957 times)

0 Members and 1 Guest are viewing this topic.

tapewolf

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
    • Project Future
More weird 404s - rotating banner?
« on: April 17, 2009, 11:00:14 am »
Previously I was plagued by a number of spurious 404 errors, which had no connection to anything within any of my pages.  I eventually bodged it by creating stubs of the files it was trying to access, part of the idea being that if it crashed something I might get a better idea of what it was.

I've just checked this morning and the top two this month (currently 60 hits) are:

/-banner.jpg   60   http://www.project-future.org/
/-box.jpg      60   http://www.project-future.org/

...any ideas what they are?  I'm starting to think the rotating banner has freaked out.


"The main difficulty is getting [Qa'Dar] out of his cage.
 Far and away the most reliable method I have found is mass-murder." -- The IT-HE guide to Morrowind

Xepher

  • Techsmith
  • Administrator
  • *****
  • Posts: 4,328
  • Illegitimis non carborundum!
    • View Profile
    • Xepher.net
Re: More weird 404s - rotating banner?
« Reply #1 on: April 17, 2009, 02:48:28 pm »
Do you have a page with the banner/box in it that doesn't have a proper username set? That's usually what causes that.

EDIT: It's also possible someone's browser whacked out, and didn't properly run the javascript, so it requested bad images.
« Last Edit: April 17, 2009, 02:53:29 pm by Xepher »

tapewolf

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
    • Project Future
Re: More weird 404s - rotating banner?
« Reply #2 on: April 17, 2009, 03:13:34 pm »
Do you have a page with the banner/box in it that doesn't have a proper username set? That's usually what causes that.

EDIT: It's also possible someone's browser whacked out, and didn't properly run the javascript, so it requested bad images.

Here's the fragment handling the banner:

Code: [Select]
</td><td style="vertical-align: center; width: 300px;"><center>
<script type='text/javascript' src='http://xepher.net/newsbox.js.php?username=project-future&amp;shape=box'></script>
</center></td></tr></table>

EDIT:
....either way, I'm getting many, many more counter hits than 404s so whatever it is seems to be affecting a minority of browser clients.


"The main difficulty is getting [Qa'Dar] out of his cage.
 Far and away the most reliable method I have found is mass-murder." -- The IT-HE guide to Morrowind

Databits

  • Global Moderator
  • *****
  • Posts: 1,607
  • Programming's not just a science, it's an art.
    • View Profile
Re: More weird 404s - rotating banner?
« Reply #3 on: April 18, 2009, 03:17:06 pm »
Why not just code it to always use a default user if there isn't one set?
(\_/)    ~Relakuyae D'Selemae
(o.O)    
(")_(")  [Libre Office] [Chrome]

Xepher

  • Techsmith
  • Administrator
  • *****
  • Posts: 4,328
  • Illegitimis non carborundum!
    • View Profile
    • Xepher.net
Re: More weird 404s - rotating banner?
« Reply #4 on: April 18, 2009, 04:11:50 pm »
There actually are "undefined-box.jpg" and "undefined-banner.jpg" files for that exact purpose. They're blank files. Which is why I'm curious how the variable would be actually unset by the browser (rather than just "undefined") and would be requesting stuff to his specific virtual host. All the URL references for the banner images should be to "http://xepher.net/..." itself, and thus logged/404ed under the main logs, not on a particular vserver.