Defining user rules

Allowing a domain

To allow domains (prevent it from being blocked/redirected by filter lists), run:

tblock -a example.com example.org

Or the long operation:

tblock --allow example.com example.org

Allow wildcards

With TBlock, you can also add wildcards allowing rules. Here, to allow all subdomains of example.org but not example.org itself:

tblock -a *.example.org

Blocking a domain

To block domains, run:

tblock -b example.com example.org

Or the long operation:

tblock --block example.com example.org

Redirecting a domain

Redirecting domains should not be done, unless you know exactly what you are doing. If so, then you can redirect the domains you want to a specific IP address (in this case 0.0.0.0):

tblock -r example.com example.org -i 0.0.0.0

Or the long operation:

tblock --redirect example.com example.org --ip 0.0.0.0