Changeset 139 for apache_log/apache_log/host.py
- Timestamp:
- 01/14/08 12:40:30 (10 months ago)
- Files:
-
- apache_log/apache_log/host.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
apache_log/apache_log/host.py
r126 r139 35 35 self.exclude_referrers = re.compile('^'+re.escape(website_url)) 36 36 self.exclude_networks = [IP('127.0.0.0/8'), IP('192.168.0.0/16')] 37 self.exclude_domains = BOT_DOMAINS37 self.exclude_domains = [] 38 38 self.countries = set() 39 39 … … 158 158 parser.add_option("--ignore-isp", help="Ignore ISP", 159 159 action="store_true") 160 parser.add_option("--ignore-bots", help="Ignore bots", 161 action="store_true") 160 162 parser.add_option("--syntax", help="Apache log syntax (default: %r)" % SYNTAX, 161 163 type="str", default=SYNTAX) … … 176 178 if options.ignore_isp: 177 179 parser.exclude_domains += ISP_DOMAINS 180 if options.ignore_bots: 181 parser.exclude_domains += BOT_DOMAINS 178 182 179 183 parser.parseFile(filename)
