Red Hat Bugzilla – Bug 1305166
[RFE] Allow oo-last-access to ignore user agents
Last modified: 2016-11-07 22:48:17 EST
Created attachment 1121523 [details]
As with unidling, it would be useful to be able to ignore certain user agent strings such as bots/spiders when deciding which applications to idle.
Ideally, a single configuration file could be used by both oo-last-access and restorer.php, since the user agent strings would be the same for both.
The attached patch illustrates the idea, but does not implement a configuration option or default location for the config file path yet. It also matches against the entire apache log line rather than just the user agent string, so we may want to improve that (though if user agent strings are specific enough, it is unlikely that they would match other parts of the log line). We also may want to sanitize the input before passing it into awk.