DOKK / manpages / debian 11 / linkchecker / linkcheckerrc.5.en
LINKCHECKERRC(5) LinkChecker LINKCHECKERRC(5)

linkcheckerrc - configuration file for LinkChecker

linkcheckerrc is the configuration file for LinkChecker. The file is written in an INI-style format. The default file location is ~/.linkchecker/linkcheckerrc on Unix, %HOMEPATH%\.linkchecker\linkcheckerrc on Windows systems.

Read a file with initial cookie data. The cookie data format is explained in linkchecker(1). Command line option: --cookiefile
Write memory allocation statistics to a file on exit, requires meliae. The default is not to write the file. Command line option: none
When checking absolute URLs inside local files, the given root directory is used as base URL. Note that the given directory must have URL syntax, so it must use a slash to join directories instead of a backslash. And the given directory must end with a slash. Command line option: none
Specify an NNTP server for news: links. Default is the environment variable NNTP_SERVER. If no host is given, only the syntax of the link is checked. Command line option: --nntp-server
Check recursively all links up to given depth. A negative depth will enable infinite recursion. Default depth is infinite. Command line option: --recursion-level
Generate no more than the given number of threads. Default number of threads is 10. To disable threading specify a non-positive number. Command line option: --threads
Set the timeout for connection attempts in seconds. The default timeout is 60 seconds. Command line option: --timeout
Time to wait for checks to finish after the user aborts the first time (with Ctrl-C or the abort button). The default abort timeout is 300 seconds. Command line option: none
Specify the User-Agent string to send to the HTTP server, for example "Mozilla/4.0". The default is "LinkChecker/X.Y" where X.Y is the current version of LinkChecker. Command line option: --user-agent
If set to zero disables SSL certificate checking. If set to one (the default) enables SSL certificate checking with the provided CA certificate file. If a filename is specified, it will be used as the certificate file. Command line option: none
Stop checking new URLs after the given number of seconds. Same as if the user stops (by hitting Ctrl-C) after the given number of seconds. The default is not to stop until all URLs are checked. Command line option: none
Files larger than NUMBER bytes will be ignored, without downloading anything if accessed over http and an accurate Content-Length header was returned. No more than this amount of a file will be downloaded. The default is 5242880 (5 MB). Command line option: none
Files larger than NUMBER bytes will not be parsed for links. The default is 1048576 (1 MB). Command line option: none
Maximum number of URLs to check. New URLs will not be queued after the given number of URLs is checked. The default is to queue and check all URLs. Command line option: none
Limit the maximum number of requests per second to one host. The default is 10. Command line option: none
When using http, fetch robots.txt, and confirm whether each URL should be accessed before checking. The default is to use robots.txt files. Command line option: --no-robots
Allowed URL schemes as comma-separated list. Command line option: none

Only check syntax of URLs matching the given regular expressions. Command line option: --ignore-url
Ignore the comma-separated list of warnings. See WARNINGS for the list of supported warnings. Command line option: none
Regular expression to add more URLs recognized as internal links. Default is that URLs given on the command line are internal. Command line option: none
Check but do not recurse into URLs matching the given regular expressions. Command line option: --no-follow-url
Check external links. Default is to check internal links only. Command line option: --check-extern

Provide individual username/password pairs for different links. In addtion to a single login page specified with loginurl multiple FTP, HTTP (Basic Authentication) and telnet links are supported. Entries are a triple (URL regex, username, password) or a tuple (URL regex, username), where the entries are separated by whitespace. The password is optional and if missing it has to be entered at the commandline. If the regular expression matches the checked URL, the given username/password pair is used for authentication. The command line options -u and -p match every link and therefore override the entries given here. The first match wins. Command line option: -u, -p
The URL of a login page to be visited before link checking. The page is expected to contain an HTML form to collect credentials and submit them to the address in its action attribute using an HTTP POST request. The name attributes of the input elements of the form and the values to be submitted need to be available (see entry for an explanation of username and password values).
The name attribute of the username input element. Default: login.
The name attribute of the password input element. Default: password.
Optionally the name attributes of any additional input elements and the values to populate them with. Note that these are submitted without checking whether matching input elements exist in the HTML form.

Print debugging output for the given modules. Available debug modules are cmdline, checking, cache, dns, thread, plugins and all. Specifying all is an alias for specifying all available loggers. Command line option: --debug
Output to a file linkchecker-out.TYPE, or $HOME/.linkchecker/failures for failures output. Valid file output types are text, html, sql, csv, gml, dot, xml, none or failures. Default is no file output. The various output types are documented below. Note that you can suppress all console output with output=none. Command line option: --file-output
Specify output type as text, html, sql, csv, gml, dot, xml, none or failures. Default type is text. The various output types are documented below. The ENCODING specifies the output encoding, the default is that of your locale. Valid encodings are listed at https://docs.python.org/library/codecs.html#standard-encodings. Command line option: --output
If set, operate quiet. An alias for log=none. This is only useful with fileoutput. Command line option: --verbose
Control printing check status messages. Default is 1. Command line option: --no-status
If set log all checked URLs once. Default is to log only errors and warnings. Command line option: --verbose
If set log warnings. Default is to log warnings. Command line option: --no-warnings

