Administration Interface / Menu / Address Rules  

Address Rules

Access

This menu can be useful when you want to specify hosts, IP address ranges or IP networks which you don't want to get statistics on (e.g., your own hosts, robots monitoring your site, etc.) or which you want to redirect somewhere.

First, select a site or a site group a rule(-s) is (are) to be defined for. Use the "SELECT SITE" list box.

Then set an address type: "HOST", "RANGE", "NET". For the "HOST" type you must fill out the "IP1" field, for "RANGE" - "IP1" as "from IP address" and "IP2" as "up to IP address" fields (both ends inclusive), for "NET" - "IP1" as "network address" and "IP2" as "network mask" fields.

Then set permission for the specified address: "ALLOW" (gather statistics and grant access to pages), "IGNORE" (don't gather statistics but grant access to pages) or "DENY" (gather statistics but don't allow access to pages). The "DENY" permission type works only for the "in PHP-code" type of embedding statistics. If a visitor's permission is set as "DENY", he/she will be redirected to an URL defined as $stat_redirect_url in stat.cfg.php. You can redirect such a visitor to another URL by specifying one in the "Redirect to:" field of a corresponding access rule.

When you have a set of predefined access rules, you can test individual IP addresses. To do this, specify an address in the "IP1" field and press the "Test" button. Access results will be displayed in the "Message" line. A row with a matching access rule will be highlighted (in yellow in the screenshot below).



Note that the access rule order (as well as orders for other rules) is very important. When an IP address is examined, its rules are viewed one by one beginning from the top (the first rule). The examination result will be the first matching rule. Looking at the above example, if we specified the 192.168.1.17 address as the one to be tested, we'd get the "ALLOW" access status because it'd be the first rule to satisfy the address request.

Alias

These rules determine alias names to correspond to certain IP addresses. You can assign friendly names to some IP addresses to be further printed in reports that use these rules.

How these rules work and how they are defined is similar to same of the "access" rules described above.