Forum Moderators: DixonJones

Message Too Old, No Replies

How to block visitors from an ip range

         

Suvro

7:25 am on Nov 27, 2008 (gmt 0)

10+ Year Member



Hi,

Can anybody tell me how to block the visitors from an ip range in Google analytics.

charlbury

4:00 pm on Nov 27, 2008 (gmt 0)

10+ Year Member



From the main analytics overview screen that lists your website profiles, click the edit option on the profile you want to block an ip range from.

About half way down the profile settings page it talks about the filters that are applied to this profile.

Click the Add Filter option at the top right of this section to add a filter and follow the instructions and help on this screen to filter hits from your sites.

----------------------------------------

Suvro

11:54 am on Nov 28, 2008 (gmt 0)

10+ Year Member



Thats fine,

If I have a single ip address then it can be blocked

But what about something like

72.14.232.132 to 72.14.232.150

How to block this range?

charlbury

1:26 pm on Nov 29, 2008 (gmt 0)

10+ Year Member



Use the following regular expression to black the range you listed:

^72\.14\.232\.(1(3[2-9]¦4[0-9]¦50))$

Google has a tool to help you create a regular expression for a range of ip addresses you can find here:

[google.com...]