BLOCKDOMAINS(5)
π BLOCKDOMAINS β block list file format
okay bestie, so this is blockdomains(5) β that's section 5, the file formats section, and it's literally just about how to write a block list file. lowkey the easiest thing ever. let's go π
β¨ SYNOPSIS β¨
/etc/blockdomains/acl/blocklist.acl
ln -s ../acl/blocklist.acl /etc/blockdomains/blocked/
that's it. that's the whole vibe. one real file, one lil symlink situation. π¦
πΈ DESCRIPTION πΈ
so blockdomains reads one or more block list files, and those files contain declarations of the domains you wanna block. one domain per line, okay? and the line has to start with any number of whitespace characters followed by a period (".") before the domain you're blocking. the period is the whole entire point β it's the β¨main characterβ¨ of this file format.
and heads up: the blocking applies to the domain and all its sub domains. so you block one thing, you block the whole family tree. iconic tbh. π
anything that does not start with a period (".") is a comment, and any leading whitespace just gets ignored. no notes.
block list domains start with optional whitespace and a period, then the domain name to block, and then optionally a whitespace followed by a comment. like, comment totally optional, you do you. π«Ά
π example of a block list
.bad.domain.com -- domain name up to whitespace is blocked
see how the comment just rides along after the whitespace? the domain name goes up to the whitespace and then whatever's after that is vibes only. you're welcome. π
blank lines are fine too bestie β they're treated as comments. literally nothing happens, no drama, no error. π
and no, the block list domains don't need to be column aligned. nobody's grading your spacing, this isn't a code review. so here's another one for you:
.another.domain.to.block
End of block list example.
not me giving you two whole examples π periodt.
π SEE ALSO π
(yeah section 8, the one that actually does the blocking. this page is just the ~format~ β¨)
π AUTHOR π
Ralph Ronnquist rrq@rrq.au β thank u for your service king π«‘π
omg and that's the whole page!! this was blockdomains(5) from 2026-02-03, served fresh, written by Ralph Ronnquist, and honestly? slay. go write ur block list bestie, u got this ππ¦β¨
π¦ where this page comes from
- ubuntu resolute: blockdomains 0.1-1build1
- ubuntu stonking: blockdomains 0.1-1build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms