Skip to content

Syntax Check

Domains / IPs Syntax

PyFunceble can check the syntax of domains and IPs.

Input Source: Inline

You can check the syntax of a domain or IP, by running PyFunceble with the -d argument along with --syntax argument.

pyfunceble -d github.com --syntax

The -d argument can also take multiple domains to test.

pyfunceble -d github.com gitlab.com gitea.com 93.184.216.34 --syntax

Input Source: File

You can check the syntax of the domains or IPs located inside a file, by giving the file path-s to PyFunceble through the -f argument.

pyfunceble -f ./source.list --syntax
pyfunceble -f https://example.org/my/awesome/file --syntax

When using the -f argument, the inputted source can be:

  • any file-s on your filesystem accessible by the user running PyFunceble.
  • an HTTP (raw) URLs of the file you want PyFunceble to download and check.

When testing for the syntax of domains or IPs, PyFunceble supports the following file formats:

  • hosts file
  • plain text file
  • AdBlock filter list (please use with the --adblock argument)
  • RPZ (formatted) file (please use with the --rpz argument)

URLs Syntax

PyFunceble can check the syntax of URLs.

Input Source: Inline

You can check the syntax of a URL through the -u argument of PyFunceble.

pyfunceble -u https://github.com/pyfunceble

That -u argument can also take multiple URLs to test.

pyfunceble -u https://github.com/pyfunceble https://gitlab.com/funilrys https://gitea.com

Input Source: File

You can check the snytax of the URLs located inside a file, by giving the file path-s to PyFunceble through the -uf argument.

pyfunceble -uf ./source.url.list
pyfunceble -uf https://example.org/my/awesome/file

Just like the -f argument, when using the -uf argument, the inputted source can be:

  • any file-s on your filesystem accessible by the user running PyFunceble.
  • an HTTP (raw) URL-s of the file you want PyFunceble to download and check.

When testing the syntax of URLs, PyFunceble following the following formats:

  • plain text file