Forum Moderators: DixonJones

Message Too Old, No Replies

Google Analytics - IP range filter

         

kunwarbs

5:34 am on Jul 17, 2006 (gmt 0)

10+ Year Member



How do I add IP range filter using Google Analytics. I want to filter the users from a specific IP range.

I want to filter traffic from following range
192.169.0.1 to 192.168.1.256

How do I write the regular expression for it?

Also will google analytics be able to filter traffic from a internal network IP range?

gregbo

9:28 pm on Jul 17, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just a minor point ... IPv4 adresses are 32 bits, so each field of the dotted quad runs from 0-255.

vipink

4:23 am on Jul 21, 2006 (gmt 0)

10+ Year Member



This should work to filter IP range 192.168.0.0 to 192.168.0.255

^192\.168\.0\.([0-9]¦1[0-9]¦2[0-9]¦3[0-9]¦4[0-9]¦5[0-9]¦6[0-9]¦7[0-9]¦8[0-9]¦9[0-9]¦1[0-9][0-9]¦2[0-4][0-9]¦25[0-5])

[edited by: vipink at 4:24 am (utc) on July 21, 2006]

vipink

4:23 am on Jul 21, 2006 (gmt 0)

10+ Year Member



This should work to filter IP range 192.168.0.0 to 192.168.0.255

^192\.168\.0\.([0-9]¦1[0-9]¦2[0-9]¦3[0-9]¦4[0-9]¦5[0-9]¦6[0-9]¦7[0-9]¦8[0-9]¦9[0-9]¦1[0-9][0-9]¦2[0-4][0-9]¦25[0-5])