Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

help with who's_online script

Discussion of Ken True's web site templates

Moderator: saratogaWX

Post Reply
Michael_Wright
Posts: 140
Joined: Thu 30 May 2013 9:15 am
Weather Station: fine offset
Operating System: windows 7
Location: Townsville/Queensland/Australia
Contact:

help with who's_online script

Post by Michael_Wright »

when setting up the who's_online script what do they mean by this code

Code: Select all

// you must set these settings correctly for the script to function:

$C['site_url'] = '';
Image
The Future you have Not seen but the presants shall all ways be.
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: help with who's_online script

Post by saratogaWX »

It should read

Code: Select all

$C['site_url'] = 'http://www.yourwebsite.com/';
replacing www.yourwebsite.com with your website hostname.
Michael_Wright
Posts: 140
Joined: Thu 30 May 2013 9:15 am
Weather Station: fine offset
Operating System: windows 7
Location: Townsville/Queensland/Australia
Contact:

Re: help with who's_online script

Post by Michael_Wright »

thanks ken think I have now just have to upload it mike
Image
The Future you have Not seen but the presants shall all ways be.
User avatar
gluepack
Posts: 460
Joined: Tue 22 Jan 2013 9:20 pm
Weather Station: PCE-FWS 20
Operating System: Win 7 Pro
Location: Zlatina, Bulgaria

Re: help with who's_online script

Post by gluepack »

Been running this for as long as I can remember. I'm pretty sure that I have noticed this anomaly before but it didn't register enough (to post about it), I guess.

My website is essentially part of another site and I have included the appropriate code in the rest of the site to collect the who's online data from there too.

The main site starts with index.html whereas the weather subset starts with /saratoga/wxindex.php.

Looking at who was online I noticed that the "Last URL" for one of the visitors was index.php, which doesn't exist on my website at all.
So, where would it have got that from? I wondered if it was perhaps a default that had been used when the code had no definitive data but can't find a reference anywhere.
Image

PWS links: WundergroundIVARNAPR3CWOP/APRSE(W)2048PWSWeatherZLATINABGAwekas10631Twitter@Zlatina_weather
Station type: PCE-FWS 20…Webcam link: View south to edge of Provadisko plateau
User avatar
gluepack
Posts: 460
Joined: Tue 22 Jan 2013 9:20 pm
Weather Station: PCE-FWS 20
Operating System: Win 7 Pro
Location: Zlatina, Bulgaria

Re: help with who's_online script

Post by gluepack »

I've noticed this before...
Whenever I attempt to login to who's online on my tablet away from home (i.e. via GSM) I get a message "User not Authorized" (or something like that).
(Of course, I just tried it out at home (via GSM, not WiFi) and it logged me in, lol!)
It isn't the same message as when userid or password are entered incorrectly, "Invalid Login."
So, what would cause that and is there anything in the scripts (or elsewhere) that I can modify to prevent that happening?

The other thing is that I get users, e.g. Google, that, on the face of it, aren't bots but I can't believe some guy is sitting at a computer, somewhere, interested in my website...

Code: Select all

http://www.google.com/url?sa=i&rct=j&q=&esrc=s&source=images&cd=&ved=0CAcQjRxqFQoTCMLL9J-8hskCFYgbPgoduvEJzA&url=http%3A%2F%2Fwww.jerbils.info%2Fsaratoga%2Fwxpollen.php&psig=AFQjCNHmmMpAUfro1tOVMWiBraacv2ZWsw&ust=1447265981868487
...particularly my pollen forecast for Zlatina. So, how does it differentiate between real users and bots?

I'd appreciate some comment on my previous post on this thread, too, as that happens frequently. For example, I just had a user referred from a FB post that I made and it showed /index.php as most recent page and yet it doesn't exist.
Image

PWS links: WundergroundIVARNAPR3CWOP/APRSE(W)2048PWSWeatherZLATINABGAwekas10631Twitter@Zlatina_weather
Station type: PCE-FWS 20…Webcam link: View south to edge of Provadisko plateau
User avatar
gluepack
Posts: 460
Joined: Tue 22 Jan 2013 9:20 pm
Weather Station: PCE-FWS 20
Operating System: Win 7 Pro
Location: Zlatina, Bulgaria

Re: help with who's_online script

Post by gluepack »

I don't know if it is associated with the 508's I was getting, not able to view my own website, but this is an example of what was happening at the time (although I am able to access it now)

The weird thing is that they all seem to be interested in my history from wunderground, going back years...
whoson.JPG
...not just bots but idiot bots.
You do not have the required permissions to view the files attached to this post.
Image

PWS links: WundergroundIVARNAPR3CWOP/APRSE(W)2048PWSWeatherZLATINABGAwekas10631Twitter@Zlatina_weather
Station type: PCE-FWS 20…Webcam link: View south to edge of Provadisko plateau
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: help with who's_online script

Post by saratogaWX »

Yes, the wxwuhistory.php script can be a 'bot trap' since it offers handy links to prior data on each page. Misbehaving bots will try crawling endlessly backwards (and chew up both your site's and weatherunderground's site bandwidth).

Essential to have

Code: Select all

<meta name="robots" content="INDEX, NOFOLLOW"/>
in the <head></head> section of the page.

Even that won't prevent scumbag bots, but it will stop the honorable bots (who follow the robots conventions) from the endless back-crawl.

Misbehaving bots should be blocked by .htaccess like

Code: Select all

SetEnvIfNoCase Referer "^qq829" TOBLOCK=1
SetEnvIfNoCase Referer "^cnzz" TOBLOCK=1
SetEnvIfNoCase ^User-Agent$ .*80legs.* TOBLOCK=1
SetEnvIfNoCase ^User-Agent$ .*Ezooms.* TOBLOCK=1
SetEnvIfNoCase ^User-Agent$ .*Ahrefs.* TOBLOCK=1
SetEnvIfNoCase ^User-Agent$ .*package.* TOBLOCK=1

<FilesMatch "(.*)">
Order Allow,Deny
Allow from all
Deny from env=TOBLOCK
</FilesMatch>
User avatar
gluepack
Posts: 460
Joined: Tue 22 Jan 2013 9:20 pm
Weather Station: PCE-FWS 20
Operating System: Win 7 Pro
Location: Zlatina, Bulgaria

Re: help with who's_online script

Post by gluepack »

Well, I tried the meta and, four hours later, there are 23 bots on. Admittedly, two or three have times on of over four hours but, by itself, it doesn't seem to have done any good.
Image

PWS links: WundergroundIVARNAPR3CWOP/APRSE(W)2048PWSWeatherZLATINABGAwekas10631Twitter@Zlatina_weather
Station type: PCE-FWS 20…Webcam link: View south to edge of Provadisko plateau
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: help with who's_online script

Post by saratogaWX »

Then, I'd suggest you engage the blocking for ahrefs bot using .htaccess as I showed in code box above :)

That will give the 403-Forbidden and no more links to follow.
Post Reply