HostlistsRegistry
Known hosts blocklists that are made available to the users of AdGuard products
Install / Use
/learn @AdguardTeam/HostlistsRegistryREADME
AdGuard Host Lists Registry
- What Blocklists Can Be Added Here
- Where Blocklists Are Published
- Filters Metadata
- Services Metadata
- Safe Search Filters
- How to Build
- How to Compress
- Localizations
This repository contains the known hosts blocklists that are made available to the users of AdGuard products (AdGuard DNS, AdGuard Home, etc).
Some of these blocklists are automatically converted to the rules format that AdGuard product understand better.
<a id="published"></a> Where Blocklists Are Published
filters.jsoncontains all the blocklists added to the repo.downloadURLis the location of the re-hosted blocklist.services.jsonis the meta-data of "Web Services". This is a part of the parental control functionality of AdGuard Home and AdGuard DNS.
<a id="what-blocklists"></a> What Blocklists Can Be Added Here
-
The blocklist should be oriented towards DNS-level content blockers. There is a different repo for browser content blockers.
-
We prefer (mostly) original lists to compilations.
-
We prefer blocklists that are specifically made for AdGuard Home and use adblock-style syntax. Lists that use
/etc/hostscan also be added if there is no alternative. -
The blocklist should have a clear purpose.
Examples:
- good: "blocks TV ads".
- bad: "John Doe's personal blocklist"
-
The blocklist should have a place for receiving user complaints and holding discussions, such as a repository on github.com, or a public website/forum.
-
The blocklist should be relatively popular, meaning:
- if there is a repository on GitHub, the number of stars should be at least 50.
- if there is no repository on GitHub, the number of reported issues and discussions should be at least 10 per month.
- the blocklist should be actively supported for at least 6 months.
-
The blocklist should be regularly updated with at least 10 updates per month.
-
Previously added blocklists that haven't received any support for a year will be removed. We reserve the right to remove the blocklist earlier, depending on circumstances.
-
If the blocklist contains too many problematic rules, it will not be added. A rule is considered problematic if it causes false positives or otherwise displays unitended behavior. Decisions about blocklists with problematic rules are arbitrary and there may be exceptions.
-
If the blocklist intentionally blocks or restricts access to a service for no reason other than being a reflection of the filter author's opinion, the blocklist will not get added, or will get removed if already added.
-
If the blocklist is popular in a specific region and there are no alternatives to it, then it can be added as is even if it does not satisfy requirements above.
<a id="how-to-add-a-filter-list"></a> How to add a filter list
To add a new filter, you need to:
- Go to the filters folder.
- Go to the category to which the new filter will belong.
- Create a new folder with the name
filter_(id)_(filter name). - Create two files in this folder:
configuration.jsonandmetadata.json. The contents of these files are described below. - In the file
locales/en/filters.jsonadd an object with the name and description of the filter according to the example added above.
The files /assets/filters.json and /assets/filters-dev.json must not be edited manually.
<a id="filters-meta"></a> Filters Metadata
-
metadata.jsonFilter metadata. Includes name, description, etc.
-
filterKey— unique human-readable filter identifier (string) -
filterId- unique internal filter identifier (integer) -
name— filter name; can be localized -
description— filter description -
timeAdded— time when this filter was added to the registry; milliseconds since January 1, 1970; you can execnew Date().getTime()in the browser console to get the current time -
homepage— filter website/homepage -
deprecated— optional, boolean, filter is deprecated and should not be used by the products, but filter is still available, i.e. not removed -
expires— filter's default expiration period -
displayNumber— this number is used when AdGuard sorts available filters (GUI) -
environment- eitherdevorprod. Onlyprodlists are available in AdGuard DNS. -
disabled- if set totrue, the blocklist won't be updated. -
tags— a list of tags -
<details> <summary>Metadata example</summary>trusted- a flag that allows using$dnsrewriterules for this filter. If the filter is not trusted,$dnsrewriterules will be removed from the compiled filter.
</details>{ "filterKey": "adguard_dns_filter", "filterId": 1, "name": "AdGuard DNS filter", "description": "Filter composed of several other filters (AdGuard Base filter, Social Media filter, Tracking Protection filter, Mobile Ads filter, EasyList and EasyPrivacy) and simplified specifically to be better compatible with DNS-level ad blocking.", "timeAdded": 1404115015843, "homepage": "https://kb.adguard.com/general/adguard-ad-filters", "expires": "4 days", "displayNumber": 3, "environment": "prod", "tags": [], "trusted": true } -
-
revision.jsonFilter version metadata, automatically filled and overwritten on each build.
-
filter.txtResulting compiled filter.
-
configuration.jsonConfiguration defines your filter list sources, and the transformations that are applied to the sources. See Hostlist compiler configuration for details
<a id="tags"></a> Tags
Every filter can be marked by a number of tags. Every tag metadata listed in /tags/metadata.json.
{
"tagId": 1,
"keyword": "purpose:ads"
}
</details>
Possible tags:
-
lang:*— for language-specific filters; one or multiple lang-tags can be used. For instance, AdGuard Russian filter is marked with thelang:rutag. -
purpose:*— determines filters purposes; multiple purpose-tags can be used for one filter list. -
recommended— for low-risk filter lists which are recommended to use in their category. The category is determined by the pair of thelang:*andpurpose:*tags. -
obsolete— for abandoned filter lists; filter's metadata with this tag will be excluded fromfilters.jsonandfilters_i18n.json.
<a id="how-to-add-a-blockable-service"></a> How to add a blockable service
To add a new blocked service, a new .yml file must be added to the services directory, the contents of the directory and the resulting services.json file are described in the next section.
<a id="services-meta"></a> Services Metadata
The services.json file combines information about services received from separate .yml files located in the services directory. The services.json file is generated by a script, so there is no need to modify it manually.
-
Source
.ymlfiles: Each.ymlfile contains information about a specific service. The file name must match itsid. -
File saving:
.ymlfiles are stored in the services directory. -
Updating information: In cases when it is necessary to change the configuration of a service, it is necessary to update the corresponding
.ymlfile in the services directory. -
Adding a new service: to add a new service to
services.jsonit is necessary to add.ymlfile to the services directory, after the script is run the file will be updated.
WARNING!
-
Deletion of files is strictly forbidden. If a service file is deleted, the script will restore it from a previous version of the
services.jsonfile. -
It is also forbidden to change service
idinside the.ymlfile.
Service metadata includes id, name, rules, icon_svg, group:
id— unique human-readable service identifier (string, assnake_case)name— service name (string)rules— list of domain rules in Adblock syntax (list of strings)icon_svg— svg icon (string)group- semantic group for service. Possible values:
| Full Name | Key | Definition |
|-------------------------------|-----------------|-------------------------------------------------------------------------------------------------------------|
| Artificial intelligence | ai | Provides AI-powered tools and intelligent solutions for automation, analysis, and content-making. |
| Content delivery networks (CDN)| cdn | Optimizes content delivery for websites through caching, load balancing, and strategic distribution. |
| Dating services | dating | Connects individuals seeking romantic relationships based on shared interests and preferences. |
| Gambling and betting | gambling | Offers online gaming and betting experiences with the chance to win prizes through casino games and sports wagering. |
| Gaming | gaming | Provides a diverse range of video and online games for entertainment purposes. |
| Web hosting | hosting | Offers server space and resources for hosting websites, applications, and digital content.
Related Skills
node-connect
349.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
