Whos Online Script

Mike,

I had actually been meaning to post something about the Weather Underground history script. I run my own web hosting business on the side and of course on one of those servers is where my weather site resides. A few months ago I noticed the load on the server would climb astronomically for no apparent reason. I spent weeks trying to figure out what was causing the problem.

In the end I tracked it down to the Weather Underground history script on my site as well as a few other weather websites that are on there running the same script. Google’s bot and Yahoo’s bot were hitting those pages and going through every combination in the dropdowns. When they did, the bots seemed to kind of get stuck there going through all the different combinations and in the process, server load would climb through the roof. It was a really bizarre thing.

Anyway, after modifying the robots.txt and asking folks to add noindex to their headers on the problem pages the server load returned to normal and all was well.

Just something others might be aware of.

Tony

Hmmm… I wonder what I’m doing wrong. I have a disallow in robots.txt and a meta noindex, nofollow but the bots are still swimming in my wuhistory.php

Mike

I takes them awhile to pick up on your change, give it 24-48 hours

Yup. I actually renamed my file for a couple of days just to throw them off for a bit. :slight_smile:

T

Password protect isn’t working for me. I enable protect (password only = ‘test’) and get the password box but after I click the login button the page refreshes but nothing has changed.
http://azjerry.com/weather/whos-online.php

Did you not install all the updated files? The current version is 1.51
I see version 1.08 in the source of your whose-online.php

#-o
That was it. When I opened the readme file, whose-online was just out of view so I didn’t know to upload it :oops:

I’m using the Carterlake narrow template. I have installed the modified include-style-switcher.php file on both my local test server as well as my public server. Neither one is switching to the wide template.

[s]
Download the zip file again and try the new include-style-switcher.php in the wo-extras folder, I just updated it.
Let me know if that works

This problem would only happen when you have the $SITE[‘CSSscreenDefault’] set and the controls hidden with the setting $SITE[‘allowThemeSwitch’] = false;
, but it should be fixed now if you install the new include-style-switcher.php[/s]

Problem:
sometimes the ‘Last page url’ is too long and the whos-online.php page overflows the template really wide

Solution:

(carterlake php weather template users)
This is a whose-online mod to force the whose-online.php page to use wide css,
the rest of your site can stay on a narrow theme or what ever the visitor has selected (narrow or wide).

Put this code at the very bottom of the Settings.php, but before the closing PHP tag:

Code:

 // the code below will force your whose-online.php page to use a wide css template
 if ( isset($C['filename_whos_online']) && preg_match("/".$C['filename_whos_online']."/i", $SITE['REQURI']) ){
   $SITE['CSSscreen'] = str_replace ('-narrow.css','-wide.css',$SITE['CSSscreen']);  
 }

(any other php template users)
The whose online page displays best on a wide css style template page, adjust your css accordingly

Three of the strings can be auto wordwrapped, look in the include-whos-online-settings.php file
lower the lasturl_wordwrap_chars to like 75

// three of the strings can be auto wordwrapped
$C['lasturl_wordwrap_chars']   = 175; // <= set to number of characters to wrap to
$C['useragent_wordwrap_chars'] = 250; // <= set to number of characters to wrap to
$C['referer_wordwrap_chars']   = 250; // <= set to number of characters to wrap to

Hi Mike
Got it all setup were the setting go for the local time zone thanks
http:\n9mfk.com

look at
Readme.txt “Known Issues”

Hi mike,
I saw the fix in the read me file
I was not sure witch file to put it in?
Beau

Settings.php file right above the code you put in during Step 4)
I will update the readme.txt to be more clear.

Hi Mike,
why not use $SITE[‘tz’] = ‘America/Chicago’;
that is in settings.php ?
Beau

Sorry I did not see that was there

(carterlake php template site users )
You can replace:


putenv("TZ=".$SITE['tz']);
$SITE['tzname']	= date("T",time());
if($SITE['allowThemeSwitch']) {

with:


putenv("TZ=".$SITE['tz']);
$SITE['tzname']	= date("T",time());

// include the who's online functions
require ('include-whos-online-header.php');
  $whos_online_records = update_whos_online();

if($SITE['allowThemeSwitch']) {

then it will use the timezone already set in the Settings.php
NOTE: the timezone has to be set before the who’s online functions are included.

I will update the readme.txt

Mike

I finally caught one of the bots.

http://www.infosniper.net/index.php?map_source=1&overview_map=1&lang=1&map_type=1&zoom_level=6&ip_address=65.55.110.13

http://www.infosniper.net/index.php?map_source=1&overview_map=1&lang=1&map_type=1&zoom_level=6&ip_address=65.55.110.130

Mark

It might be able to be recognize it but I would need to know the user agent. You can see user agents if you select profile display "All"

It has been reported that msn has a search link quality bot.
The MSN search link quality bot uses user agent strings of actual browsers, so it’s hard to identify.
Those are MSN’s cloaking detectors, originating from 65.55.xx.xx. They are spiders that access your site using regular User Agent strings, rather than normal spider strings. MSN uses them to ensure that the same content is provided to both the search spider and regular users, as some web pages serve up bogus content to spiders in order to drive traffic to their site. They are a nuisance, but cannot be detected by strings in spiders.txt.


What are you going to do with it now that you caught it?

I don’t think the animal shelter will take it.

Bug spray :slight_smile:

Mark

The msn quality agent has a user agent of IE6, I would not worry about it.

Nope. It still isn’t changing to wide mode.