Cybersecurity

How to Block Malware and Phishing Sites With Free DNS Filtering

Free filtering DNS services from Cloudflare and Quad9 can stop office devices reaching known malware and phishing sites. This step-by-step guide shows how to set them up on a router, Windows PC or phone.

Read in 2 countries🇺🇸🇨🇳2 views
Wi-Fi router with antennas on a desk
Photo: "Wi-fi router" by Solijon Solayev, CC BY-SA 4.0, via Wikimedia Commons
In this article
  1. Key takeaways
  2. How DNS filtering works
  3. Choose a service
  4. Cloudflare 1.1.1.1 for Families
  5. Quad9
  6. Step 1: Set it on your office router
  7. If you cannot change the router
  8. Step 2: Set it on a Windows 11 PC
  9. Step 3: Set it on Android phones
  10. Step 4: Test that it works
  11. Troubleshooting
  12. Checklist
  13. Next steps
  14. Sources

Most scams and malware infections start with one click on a bad link. You cannot stop every message reaching your staff, but you can stop many of those links from opening. A filtering DNS service does exactly that, it is free, and setting it up on a small office network takes about 15 minutes.

This guide is for small business owners, office administrators and families who want a simple extra layer of protection without buying new equipment.

Key takeaways

  • DNS is the internet’s address book. A filtering DNS service refuses to look up addresses of known malicious sites.
  • Cloudflare’s 1.1.1.1 for Families and Quad9 both block known malware and phishing domains at no cost.
  • Setting it on your router protects every device on that network at once.
  • It is one layer, not a complete defence. Keep updates, antivirus and staff awareness in place.
Two network switches with Ethernet cables
Photo: “Network switches” by ShakataGaNai, CC BY-SA 3.0, via Wikimedia Commons

How DNS filtering works

When you type a website name, your device asks a DNS server for its numeric address. By default, that server is provided by your internet service provider. A filtering service checks each request against lists of dangerous domains. Cloudflare explains that when a domain is classified as malicious, its Families service returns the address 0.0.0.0 instead of the real one, so the device simply cannot connect.

Because the block happens before the page loads, it protects every browser and app on the device, including links opened from WhatsApp, email or SMS.

Choose a service

Cloudflare 1.1.1.1 for Families

  • Block malware (and phishing): 1.1.1.2 and 1.0.0.2. IPv6: 2606:4700:4700::1112 and 2606:4700:4700::1002.
  • Block malware and adult content: 1.1.1.3 and 1.0.0.3. IPv6: 2606:4700:4700::1113 and 2606:4700:4700::1003. Useful for shared or public-facing computers.
  • Encrypted hostnames: security.cloudflare-dns.com (malware) and family.cloudflare-dns.com (malware and adult content).

Quad9

  • Recommended service (malware blocking with DNSSEC validation): 9.9.9.9 and 149.112.112.112. IPv6: 2620:fe::fe and 2620:fe::9.
  • Encrypted hostname: dns.quad9.net.
  • Avoid 9.9.9.10, which Quad9 labels “unsecured” with no malware blocking.

Pick one service and use both of its addresses. Quad9 advises entering all listed addresses so a single failure does not cut you off.

Step 1: Set it on your office router

This protects every phone, laptop and printer that joins the network, according to Cloudflare’s router guide.

  1. Open your router’s admin page in a browser. Common addresses are http://192.168.1.1 or http://192.168.0.1; check the label under the router. Some ISP-supplied routers use a different address.
  2. Log in with the admin username and password. If it is still the default printed on the router, change it after this task.
  3. Find the DNS settings. They are often under WAN, Internet, LAN or DHCP, depending on the brand.
  4. Write down the current DNS addresses and keep them safe, so you can undo the change if needed.
  5. Enter your chosen primary and secondary addresses, for example 1.1.1.2 and 1.0.0.2.
  6. If your router has IPv6 DNS fields, enter the matching IPv6 addresses.
  7. Save, then restart the router or reconnect devices so they pick up the new settings.

If you cannot change the router

Some ISP-managed routers lock DNS settings. In that case, configure individual devices as below, or ask your ISP or IT provider to make the change.

Step 2: Set it on a Windows 11 PC

Use this for laptops that move between networks, following Cloudflare’s Windows steps:

  1. Open Start > Settings > Network & internet.
  2. Select your Wi-Fi or Ethernet adapter.
  3. Next to DNS server assignment, select Edit.
  4. Change Automatic (DHCP) to Manual.
  5. Turn on IPv4 and enter the preferred and alternate addresses.
  6. Turn on IPv6 and enter the IPv6 addresses if available, then select Save.

Step 3: Set it on Android phones

Android’s Private DNS setting encrypts lookups and works on mobile data as well as Wi-Fi.

  1. Open Settings > Network & internet (the wording varies by brand) and find Private DNS.
  2. Choose Private DNS provider hostname.
  3. Enter security.cloudflare-dns.com or dns.quad9.net, then save.

Step 4: Test that it works

  • For Cloudflare, visit Cloudflare’s test page malware.testcategory.com. If filtering works, the page should fail to load.
  • Browse a few normal business sites, your bank and your email to confirm everything else loads.

Troubleshooting

  • A legitimate site is blocked: Cloudflare accepts miscategorisation reports through its categorisation feedback page on Cloudflare Radar. Meanwhile, switch that one device back to its original DNS if the site is essential.
  • Nothing loads after the change: recheck for typing errors, then restore the addresses you saved in Step 1.
  • Some devices are not filtered: devices with their own manual DNS settings or VPNs ignore the router setting. Check them individually.
  • Browsers using their own secure DNS may bypass the router. In Chrome or Edge, check the Use secure DNS setting and point it to the same provider.

Checklist

  • Chose one filtering service and noted both addresses
  • Saved the old DNS settings
  • Updated the router and changed its default admin password
  • Configured laptops and phones that leave the office
  • Tested with the test page and normal business sites
  • Told staff that a blocked page is a warning sign, not a fault

Next steps

DNS filtering only blocks sites already known to be dangerous, so brand-new scam pages can slip through. Pair it with automatic updates, multi-factor authentication and regular staff reminders about fake links and payment requests.

Sources

Featured image: Photo: “Wi-fi router” by Solijon Solayev, CC BY-SA 4.0, via Wikimedia Commons — source

Was this article helpful?

Embed this on your website

Run a website, school, church or company intranet? Paste this code to show this article as a card. It stays up to date automatically.

Or show your visitors the latest scam alerts, updated automatically:

Written by

Verified expert

Cybersecurity Analyst

Federal Capital Territory (Abuja)

  • Phising
  • Fraud Prevention
  • Cybersecurity Awareness and Training
  • Cloud Security
  • IT Risk Management

Credentials: MCPN, MNCS, IAENG | System Analyst · Web Developer · CEH · CC · CDST

Got expertise to share? Write for us →

Leave a Reply

Your email address will not be published. Required fields are marked *