Author Topic: IP Address Exclusion  (Read 84080 times)

0 Members and 1 Guest are viewing this topic.

billh

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
IP Address Exclusion
« on: May 22, 2012, 10:54:16 AM »
It would be really good if we could enter IP addresses that we do not want statcomm to count at all such as our mobile device ips and laptops or if we want to enclude our entire networks master ip address so no one in our home gets counted.

forumadmin

  • Administrator
  • Jr. Member
  • *****
  • Posts: 92
  • Karma: +1/-0
    • View Profile
    • Wordpress Ready
Re: IP Address Exclusion
« Reply #1 on: May 22, 2012, 09:05:03 PM »
Hi billh:

Although is not covered in depth, the plugin has the ability to filter by IP. In the help (StatComm->Advanced Features)
it is described that banips.dat is used to filter any ip you want to filter out (it is used unluckily the term 'banned', what should be corrected). The help is somewhat obscure at this point so we'll try to shed light on the topic a little more:

banips.dat is just a text file and it is located in the plugin-name/def folder . Every line contains an IP you want to exclude, for example:

127.0.3.4
192.168.0.1
192.168.2.1

If we want to exclude an entire subnet this wouldn't be very useful.
Let's say we are working under a personal network with address 192.168.*.*
The file accepts also regular expressions so we could add something like:

192.168\.[0-9]{1,3}\.[0-9]{1,3}

That should the job. Moreover, if you use this regular expression you wouldn't need the 192.168.0.1 and 192.168.2.1 lines above.

What would you use that for? Well, if you want to completely ignore all the bots in your current traffic you could enlist all the ips from the current crawlers out there (take a look on http://user-agent-string.info/list-of-ua/bots-ip). I wouldn't recommend that , since the plugin has options to exclude bots, but if you want to selectively ignore some ips , this is the best way.

banips.dat is somewhat hidden and its use is for more advanced use, but in future versions we'll work to be easier to maintain.

Best Regards
Fernando

onleave

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: IP Address Exclusion
« Reply #2 on: June 30, 2012, 10:48:39 PM »
Hi,

The banips.dat feature doesn't seem to work on multisites filtering.  It only works on the main site.  Any plan to fix this in future release?

I'm running the latest 1.7.20.

Thanks.

http://maestrochworld.com

forumadmin

  • Administrator
  • Jr. Member
  • *****
  • Posts: 92
  • Karma: +1/-0
    • View Profile
    • Wordpress Ready
Re: IP Address Exclusion
« Reply #3 on: July 02, 2012, 09:31:59 AM »
Thanks for let us know. It will be fixed for next version 1.7.30 , planned for July 7.
Best regards

Fernando

forumadmin

  • Administrator
  • Jr. Member
  • *****
  • Posts: 92
  • Karma: +1/-0
    • View Profile
    • Wordpress Ready
Re: IP Address Exclusion
« Reply #4 on: July 09, 2012, 09:29:57 AM »
We delayed the 1.7.30 , the test were extended due new features.
Apologies for the delay.
Best regards
Fernadno

forumadmin

  • Administrator
  • Jr. Member
  • *****
  • Posts: 92
  • Karma: +1/-0
    • View Profile
    • Wordpress Ready
Re: IP Address Exclusion
« Reply #5 on: July 11, 2012, 12:20:57 PM »
We conducted a few tests and we found that Ban ip was working on multisite.
Could you explain how do you configure your site environment?  It is likely there is some configuration we miss where Ban ip could fail.

Thank you!