webfilter_check

Langue: en

Version: 28/02/03 (mandriva - 22/10/07)

Section: 1 (Commandes utilisateur)

NAME

webfilter_check - perform a webfilter database check

SYNOPSIS

webfilter_delete [ -d ] database host categories...

OPTIONS

-d
debug mode: be verbose about what you are doing.

DESCRIPTION

Normally only the apache module mod_webfilter performs tests against the webfilter databases. To help debugging filter databases, the program webfilter_check can be used. It performs exactly the same tests as the module. More precisely, it checks whether the host named host or some of its domain suffixes are in the database database, and if so, whether it has any of the categories associated with it.

RETURN VALUE

Webfilter_check returns 0 if the hostname is not listed with any of the categories, it returns 1 if the host is found and one of the categories matches the categories in the database entry. To learn more about which category matched or whether a domain suffix or the hostname matched, use the -d flag to turn on debug mode.

SEE ALSO

webfilter_dump(1), webfilter_create(1), webfilter_add(1), webfilter_delete(1)

AUTHOR

Andreas F. Mueller <andreas.mueller@othello.ch>