Is there a setting where you can add your own IP so that only YOU can see the IP and
no one else, cause if the setting to show IP is off them you cant use the IP lookup?
If this aint available, would it be possible to add it please?
Is there a setting where you can add your own IP so that only YOU can see the IP and
no one else, cause if the setting to show IP is off them you cant use the IP lookup?
If this aint available, would it be possible to add it please?
I agree with the privacy issues, I password protected the IP information and by default just display the country.
A setting to display the IP info based on my IP address wouldn’t work for me as my IP address is dynamic.
http://www.gartholson.net/horca/weather/php/whos-online/whos-online.php
Your question is answered in the readme.txt inside the country-addon folder:
About once monthly the ip-to-country data needs to be updated.
www.yourwebsite.com/load-woip-data.php is a maintenance script you periodically use to update the database.
This script loads or re-loads the ip-to-country database into your mysql database.
For added security you can remove the load-woip-data.php file when not using it.
To update the database:
You must download a fresh ip-to-country database data zip file from:
http://ip-to-country.webhosting.info/node/view/6
http://ip-to-country.webhosting.info/downloads/ip-to-country.csv.zip
make a note of the “Last updated” date for future reference so next time you can see if it is actually new or not.
unzip the ip-to-country.csv.zip file on your computer,
then upload the ip-to-country.csv file to your web server in the same directory as load-ip-data.php
overwrite the old one.
This file is more than 4 meg, so it may take a few minutes to upload.
then go to www.yourwebsite.com/load-woip-data.php with your web browser.
It will automatically perform these functions:
Preparing to update ip-to-country database…
Connecting to database…
Connected to database…
Emptying the table first …
Please allow (10-30 seconds) for the data to load… please wait …
All done! 87810 rows added to database.
Go to www.yourwebsite.com/whos-online.php
make sure it is working ok.
This is addressed in the “Known issues” section in the readme.txt
Problem:
Displaying site visitor’s IP addresses may be considered violating their privacy
Solution:
Version 1.51 or higher…
You can password protect the the whos-online.php page, then just use it for admin use only.
look in include-whos-online-settings.php for the password_protect settings.
If you do not want to password protect your whose-online page,
you can disable ip address display with this setting in include-whos-online-settings.php:
$C[‘allow_ip_display’] = 0; // 1 enables, 0 disables
I can add a admin password to hide ip addresses if anybody wants. make that another option
I will make the setting for showing IP off by default
// allow users to view ip addresses on the whose-online page
// Your web site privacy policy might not permit you to display site visitor’s IP addresses
// … see known issues in the readme.txt
$C[‘allow_ip_display’] = 0; // 1 enables, 0 disables
You did not have to delete code, there is a setting inside the weather template Settings.php
$SITE[‘allowThemeSwitch’] = false; // set to false to disable the use of Theme Switcher
setting it to false hides the control on the sidebar
Admin function would be nice Mike. Maybe add the password to the end of the URL so nobody knows that it is there. Instead of the page asking for it. If it’s not there it would not show personal items.
Mark
A password on the url is in no way safe at all.
A more secure way to do it is an encrypted cookie (that is what i will do)
Yes it can be done as long as you sign up for a Dynamic DNS, which is what I’ve done. It allows a url to be created which translates to your IP, the update to the Dynamic DNS is either by your router if it supports it, or by a small windows app (I guess there are Linux equivalents as well).
Stuart
How would that help IP based logic coded into a webpage?
Using gethostbyname() in PHP provides the IP address.
Stuart
I see
Mike…I appreciate the time you took to explain the flag addition but I had already done that and had it running. The reason for my question is that I’ve had several hits on my site today and they are not being sent to the database. The reason I know about the hits is another hit counter I have running records pretty much the same info as your script. I would much rather run only your script but I don’t know how or when the site hits are passed to the SQL database. I’m not very proficient in writing the syntax for querys for SQL but I do have a good bit of experience with Access so I do understand the premise. GoDaddy has myAdmin for SQL running so there’s really not a lot you can do to get a query wrong. It’s the information that’s missing from the database that is bugging me. Whenever you have time…no hurry. Thanks
Linda,
The script is only keeping track of the visitors online for a set period of time as defined in your configuration. The only lasting stats are the high number at any one time for the day, month, year and “all time”. I think I have that right. If not, Mike will clarify.
the function update_whos_online() is what makes the update to MySQL which is in the include-whos-online-header.php script.
Ref: readme.txt - Step 6.
I can’t get load-ip-data.php to work on my main site
http://azjerry.com/weather/load-ip-data.php
I get the following:
Preparing to update ip-to-country database...
Error: You need to set the settings for dbname, dbuser, and dbpass for this script to function.
But the same code on my home test site works fine.
The thing is my public whos online page works (except for the missing flags) even though load-ip-data doesn’t :?
http://azjerry.com/weather/whos-online.php
whose online uses load-woip-data.php, you are trying to use load-ip-data.php?
load-ip-data.php is for my ip-to-country script
load-woip-data.php is for the whose online script
each file is designed to do something slightly different.
sorry for any confusion that might cause.
Please read the readme.txt in the country-addon folder in the whos-online.zip file, then follow each step to success
Jim is correct.
The script is only keeping track of the visitors online for a set period of time as defined in your configuration. The only lasting stats are the high number at any one time for the day, month, year and “all time”.
I did not want to make this a hit counter or permanently record page views for analysis.
I just want to keep this simple.
Google analytics, webalizer, etc. are better free web tracking statistics tools than anything I have time to build.
I programmed a nice feature to add optional password protection.
the whole page can be protected, or any of the features turned off to not logged in users.
You can use option of a username and password pair, or just a password.
It sets a encrypted session cookie to store the login during the session.
I am too tired to release it tonight, going to bed.
Could the Image Captcha be used as an alternative to the password protection? Just an idea.
Thanks for your hard work on this script and all your scripts.