# URLhaus Malicious URL Blocklist A blocklist of malicious websites that are being used for malware distribution, based on the **Database dump (CSV)** of Abuse.ch [URLhaus](https://urlhaus.abuse.ch/). Blocklist is updated twice a day. There are multiple formats available, refer to the appropriate section according to the program used: - uBlock Origin (uBO) -> [URL-based](#url-based) section (recommended) - Pi-hole -> [Domain-based](#domain-based) or [Hosts-based](#hosts-based) section - Hosts file -> [Hosts-based](#hosts-based) section - Dnsmasq -> [Dnsmasq](#dnsmasq) section - BIND -> [BIND](#bind) section - Unbound -> [Unbound](#unbound) section Not sure which format to choose? See [Compatibility](https://gitlab.com/curben/urlhaus-filter/wikis/compatibility) page in the wiki. ## URL-based Import the following URL into uBO to subscribe (includes online and **offline** malicious websites): - https://gitlab.com/curben/urlhaus-filter/raw/master/urlhaus-filter.txt
Mirrors - https://cdn.statically.io/gl/curben/urlhaus-filter/master/urlhaus-filter.txt - https://glcdn.githack.com/curben/urlhaus-filter/raw/master/urlhaus-filter.txt - https://raw.githubusercontent.com/curbengh/urlhaus-filter/master/urlhaus-filter.txt - https://cdn.statically.io/gh/curbengh/urlhaus-filter/master/urlhaus-filter.txt - https://gitcdn.xyz/repo/curbengh/urlhaus-filter/master/urlhaus-filter.txt - https://cdn.jsdelivr.net/gh/curbengh/urlhaus-filter/urlhaus-filter.txt - https://repo.or.cz/urlhaus-filter.git/blob_plain/refs/heads/master:/urlhaus-filter.txt

