Current User: Guest Login
Please consider registering


Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Section by IP Ranges

Reply to Post Add a New Topic
UserPost

7:14 am
July 7, 2008


Tobi

Guest

Hi,

is it possible, to get an Extra Section that shows statistics based on IP ranges.

I got an webserver in my perimeter networkwhich is available from the internet an the LAN. Now I want to know how much traffic, hits, so on I got from the insise and the ouside.

I thought about making two statistic an work with SkipHosts and OnlyHosts or trying to get it from my TCP/IP stats analyzing port 80 an 443 but it would be nicer if I could get it work in my awstats. I need nothing more than the totals for inside and outside hosts. If it would be two extra sections where only the totals are in it would be nice too.

Is someting like this possible?

Greetings

Tobi

7:39 am
July 7, 2008


Jean-Luc

Admin

posts 1125

Hi,

You can work with SkipHosts and OnlyHosts as you wrote. You can also use the same regex in an ExtraSectionCondition with the HOST parameter. In order to only get one line in an extra section, use this:

ExtraSectionFirstColumnValues1="URL,^(/)"
ExtraSectionFirstColumnFormat1="%s"

This will work because any URL starts with a "/".

2:52 am
July 8, 2008


Tobi

Guest

Hi Jean-Luc,

thank you for your hint. I combined this with the Hits by directory to hopefully get much informative stats. My code now looks like this where 10.0.0.0/8 is my internal LAN:

ExtraSectionName2=”intern”
ExtraSectionCodeFilter2=”200 304″
ExtraSectionCondition2=”HOST,^10\\.”
ExtraSectionFirstColumnTitle2=”Interner Zugriff”
ExtraSectionFirstColumnValues2=”URL,
^\\/([^\\/]*)\\/”
ExtraSectionFirstColumnFormat2=”<A HREF='https://mydomain/%s/&#39; TARGET='_blank'>%.80s</A>”
ExtraSectionStatTypes2=PHB
ExtraSectionAddSumRow2=1
MaxNbOfExtra2=99
MinHitExtra2=1
 
ExtraSectionName3=”extern”
ExtraSectionCodeFilter3=”200 304″
ExtraSectionCondition3=”HOST,
^([^1]|1[^0]|10[^\\.])”
ExtraSectionFirstColumnTitle3=”Externer Zugriff”
ExtraSectionFirstColumnValues3=”URL,
^\\/([^\\/]*)\\/”
ExtraSectionFirstColumnFormat3=”<A HREF='https://mydomain/%s/&#39; TARGET='_blank'>%.80s</A>”
ExtraSectionStatTypes3=PHB
ExtraSectionAddSumRow3=1
MaxNbOfExtra3=99
MinHitExtra3=1

It seems to work!

Reply to Post

Reply to Topic:
Section by IP Ranges

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
1 + 11
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
9 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 638
Posts: 2709

Membership:

There are 257 Members
There have been 302 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 55
deepakgupta – 34
albert_newton – 30
cosminpana – 20
DTNMike – 19
ahtshun83 – 17

Recent New Members: raju, todd2taylor, sbdcunha, mansigill1987, ThomasDuh, ThomasKic

Administrators: Jean-Luc (1125 Posts)

Moderators: Jean-Luc (1125 Posts)