FAQ: Excluding a File or directory


How can I remove a particular file or directory from the statistics?

Short Answer

Use a Log Filter to reject all hits on that file or directory.

Long Answer

Create a new Log Filter to reject all hits on that file or directory. To do this, click Show Config in the profiles list, click Log Filters, and create a new log filter with this value:

The filter above rejects hits on the /robots.txt file. Or use this:

The filter above rejects all hits on the /somedir/ directory.

The next time you rebuild the database, all hits on that page or directory will be rejected, so they will not appear in the statistics.

By the way, the same technique can be use to filter hits based on any field, for instance all hits from a particular host or domain, or all hits from a particular referrer, or all hits from a particular authenticated user.