Lite version (**online** links only): - https://gitlab.com/curben/urlhaus-filter/raw/master/urlhaus-filter-online.txt
Mirrors - https://cdn.statically.io/gl/curben/urlhaus-filter/master/urlhaus-filter-online.txt - https://glcdn.githack.com/curben/urlhaus-filter/raw/master/urlhaus-filter-online.txt - https://raw.githubusercontent.com/curbengh/urlhaus-filter/master/urlhaus-filter-online.txt - https://cdn.statically.io/gh/curbengh/urlhaus-filter/master/urlhaus-filter-online.txt - https://gitcdn.xyz/repo/curbengh/urlhaus-filter/master/urlhaus-filter-online.txt - https://cdn.jsdelivr.net/gh/curbengh/urlhaus-filter/urlhaus-filter-online.txt - https://repo.or.cz/urlhaus-filter.git/blob_plain/refs/heads/master:/urlhaus-filter-online.txt
**Note:** Lite version is ~95% smaller by excluding offline urls. The status of urls is determined by the upstream Abuse.ch. However, the test is not 100% accurate and some malicious urls that are otherwise accessible may be missed. If bandwidth (4 MB/day) is not a constraint, I recommend the regular version. *PS: While regular version contains roughly >145K filters, uBO can [easily handle](https://github.com/uBlockOrigin/uBlock-issues/issues/338#issuecomment-452843669) half a million filters.* ## Domain-based This blocklist includes domains and IP addresses. - https://gitlab.com/curben/urlhaus-filter/raw/master/urlhaus-filter-domains.txt
Mirrors - https://cdn.statically.io/gl/curben/urlhaus-filter/master/urlhaus-filter-domains.txt - https://glcdn.githack.com/curben/urlhaus-filter/raw/master/urlhaus-filter-domains.txt - https://raw.githubusercontent.com/curbengh/urlhaus-filter/master/urlhaus-filter-domains.txt - https://cdn.statically.io/gh/curbengh/urlhaus-filter/master/urlhaus-filter-domains.txt - https://gitcdn.xyz/repo/curbengh/urlhaus-filter/master/urlhaus-filter-domains.txt - https://cdn.jsdelivr.net/gh/curbengh/urlhaus-filter/urlhaus-filter-domains.txt - https://repo.or.cz/urlhaus-filter.git/blob_plain/refs/heads/master:/urlhaus-filter-domains.txt

Lite version (online domains/IPs only): - https://gitlab.com/curben/urlhaus-filter/raw/master/urlhaus-filter-domains-online.txt
Mirrors - https://cdn.statically.io/gl/curben/urlhaus-filter/master/urlhaus-filter-domains-online.txt - https://glcdn.githack.com/curben/urlhaus-filter/raw/master/urlhaus-filter-domains-online.txt - https://raw.githubusercontent.com/curbengh/urlhaus-filter/master/urlhaus-filter-domains-online.txt - https://cdn.statically.io/gh/curbengh/urlhaus-filter/master/urlhaus-filter-domains-online.txt - https://gitcdn.xyz/repo/curbengh/urlhaus-filter/master/urlhaus-filter-domains-online.txt - https://cdn.jsdelivr.net/gh/curbengh/urlhaus-filter/urlhaus-filter-domains-online.txt - https://repo.or.cz/urlhaus-filter.git/blob_plain/refs/heads/master:/urlhaus-filter-domains-online.txt
## Hosts-based This blocklist includes domains only. - https://gitlab.com/curben/urlhaus-filter/raw/master/urlhaus-filter-hosts.txt
Mirrors - https://cdn.statically.io/gl/curben/urlhaus-filter/master/urlhaus-filter-hosts.txt - https://glcdn.githack.com/curben/urlhaus-filter/raw/master/urlhaus-filter-hosts.txt - https://raw.githubusercontent.com/curbengh/urlhaus-filter/master/urlhaus-filter-hosts.txt - https://cdn.statically.io/gh/curbengh/urlhaus-filter/master/urlhaus-filter-hosts.txt - https://gitcdn.xyz/repo/curbengh/urlhaus-filter/master/urlhaus-filter-hosts.txt - https://cdn.jsdelivr.net/gh/curbengh/urlhaus-filter/urlhaus-filter-hosts.txt - https://repo.or.cz/urlhaus-filter.git/blob_plain/refs/heads/master:/urlhaus-filter-hosts.txt

Lite version (online domains only): - https://gitlab.com/curben/urlhaus-filter/raw/master/urlhaus-filter-hosts-online.txt
Mirrors - https://cdn.statically.io/gl/curben/urlhaus-filter/master/urlhaus-filter-hosts-online.txt - https://glcdn.githack.com/curben/urlhaus-filter/raw/master/urlhaus-filter-hosts-online.txt - https://raw.githubusercontent.com/curbengh/urlhaus-filter/master/urlhaus-filter-hosts-online.txt - https://cdn.statically.io/gh/curbengh/urlhaus-filter/master/urlhaus-filter-hosts-online.txt - https://gitcdn.xyz/repo/curbengh/urlhaus-filter/master/urlhaus-filter-hosts-online.txt - https://cdn.jsdelivr.net/gh/curbengh/urlhaus-filter/urlhaus-filter-hosts-online.txt - https://repo.or.cz/urlhaus-filter.git/blob_plain/refs/heads/master:/urlhaus-filter-hosts-online.txt
## Dnsmasq This blocklist includes domains only. ### Install ``` # Create a new folder to store the blocklist mkdir -p /usr/local/etc/dnsmasq/ # Create a new cron job for daily update printf '#!/bin/sh\ncurl -L "https://gitlab.com/curben/urlhaus-filter/raw/master/urlhaus-filter-dnsmasq.conf" -o "/usr/local/etc/dnsmasq/urlhaus-filter-dnsmasq.conf"\n' > /etc/cron.daily/urlhaus-filter # cron job requires execution permission chmod 755 /etc/cron.daily/urlhaus-filter # Configure dnsmasq to use the blocklist printf "\nconf-file=/usr/local/etc/dnsmasq/urlhaus-filter-dnsmasq.conf\n" >> /etc/dnsmasq.conf ```
Mirrors - https://cdn.statically.io/gl/curben/urlhaus-filter/master/urlhaus-filter-dnsmasq.conf - https://glcdn.githack.com/curben/urlhaus-filter/raw/master/urlhaus-filter-dnsmasq.conf - https://raw.githubusercontent.com/curbengh/urlhaus-filter/master/urlhaus-filter-dnsmasq.conf - https://cdn.statically.io/gh/curbengh/urlhaus-filter/master/urlhaus-filter-dnsmasq.conf - https://gitcdn.xyz/repo/curbengh/urlhaus-filter/master/urlhaus-filter-dnsmasq.conf - https://cdn.jsdelivr.net/gh/curbengh/urlhaus-filter/urlhaus-filter-dnsmasq.conf - https://repo.or.cz/urlhaus-filter.git/blob_plain/refs/heads/master:/urlhaus-filter-dnsmasq.conf

Lite version (online domains only): - https://gitlab.com/curben/urlhaus-filter/raw/master/urlhaus-filter-dnsmasq-online.conf
Mirrors - https://cdn.statically.io/gl/curben/urlhaus-filter/master/urlhaus-filter-dnsmasq-online.conf - https://glcdn.githack.com/curben/urlhaus-filter/raw/master/urlhaus-filter-dnsmasq-online.conf - https://raw.githubusercontent.com/curbengh/urlhaus-filter/master/urlhaus-filter-dnsmasq-online.conf - https://cdn.statically.io/gh/curbengh/urlhaus-filter/master/urlhaus-filter-dnsmasq-online.conf - https://gitcdn.xyz/repo/curbengh/urlhaus-filter/master/urlhaus-filter-dnsmasq-online.conf - https://cdn.jsdelivr.net/gh/curbengh/urlhaus-filter/urlhaus-filter-dnsmasq-online.conf - https://repo.or.cz/urlhaus-filter.git/blob_plain/refs/heads/master:/urlhaus-filter-dnsmasq-online.conf
## BIND This blocklist includes domains only. ### Install ``` # Create a new folder to store the blocklist mkdir -p /usr/local/etc/bind/ # Create a new cron job for daily update printf '#!/bin/sh\ncurl -L "https://gitlab.com/curben/urlhaus-filter/raw/master/urlhaus-filter-bind.conf" -o "/usr/local/etc/bind/urlhaus-filter-bind.conf"\n' > /etc/cron.daily/urlhaus-filter # cron job requires execution permission chmod 755 /etc/cron.daily/urlhaus-filter # Configure BIND to use the blocklist printf '\ninclude "/usr/local/etc/bind/urlhaus-filter-bind.conf";\n' >> /etc/bind/named.conf ``` Add this to "/etc/bind/null.zone.file" (skip this step if the file already exists): ``` $TTL 86400 ; one day @ IN SOA ns.nullzone.loc. ns.nullzone.loc. ( 2017102203 28800 7200 864000 86400 ) NS ns.nullzone.loc. A 0.0.0.0 @ IN A 0.0.0.0 * IN A 0.0.0.0 ``` Zone file is derived from [here](https://github.com/tomzuu/blacklist-named/blob/master/null.zone.file).
Mirrors - https://cdn.statically.io/gl/curben/urlhaus-filter/master/urlhaus-filter-bind.conf - https://glcdn.githack.com/curben/urlhaus-filter/raw/master/urlhaus-filter-bind.conf - https://raw.githubusercontent.com/curbengh/urlhaus-filter/master/urlhaus-filter-bind.conf - https://cdn.statically.io/gh/curbengh/urlhaus-filter/master/urlhaus-filter-bind.conf - https://gitcdn.xyz/repo/curbengh/urlhaus-filter/master/urlhaus-filter-bind.conf - https://cdn.jsdelivr.net/gh/curbengh/urlhaus-filter/urlhaus-filter-bind.conf - https://repo.or.cz/urlhaus-filter.git/blob_plain/refs/heads/master:/urlhaus-filter-bind.conf

Lite version (online domains only): - https://gitlab.com/curben/urlhaus-filter/raw/master/urlhaus-filter-bind-online.conf
Mirrors - https://cdn.statically.io/gl/curben/urlhaus-filter/master/urlhaus-filter-bind-online.conf - https://glcdn.githack.com/curben/urlhaus-filter/raw/master/urlhaus-filter-bind-online.conf - https://raw.githubusercontent.com/curbengh/urlhaus-filter/master/urlhaus-filter-bind-online.conf - https://cdn.statically.io/gh/curbengh/urlhaus-filter/master/urlhaus-filter-bind-online.conf - https://gitcdn.xyz/repo/curbengh/urlhaus-filter/master/urlhaus-filter-bind-online.conf - https://cdn.jsdelivr.net/gh/curbengh/urlhaus-filter/urlhaus-filter-bind-online.conf - https://repo.or.cz/urlhaus-filter.git/blob_plain/refs/heads/master:/urlhaus-filter-bind-online.conf
## Unbound This blocklist includes domains only. ### Install ``` # Create a new folder to store the blocklist mkdir -p /usr/local/etc/unbound/ # Create a new cron job for daily update printf '#!/bin/sh\ncurl -L "https://gitlab.com/curben/urlhaus-filter/raw/master/urlhaus-filter-unbound.conf" -o "/usr/local/etc/unbound/urlhaus-filter-unbound.conf"\n' > /etc/cron.daily/urlhaus-filter # cron job requires execution permission chmod 755 /etc/cron.daily/urlhaus-filter # Configure Unbound to use the blocklist printf '\n include: "/usr/local/etc/unbound/urlhaus-filter-unbound.conf"\n' >> /etc/unbound/unbound.conf ```
Mirrors - https://cdn.statically.io/gl/curben/urlhaus-filter/master/urlhaus-filter-unbound.conf - https://glcdn.githack.com/curben/urlhaus-filter/raw/master/urlhaus-filter-unbound.conf - https://raw.githubusercontent.com/curbengh/urlhaus-filter/master/urlhaus-filter-unbound.conf - https://cdn.statically.io/gh/curbengh/urlhaus-filter/master/urlhaus-filter-unbound.conf - https://gitcdn.xyz/repo/curbengh/urlhaus-filter/master/urlhaus-filter-unbound.conf - https://cdn.jsdelivr.net/gh/curbengh/urlhaus-filter/urlhaus-filter-unbound.conf - https://repo.or.cz/urlhaus-filter.git/blob_plain/refs/heads/master:/urlhaus-filter-unbound.conf

Lite version (online domains only): - https://gitlab.com/curben/urlhaus-filter/raw/master/urlhaus-filter-unbound-online.conf
Mirrors - https://cdn.statically.io/gl/curben/urlhaus-filter/master/urlhaus-filter-unbound-online.conf - https://glcdn.githack.com/curben/urlhaus-filter/raw/master/urlhaus-filter-unbound-online.conf - https://raw.githubusercontent.com/curbengh/urlhaus-filter/master/urlhaus-filter-unbound-online.conf - https://cdn.statically.io/gh/curbengh/urlhaus-filter/master/urlhaus-filter-unbound-online.conf - https://gitcdn.xyz/repo/curbengh/urlhaus-filter/master/urlhaus-filter-unbound-online.conf - https://cdn.jsdelivr.net/gh/curbengh/urlhaus-filter/urlhaus-filter-unbound-online.conf - https://repo.or.cz/urlhaus-filter.git/blob_plain/refs/heads/master:/urlhaus-filter-unbound-online.conf
## Issues This blocklist operates by blocking the **whole** website, instead of specific webpages; exceptions are made on popular websites (e.g. `https://docs.google.com/`), in which webpages are specified instead (e.g. `https://docs.google.com/malware-page`). Malicious webpages are only listed in the [URL-based](#url-based) filter, popular websites are excluded from other filters. *Popular* websites are as listed in the [Umbrella Popularity List](https://s3-us-west-1.amazonaws.com/umbrella-static/index.html) (top 1M domains + subdomains), [Tranco List](https://tranco-list.eu/) (top 1M domains) and this [custom list](src/exclude.txt). If you wish to exclude certain website(s) that you believe is sufficiently well-known, please create an [issue](https://gitlab.com/curben/urlhaus-filter/issues) or [merge request](https://gitlab.com/curben/urlhaus-filter/merge_requests). This filter **only** accepts new malware URLs from [URLhaus](https://urlhaus.abuse.ch/). Please report new malware URL to the upstream maintainer through https://urlhaus.abuse.ch/api/#submit. ## Cloning Since the filter is updated frequently, cloning the repo would become slower over time as the revision grows. Use shallow clone to get the recent revisions only. Getting the last five revisions should be sufficient for a valid MR. `git clone --depth 5 https://gitlab.com/curben/urlhaus-filter.git` ## FAQ See [FAQ](https://gitlab.com/curben/urlhaus-filter/wikis/faq). ## License [Creative Commons Zero v1.0 Universal](LICENSE.md) [Tranco List](https://tranco-list.eu/): MIT License [Umbrella Popularity List](https://s3-us-west-1.amazonaws.com/umbrella-static/index.html): Available free of charge by Cisco Umbrella This repository is not endorsed by Abuse.ch.