Section by IP Ranges


 

Current User: Guest Login Register
Please consider registering

Search 
Search Forums:


 




Section by IP Ranges

Add a New Topic Reply to Post
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 254

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/' 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/' TARGET='_blank'>%.80s</A>”
ExtraSectionStatTypes3=PHB
ExtraSectionAddSumRow3=1
MaxNbOfExtra3=99
MinHitExtra3=1

It seems to work!

Add a New Topic Reply to Post


Reply to Topic: Section by IP Ranges

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

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 10 + 10        (Required)

Topic Reply:


 

WebStats1


About the InternetOfficer.com forum

Currently Online:

3 Guests

Maximum Online: 31

Forums:

Groups: 2

Forums: 7

Topics: 116

Posts: 566

Members:

There are 34 members

There are 96 guests


Jean-Luc has made 254 posts

Top Posters:

Steve - 14

flwg - 10

angelko - 5

cwei - 4

legend - 3

Administrator: Jean-Luc | Moderators: Jean-Luc


© Simple:Press Forum - Version 3.1.2 (Build 340)