Module XhochY::Drossellog::ImpressionBlacklist
In: xhochy/drossellog/impressionblacklist.rb
PageCounter EntryCounter ImpressionCounter DataCounter LogFileParser WeeklyReport CodeCounter MonthlyReport LogLine DailyReport DailyIPCounter IPCounter ImpressionBlacklist Drossellog XhochY dot/f_1.png

List of regexps detecting file which shouldn‘t be counted as site impressions

Methods

Public Class methods

Add a regexp which indicates non-page files

[Source]

    # File xhochy/drossellog/impressionblacklist.rb, line 33
33:     def self.add_to_blacklist(rxp)
34:       @@blacklist << rxp
35:     end

Check if the given URL is blacklisted

[Source]

    # File xhochy/drossellog/impressionblacklist.rb, line 21
21:     def self.blacklisted?(page)
22:       @@blacklist.each do |rxp|
23:         if page =~ rxp
24:           return true
25:         end
26:       end
27:       
28:       # nothing matched, so it isn't blacklisted
29:       return false
30:     end

[Validate]