# AdServers for Little Snitch 4 A very ~~hacky~~basic script to convert [Peter Lowe's AdServers blocklist][1] to the JSON-based [Little Snitch 4][2] [.lsrules][3] format, suitable for use as a [Rule group subscription][4]. It is worth noting that [@pgl][5] provides a [littlesnitch-rule-group-subscriptions][6] format, but this script uses the more compact `denied-remote-hosts` array format introduced in Little Snitch 4.2 This script requires internet access at least once, to curl the host blocklist, and emits JSON on stdout. Subscribe rules are embeddable using the `x-littlesnitch:` URL scheme. [1]: https://pgl.yoyo.org/as/ [2]: https://www.obdev.at/products/littlesnitch/index.html [3]: https://help.obdev.at/littlesnitch/ref-lsrules-file-format [4]: https://help.obdev.at/littlesnitch/lsc-rule-group-subscriptions#subscribing [5]: https://twitter.com/pgl [6]: https://pgl.yoyo.org/adservers/serverlist.php?hostformat=littlesnitch-rule-group-subscriptions