# accessdeniedaddress is the address of your web server to which the cgi
# dansguardian reporting script was copied. Only used in reporting levels 1 and 2.
#
# This webserver must be either:
#  1. Non-proxied. Either a machine on the local network, or listed as an exception
#     in your browser's proxy configuration.
#  2. Added to the exceptionsitelist. Option 1 is preferable; this option is
#     only for users using both transparent proxying and a non-local server
#     to host this script.
#
# Individual filter groups can override this setting in their own configuration.
#
{
    my $deniedurl  = db_get_prop(\%dungog, 'dansguardian', "deniedurl") || '';
    if ($deniedurl ne '')
    {
      $OUT = "accessdeniedaddress = 'http://$deniedurl'\n";
    }
    else
    {
       my $wsn  = db_get_prop(\%dungog, 'dansguardian', "wsn") || ${'DomainName'};
       $OUT = "accessdeniedaddress = 'http://$wsn/cgi-bin/dansguardian.pl'\n";
    }
}