View Full Version : Awstat log showing high hits from China
fsciacca
05-27-2009, 03:32 PM
Why is the majority of bandwidth usage each month for my site now coming from China rather than the U.S.? The nature of the site does not warrant such high activity from a foreign country; especially China.
D0gSoldi3r
05-27-2009, 05:39 PM
I do not use Awstats because it's rarely correct in telling you, you're stats. Get your ass down to http://www.google.com/analytics/ and sign an account up with them and then you'll really find out who's visitng your site in realtime. China have alot of hackers so perhaps your site has been getting views from applications rather than people.
navsguardar
05-28-2009, 05:27 AM
I do not use Awstats because it's rarely correct in telling you, you're stats. Get your ass down to http://www.google.com/analytics/ and sign an account up with them and then you'll really find out who's visitng your site in realtime. China have alot of hackers so perhaps your site has been getting views from applications rather than people.
He is right in that you would most likely be visited by applications rather than people. Check your server logs to determine this. As for Google Analytics, it is a great tool but does not give you real time stats as mentioned. You can use Woopra for this. I use both GA & woopra.
D0gSoldi3r
05-28-2009, 04:37 PM
Google Analytics does give you real time stats you just have to know how to use it, i could go to Google Analytics right now and be able to tell if you have clicked on my signature in the past hr, thats realtime stats to me ;)
KevCo
05-29-2009, 06:08 AM
Google Analytics does give you real time stats you just have to know how to use it,
Is it a big secret? Do tell.:)
navsguardar
05-29-2009, 11:41 AM
Google Analytics does give you real time stats you just have to know how to use it, i could go to Google Analytics right now and be able to tell if you have clicked on my signature in the past hr, thats realtime stats to me ;)
Well that is fine.. 1 hr is usually the time with GA. But that truly is not real time by my standards. With Woopra while you click on my signature the very instant I have all possible information about you, in fact I can even do a live chat with you & knowing what brought you to my side & from where; while you are on my site, I know what to chat with you. Best is Woopra is free like GA till their Beta is running. So if you go by my word, use both GA & Woopra, both have their own merits :D
D0gSoldi3r
05-29-2009, 06:48 PM
Right okay you're now splitting hairs with me :D Right forget about an hr then say a minute or 1 second you click on my signature Google Analytics will display also, and if you install 2 on a single webpage then you are going to slow down your website as it will be loading more javascript than it would if you were using 1. I suggest use one or the other, when you install google Analytics i would disable AWstats also to save bandwidth and server resources.
Since China is governed by a dictatorship, the chinese goverment does not allow people accessing the internet outside of China, if they do access webpages from the UK, USA they are in breach of being imprisoned. we all remember the Olympics in China (beijing 2008) where CNN was banned from airing, Yeah i know China rocks.
navsguardar
05-29-2009, 07:09 PM
Chill Dude !!! My language has been extremely polite all throughout & I am here for learning & sharing rather than proving that my way of doing things is the only way. :)
Anyways, do you mind sharing how to use GA to see instant results? In that case I would love to part with Woopra & only use GA.
D0gSoldi3r
05-29-2009, 07:33 PM
Theres a calender in Analytics you just choose the correct date you want, by default it shows you the day before, however if you use the calender you can force it to show you the day it is now.
pghcollectibles
05-29-2009, 09:24 PM
this is all interesting to be hearing.
dogsoldier, would it be possible for you to do a step by step for navsguardar. im guessing thats the only way to persuade.
i used to do ga and i never bothered deleting the javascript from my main site so technically i still use it, but i dont view data from there hardly ever.
the same disadvantage of having to put the script in every page i want to track, i figured i might as well just do my own and use include_once() instead. i dont need to get into all the code in my script, but heres the gist of it. i have a database with a table (it could be more organized, but it works) i look for the basic stuff:
$user_agent=$_SERVER['HTTP_USER_AGENT'];
$ip=$_SERVER['REMOTE_ADDR'];
$host=$_SERVER['REMOTE_HOST'];
$uria=$_SERVER['HTTP_HOST'];
$urib=$_SERVER['REQUEST_URI'];
$uri=$uria.$urib;
$referer=$_SERVER['HTTP_REFERER'];
$thistime=$_SERVER['REQUEST_TIME'];
?>i check to see if the ip has been to the page and increment the number and store the very first and last visit. i use preg_match() to eliminate certain robots etc.
my viewing page has many menu items and links for me to display the data in various ways, including forming a link with this source:
http://geoip.sifavi.com/ip/<?php echo $row[$i]; ?>.htmlso i get a geographical idea of where the "supposed" ip comes from.
i found that once and without installing anything i can manually fing location.(unsolicited plug... try it. go here: http://geoip.sifavi.com/ip/74.220.195.131.html and just replace that ip with whatever.)
i use this to parse the referer for keywords from certain sites:
$partsab="";
if (preg_match('/search\.yahoo/',$row['referer'])==1){
$partsab=explode("p=",$row['referer']);
} else if (preg_match('/google\.com/',$row['referer'])==1){
$partsab=explode("q=",$row['referer']);
} else if (preg_match('/search\.live\.com/',$row['referer'])==1){
$partsab=explode("q=",$row['referer']);
} else if (preg_match('/goodsearch\.com/',$row['referer'])==1){
$partsab=explode("Keywords=",$row['referer']);
}
if ($partsab){
$partsbc=explode("&",$partsab[1]);
etc.
so with all this i still have to manually add the include_once() to many (did i say many) pages.
i go to my viewing page and my "real time" is as real as the refresh button.
if i could find out how the log files awstats reads are made so i wouldnt have to do the include thing so much. or an .htaccess/php.ini method, it would be very cool.
navsguardar
05-30-2009, 03:50 AM
Theres a calender in Analytics you just choose the correct date you want, by default it shows you the day before, however if you use the calender you can force it to show you the day it is now.
Yes, I use this regularly.
@PGH
All this seems really cool. I am not much into coding so I mainly use built in software like Google Analytics Plugin for Wordpress. That puts the java script in all the pages.
Thanks for sharing some of your code. I will try using it (My best attempts at playing with code :p). Sometimes I feel paralyzed for not knowing how to program, but feel better when I have friends like in here around :D.
Cheers
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.