class DansguardianDeniedAction::Log
Represents a single log line in the access logs
@note Documentation about attribute accessors of this class was taken
from http://contentfilter.futuragts.com/wiki/doku.php?id=the_access.log_files
@see contentfilter.futuragts.com/wiki/doku.php?id=the_access.log_files
Attributes
@return [String] Items like URLMOD, CONTENTMOD, SCANNED, INFECTED, ending with
either *DENIED* or *EXCEPTED* (*URLMOD* means urlregexplist tweaked the outgoing request, often used to force "safesearch" on) (*CONTENTMOD* means contentregexplist tweaked the incoming content, sometimes used to replace ofensive words with less offensive ones [but its use probably interferes with downloads, thus precluding them])
@return [String] Contents of the listcategory tag (if any) in the list that's most
relevant to the action
@return [String] If configured, the result of performing a reverse DNS IP lookup on
the requestor's IP address. Highly network dependent, meaningful on only some networks.
@return [String]
@return [String] A more convenient presentation of the same information in filter group
number. Only present if "groupname = ..." is specified in each dansguardianfN.conf file.
@return [Integer] The filter group (1 => f1, 2 => f2, etc). the request was assigned to
@return [Integer] Always a three digit number, usually 200 if everything went okay
@return [String] The HTTP request verb, usually either GET or POST (or HEAD)
@return [String] The MIME type of the document according to the website, usually
"text/html" for webpages
@return [String] Raw log line string that will be parsed
@return [String] An elaboration on the action
@return [String] Complete requested URL. Often much of this is hidden from the
user. Typically includes search terms.
@return [String] Requesting IP address. Watch out for DHCP networks where
computers sometimes change IP addresses.
@return [String] Requesting user or computer. If an “authplugin” has not
identified a user or computer, this will return just a dash.
@return [Integer] The size in bytes of document (if it was fetched)
@return [String] More details about the action, for example the actual regular expressions
@return [String] Sometimes interesting and useful information. Note though that because
this is so easily spoofed, it should not be used for any sort of security.
@return [Integer] The sum of all the weighted phrase scores, which is the calculated
naughtyness value
Public Class Methods
@param raw [String] Raw log line string that will be parsed
# File lib/dansguardian_denied_action/log.rb, line 78 def initialize( raw ) @raw = raw end