Optionalallow_If allow_fragments is set to true, URLs may include fragments (e.g. #section).
Optionalallow_If allow_protocol_relative_URLs is set to true, protocol-relative URLs (e.g. //example.com) will be accepted.
Optionalallow_If allow_query_components is set to true, URLs may contain query parameters (e.g. ?key=value).
Optionalallow_If allow_trailing_dot is set to true, the URL may include a trailing dot in the host name.
Optionalallow_If allow_underscores is set to true, underscores will be permitted in the host name.
Optionaldisallow_If disallow_auth is set to true, URLs containing authentication (e.g. user:pass@) will be rejected.
Optionalhost_If host_blacklist is set, any URL whose host matches one of the specified strings or regular expressions will be rejected.
Optionalhost_If host_whitelist is set, only URLs whose host matches one of the strings or regular expressions in the list will be allowed.
Optionalmax_If max_allowed_length is set, it defines the maximum number of characters allowed in the URL.
If set to false, no length check will be applied.
OptionalprotocolsIf protocols is set, only URLs using one of the specified protocols will be considered valid.
Optionalrequire_If require_host is set to true, the URL must contain a valid host.
Optionalrequire_If require_port is set to true, the URL must include an explicit port number.
Optionalrequire_If require_protocol is set to true, the URL must include a protocol (e.g. http://).
Optionalrequire_If require_tld is set to true, the validator will require the URL to include a top-level domain.
Optionalrequire_If require_valid_protocol is set to true, the protocol must be one of the allowed values defined in protocols.
Optionalvalidate_If validate_length is set to true, the validator will enforce a maximum length on the URL.
Options to be passed to the UrlProperty decorator.