Turn a list of IOCs into STIX 2.1, MISP JSON, CSV, Suricata rules or a YARA skeleton.
Blocklist Converter
Use Blocklist Converter
What it does
Paste domains, URLs or any text and get a blocklist for a hosts file, AdGuard or uBlock Origin, Pi-hole, an RPZ zone, dnsmasq or Unbound. Hosts are cut to their registrable domain with the Public Suffix List, and large platforms are held back so they are not blocked by accident.
It runs entirely in your browser: nothing you enter is uploaded.
How to use Blocklist Converter
- Paste names or text. Paste domains, URLs, hosts-file lines, adblock rules or any text, up to 5 MB. Defanged input is refanged, and comment lines of hosts files, adblock lists and zone files are ignored.
- Pick the output format. Choose hosts file, AdGuard / uBlock Origin, Pi-hole plain or regex list, RPZ zone, dnsmasq, Unbound or a plain list.
- Set the options. Keep Entries on Registrable domain to cover all subdomains, or switch to Full host as written. Leave the protected-domains box unticked unless you really mean to block a big platform.
- Convert. Press Convert or Ctrl+Enter. Later changes to the format, header, entry mode or protected box update the result at once.
- Check what was left out. Read the summary, the Held back as protected box and the Skipped line, then open How each entry was built to see which hosts made each entry.
- Save or pass on. Copy the list or download the file named under it. Send to… opens the result in the IOC Converter or the Abuse Report Generator.
Example
Drainer hosts, a GitHub Pages site and a Google Forms link
hxxps://connect.wallet-verify[.]example/claim
www.wallet-verify.example
https://example.github.io/airdrop
0.0.0.0 tracker.bad.example
docs.google.com/forms/d/e/demo/viewform3 names written (6 lines in the file) from 5 hosts found, reduced to 3 registrable domains.
Held back as protected: google[.]com (from docs[.]google[.]com). Phishing pages on big platforms are reported to the platform; tick "include anyway" only if you mean to block the whole name.
Each host is cut to its registrable domain with the Public Suffix List (2026-10-20). On private suffixes such as *.github.io, *.pages.dev, *.workers.dev or *.netlify.app the registrable domain is the host itself, so a whole platform is never blocked.
AdGuard / uBlock Origin (||domain^)
! Title: PhishDestroy blocklist
! Generated: 2026-10-20T17:10:02.223Z by https://phishdestroy.io/developer-tools/blocklist-converter
! Entries: 3 (registrable domains, subdomains included)
||bad.example^
||example.github.io^
||wallet-verify.example^
Download blocklist-adguard.txt
How each entry was built (3)AdGuard rules ||bad.example^, ||example.github.io^ and ||wallet-verify.example^. example.github.io stays a separate entry because github.io is a private suffix, and docs.google.com is held back as the protected domain google.com.
What it checks
| Signal | What it means |
|---|---|
| Lines written, hosts found, registrable domains | How many names went into the list, from how many host names in your input. The count is of names: dnsmasq and RPZ write two lines per name. |
| Registrable domain or full host | Registrable mode cuts login.secure-pay.example to secure-pay.example with the Public Suffix List. Full host keeps exactly what you pasted. |
| Private suffix badge | On platforms such as *.github.io or *.pages.dev the site's own host is the registrable domain, so only that one site is blocked, not the platform. |
| Held back as protected | 55 large-platform domains, such as google.com, github.com and t.me, are left out by default. Report a phishing page there to the platform instead. |
| Protected domains included (red) | You ticked include anyway. Blocking these breaks the services for everyone who uses your list. |
| Never written | Public suffixes like com or co.uk. One entry would block every site under them. |
| Skipped | IP addresses, e-mail addresses and lines without a usable host. Sinkhole addresses such as 0.0.0.0 in hosts lines are ignored silently. |
| Exact-match formats | hosts and Pi-hole plain lists match exact names, so the hosts you pasted are listed next to their registrable domain. Other subdomains are still not blocked. |
| IDN badge | In How each entry was built, punycode names starting with xn-- also show their Unicode form, which helps you spot lookalike domains. |
More examples
hosts file from mixed input
login.secure-pay.example
www.secure-pay.example
203.0.113.9
help@secure-pay.example3 names written (6 lines in the file, with the header) from 2 hosts found, reduced to 1 registrable domain: 0.0.0.0 login.secure-pay.example, 0.0.0.0 secure-pay.example and 0.0.0.0 www.secure-pay.example. Skipped: 1 IP address (203[.]0[.]113[.]9); 1 e-mail address.
Pi-hole regex for a punycode domain
xn--exmple-cua.example
https://mail.xn--exmple-cua.example/login1 line written from 2 hosts found, reduced to 1 registrable domain: (\.|^)xn\-\-exmple\-cua\.example$. How each entry was built marks it IDN and shows exämple.example.
dnsmasq with Full host as written
hxxps://cdn.wallet-verify[.]example/app.js
connect.wallet-verify.exampleThe summary counts names and adds how many rule lines dnsmasq wrote: two per name, address=/name/0.0.0.0 and address=/name/:: for IPv4 and IPv6.
FAQ
What does the converter do with my input?
It refangs the text, takes every host name from URLs, hosts-file lines, adblock rules or plain text, removes duplicates, sorts the names and writes them in the chosen format. By default each host is cut to its registrable domain with the Public Suffix List, so login.evil.example and www.evil.example become one entry for evil.example.
Why are some names left out of the list?
Public suffixes such as com, co.uk or github.io are never written, because one entry would block every site under them. About 55 protected domains of large platforms (Google, Microsoft, Apple, GitHub, Cloudflare and others) are held back unless you tick include anyway, IP addresses are skipped because DNS blocklists match names, and hosts files only block the exact names listed.
Is my list sent anywhere?
No. Extraction, the Public Suffix List lookup and the conversion run in your browser, and the result is only copied or downloaded when you ask for it.
Which format fits my setup?
Use a hosts file for a single computer, AdGuard / uBlock Origin for browser blockers and AdGuard Home, Pi-hole lists for Pi-hole, RPZ for BIND, Knot or PowerDNS, and the dnsmasq or Unbound files for those resolvers. RPZ, dnsmasq, Unbound, AdGuard and the Pi-hole regex list cover subdomains.
When should I use Full host as written?
When the registrable domain belongs to a real business whose site was hacked, or to a service that is not in the Public Suffix List. Blocking only the bad host keeps the rest of the site reachable.
Why do the names and the lines in the file differ?
The summary counts names first. dnsmasq writes one line for IPv4 and one for IPv6 per name, RPZ writes the name and a wildcard line, and the optional header adds comment lines; the summary shows these line counts next to the names.