Specify output filename for text logging. Default filename is linkchecker-out.txt. Command line option: --file-output
Comma-separated list of parts that have to be logged. See LOGGER PARTS below. Command line option: none
Valid encodings are listed in https://docs.python.org/library/codecs.html#standard-encodings. Default encoding is iso-8859-15.
Color settings for the various log parts, syntax is color or type;color. The type can be bold, light, blink, invert. The color can be default, black, red, green, yellow, blue, purple, cyan, white, Black, Red, Green, Yellow, Blue, Purple, Cyan or White. Command line option: none
Set parent color. Default is white.
Set URL color. Default is default.
Set name color. Default is default.
Set real URL color. Default is cyan.
Set base URL color. Default is purple.
Set valid color. Default is bold;green.
Set invalid color. Default is bold;red.
Set info color. Default is default.
Set warning color. Default is bold;yellow.
Set download time color. Default is default.
Set reset color. Default is default.

See [text] section above.
See [text] section above.
See [text] section above.

See [text] section above.
See [text] section above.
See [text] section above.

See [text] section above.
See [text] section above.
See [text] section above.
Set CSV separator. Default is a comma (,).
Set CSV quote character. Default is a double quote (").

See [text] section above.
See [text] section above.
See [text] section above.
Set database name to store into. Default is linksdb.
Set SQL command separator character. Default is a semicolon (;).

See [text] section above.
See [text] section above.
See [text] section above.
Set HTML background color. Default is #fff7e5.
Set HTML URL color. Default is #dcd5cf.
Set HTML border color. Default is #000000.
Set HTML link color. Default is #191c83.
Set HTML warning color. Default is #e0954e.
Set HTML error color. Default is #db4930.
Set HTML valid color. Default is #3ba557.

See [text] section above.
See [text] section above.

See [text] section above.
See [text] section above.
See [text] section above.

See [text] section above.
See [text] section above.
See [text] section above.

See [text] section above.
See [text] section above.
See [text] section above.
A number between 0.0 and 1.0 determining the priority. The default priority for the first URL is 1.0, for all child URLs 0.5.
How frequently pages are changing.

for all parts
a unique ID for each logentry
the full url link
valid or invalid, with messages
1 or 0, only in some logger types reported
base href=...
<a href=...>name</a> and <img alt="name">
if any
some additional info, e.g. FTP welcome messages
warnings
download time
check time
the original url name, can be relative
the blurb at the beginning, "starting at ..."
the blurb at the end, "found x errors ..."

Some option values can span multiple lines. Each line has to be indented for that to work. Lines starting with a hash (#) will be ignored, though they must still be indented.

ignore=

lconline
bookmark
# a comment
^mailto:


[output]
log=html
[checking]
threads=5
[filtering]
ignorewarnings=http-moved-permanent


All plugins have a separate section. If the section appears in the configuration file the plugin is enabled. Some plugins read extra options in their section.

Checks validity of HTML anchors.

Adds the country and if possible city name of the URL host as info. Needs GeoIP or pygeoip and a local country or city lookup DB installed.

Define a regular expression which prints a warning if it matches any content of the checked link. This applies only to valid pages, so we can get their content.

Use this to check for pages that contain some form of error message, for example "This page has moved" or "Oracle Application error". REGEX should be unquoted.

Note that multiple values can be combined in the regular expression, for example "(This page has moved|Oracle Application error)".


Check SSL certificate expiration date. Only internal https: links will be checked. A domain will only be checked once to avoid duplicate warnings.

Configures the expiration warning time in days.

Check the syntax of HTML pages with the online W3C HTML validator. See https://validator.w3.org/docs/api.html.

Print HTTP headers in URL info.

List of comma separated header prefixes. For example to display all HTTP headers that start with "X-".

Check the syntax of HTML pages with the online W3C CSS validator. See https://jigsaw.w3.org/css-validator/manual.html#expert.

Checks the page content for virus infections with clamav. A local clamav daemon must be installed.

Filename of clamd.conf config file.

Parse PDF files for URLs to check. Needs the pdfminer Python package installed.

Parse Word files for URLs to check. Needs the pywin32 Python extension installed.

Parse Markdown files for URLs to check.

Regular expression matching the names of Markdown files.

The following warnings are recognized in the 'ignorewarnings' config file entry:

The file: URL is missing a trailing slash.
The file: path is not the same as the system specific path.
The ftp: URL is missing a trailing slash.
An error occurred while storing a cookie.
The URL had no content.
The mail MX host could not be found.
The NNTP newsgroup could not be found.
No NNTP server was found.
The URL content size is zero.
The URL content size is too large.
The effective URL is different from the original.
Could not get the content of the URL.
The IP is obfuscated.
The URL contains leading or trailing whitespace.

linkchecker(1)

Bastian Kleineidam <bastian.kleineidam@web.de>

2000-2016 Bastian Kleineidam, 2010-2021 LinkChecker Authors

January 28, 2021 2021-01-28