• About Us
  • Announce
  • Privacy Policy
  • Contact us
MasterTrend Info - Technology, News and Tutorials
  • HOME
    • BLOG
  • Tutorials
  • Hardware
  • Gaming
  • Smartphones
  • Security
  • Windows
  • IA
  • Software
  • Networks
  • en_USEnglish
    • es_ESSpanish
    • pt_BRPortuguese
    • fr_FRFrench
    • it_ITItalian
    • de_DEGerman
    • ko_KRKorean
    • jaJapanese
    • zh_CNChinese
    • ru_RURussian
    • thThai
    • pl_PLPolish
    • tr_TRTurkish
    • id_IDIndonesian
    • hi_INHindi
    • arArabic
    • sv_SESwedish
    • nl_NLDutch
No result
See all results
  • HOME
    • BLOG
  • Tutorials
  • Hardware
  • Gaming
  • Smartphones
  • Security
  • Windows
  • IA
  • Software
  • Networks
  • en_USEnglish
    • es_ESSpanish
    • pt_BRPortuguese
    • fr_FRFrench
    • it_ITItalian
    • de_DEGerman
    • ko_KRKorean
    • jaJapanese
    • zh_CNChinese
    • ru_RURussian
    • thThai
    • pl_PLPolish
    • tr_TRTurkish
    • id_IDIndonesian
    • hi_INHindi
    • arArabic
    • sv_SESwedish
    • nl_NLDutch
No result
See all results
MasterTrend Info - Technology, News and Tutorials
No result
See all results
Start Windows (Real-World Use and Solutions)

Blocking sites on Windows: a guide for Windows 11

MasterTrend Insights by MasterTrend Insights
July 29, 2026
in Windows (Real-World Use and Solutions)
Reading time:19 min read
0
Blocking Windows sites - Laptop with Windows 11 showing the Windows Defender Firewall and a rule to block websites, next to a browser with access denied.

Blocking websites in Windows 11: a practical guide to restricting access to pages using Windows Defender Firewall and improving control and security of your computer.

0
SHARED
0
Views
Share on FacebookShare on Twitter

Contents

  1. Block websites on Windows 11 with the firewall
  2. When is it appropriate to block sites with the firewall?
    1. What do you need
  3. 1. Find the website's IP addresses
    1. Recommended option: query DNS using PowerShell
    2. Visual option: check IPs with IPVOID
  4. 2. Create an outbound rule to block the site
  5. 3. Check if the lock works
  6. The site continues to open: causes and solutions
    1. Addresses are missing
    2. The IP address changed
    3. There is a VPN or a proxy
    4. The rule is disabled
  7. Block websites with PowerShell
  8. How to disable or delete the rule
  9. Other ways to block sites in Windows 11
    1. Hosts file: appropriate for a few domains
    2. Chrome or Edge extensions: best for controlling distractions
    3. Microsoft Family Safety: Family account control
    4. Router or filtered DNS: for multiple devices
  10. Frequently Asked Questions
    1. Can a firewall block a specific page within a website?
    2. Does the rule block the site in all browsers?
    3. Can I block the site in only one browser?
    4. Does the block also affect my phone?
    5. Why does a blocking rule take precedence over a permitting rule?
  11. Which method to choose to block sites in Windows 11
  12. Sources and official documentation

Block websites on Windows 11 with the firewall

Windows 11 allows you to block outgoing connections to specific IP addresses using the Windows Firewall, without installing any additional software. This procedure can be used to temporarily restrict access to a service, but it's not the same as permanently blocking a domain: modern websites often use multiple addresses, content delivery networks, IPv6, and shared servers.

Direct answer: To block a site with the firewall, you must first find out all its IPv4 and IPv6 addresses and then create a custom exit rule that blocks those IPs. The blocking will work as long as the site continues to use those addresses and the connection doesn't go through a VPN or proxy.

Do not enter a URL like https://ejemplo.com/pagina on the firewall: The standard console works with IP addresses, protocols, ports, and programs, not with specific web pages or paths.

Important limitation before starting

A single IP address can host multiple websites or services. If you block an address shared by a content delivery network (CDN), pages, images, logins, or applications you didn't intend to block might also fail. Therefore, it's a good idea to note which IP address you added and give the rule a clear name so you can quickly disable it.

When is it appropriate to block sites with the firewall?

Firewall blocking is useful when you want to prevent the entire computer—or a specific program—from connecting directly to certain remote addresses. For common distractions, family monitoring, or frequently changing domain lists, there are easier-to-maintain methods.

MethodWhat blocksMain advantageLimitation
Firewall de WindowsIP addresses and network trafficIt can be applied to the entire team or to a programIPs can change or be shared
Hosts FileSpecific hostnamesSimple for a few domains on a PCEach variant of the domain must be added.
Browser extensionDomains, pages, and schedulesSuitable for productivityIt only works in the browser where it is installed.
Family SafetySites allowed or blocked for a family accountCentralized family managementMicrosoft's web filter requires Edge
Router or filtered DNSDomains for multiple devicesIt covers the home networkIt depends on the router and may require additional configuration.

What do you need

  • An account with administrator privileges in Windows 11.
  • The exact domain you want to block, including variations such as www.ejemplo.com and ejemplo.com.
  • The IPv4 and, if available, IPv6 addresses associated with the domain.
  • A record of the added IPs to review or remove the rule later.

1. Find the website's IP addresses

A domain can return more than one address, and results may vary depending on location, internet service provider, or time of the query. To reduce errors, check both the primary domain and its variant with www.

Recommended option: query DNS using PowerShell

  1. Right-click on Start and open Terminal (Administrator).
  2. Run the following commands, replacing the example domain:
Resolve-DnsName ejemplo.com -Type A Resolve-DnsName www.ejemplo.com -Type A Resolve-DnsName ejemplo.com -Type AAAA Resolve-DnsName www.ejemplo.com -Type AAAA

Record the values ​​in the column IPAddressThe records To correspond to IPv4 and the records AAAA to IPv6. If a query returns no results, it may mean that that variant does not have that type of address.

Check the result more than once. If the site uses dynamic addresses, the list may change. A rule created today may stop blocking it when the domain points to new IPs.

Visual option: check IPs with IPVOID

The original captures use IPVOID. This can serve as a visual check, although an external web tool does not replace local verification and may only show some of the available addresses.

  1. Access to IPVOID from the browser.
  2. Enter the site name in the indicated field and select Find Website IP.
IPVOID field to query the IP address of a domain
  1. Carefully write down each address that appears on the list.
Result of an IP address query for a site on IPVOID

To better understand what information an address can and cannot reveal, also consult our guide on IP leaks.

2. Create an outbound rule to block the site

With the addresses noted, create a custom rule in the Windows Firewall with advanced securityThe outbound rule prevents programs on the computer from initiating connections to the specified IP addresses.

  1. Open Windows Search and type Windows Defender Firewall with advanced securityYou can also press Windows + R, write wf.msc and press To enter.

If the Windows Search or Security app doesn't open correctly, check out our guide on what to do when Windows Security won't open.

Searching for Windows Firewall in the Windows 11 Start Menu
  1. If you have opened the classic firewall view, select Advanced settings.
Link to Advanced Windows Firewall settings
  1. In the left panel, select Exit rules.
Windows Firewall Outbound Rules panel with advanced security
  1. In the right panel of Actions, click on New rule.
New rule option in the firewall actions panel
  1. In Rule typeselect Customized and press Following.
Selecting the Custom rule type in the firewall wizard
  1. In Program, leave the option selected All programs If you want to apply the block to all browsers and applications, select [option]. To limit it to a single application, select [option]. This program access path and choose your executable file.
Option All programs in a custom firewall rule
  1. In Protocol and ports, keep Any protocol and leaves ports unrestricted. This way the rule won't depend on whether the site uses HTTP, HTTPS, or another port.
Screenshot Protocol and ports of a custom firewall rule
  1. On the screen Scope, located To which remote IP addresses does this rule apply? and brand These IP addresses.
Selection of remote IP addresses within the scope of the rule
  1. Select Add Enter each IPv4 or IPv6 address separately. Do not add the domain or protocol. https:// not even a page path.
Box to add a remote IP address to the rule

Advice: Create one rule per site or service instead of mixing many domains into a single rule. This will allow you to quickly identify which block is causing a problem.

  1. In Actionselect Block the connection and press Following.
Action: Block the connection in the firewall wizard
  1. In Profilebrand Domain, Private and Public If you want the blocking to apply across any type of network, and if the computer belongs to an organization, a managed policy can limit or override local rules.
Profile selection Domain, Private and Public for the rule
  1. Assign a descriptive name, for example Block example.com — exitIn the description, note the domain, the added IPs, and the creation date. Then select Finish.
Name and description of a blocking rule in Windows Firewall

3. Check if the lock works

  1. Completely close the browser or application that was connected to the site.
  2. Open it again and try visiting the main domain and its variant with www.
  3. Try also using another browser installed on the same computer if you chose All programs.
  4. Check that other frequently used websites are still working.

When the rule matches the remote address, the browser will typically display a connection error, a timeout, or a page similar to the following:

Example of a browser error when blocking a connection to a site

The site continues to open: causes and solutions

Addresses are missing

Repeat the DNS queries for the primary domain, www and other subdomains that the service actually loads. Add any missing IPv4 and IPv6 records.

The IP address changed

The domain may have rotated to a different address. Update the rule with the latest DNS results and remove any IPs that no longer match.

There is a VPN or a proxy

In that case, the firewall can see the connection to the VPN or proxy server, not to the final IP address of the site. Disconnect it to test the direct rule.

The rule is disabled

Verify that it appears with the enabled status, output address, blocking action, and correct network profiles.

If other pages stopped working

Disable the rule immediately. It's likely that one of the blocked IPs belongs to a shared infrastructure. Don't expand the address range to try to "force" the block; you could affect many unrelated services.

Block websites with PowerShell

The same type of rule can be created from PowerShell. Open Terminal (Administrator) and replace the example IPs with the ones you verified. Do not copy addresses from another tutorial: they must correspond to the domain you want to block.

New-NetFirewallRule ` -DisplayName "Bloquear ejemplo.com - salida" ` -Direction Outbound ` -Action Block ` -RemoteAddress "203.0.113.10","2001:db8::10" ` -Profile Any

To disable, re-enable, or remove it:

Disable-NetFirewallRule -DisplayName "Block example.com - exit" Enable-NetFirewallRule -DisplayName "Block example.com - exit" Remove-NetFirewallRule -DisplayName "Block example.com - exit"

The directions 203.0.113.10 and 2001:db8::10 These are examples reserved for documentation purposes. They don't block a real site. Replace them with the addresses obtained from your own query.

How to disable or delete the rule

Disabling preserves the settings for later use. Deleting permanently removes the rule. For testing or temporary blocking, it's best to disable it first.

  1. Open Windows Firewall and select Advanced settings.
Access to Advanced Settings to manage firewall rules
  1. On the left panel, enter Exit rules.
List of exit rules for managing the lock
  1. Locate the rule by the name you assigned, right-click, and select Disable ruleTo delete it, use Eliminate.
Option to Disable rule in Windows Firewall

After disabling it, close and reopen your browser. Access should be restored, unless there is another block in the Hosts file, an extension, your router, DNS, or a managed policy.

Other ways to block sites in Windows 11

Hosts file: appropriate for a few domains

The Hosts file allows you to associate a specific name with a local address, for example 127.0.0.1 or ::1It's more intuitive than maintaining a list of remote IPs, but you must add each name you want to block, such as the main domain and the variant with wwwAdditionally, some applications may use other subdomains or external services.

127.0.0.1 ejemplo.com 127.0.0.1 www.ejemplo.com ::1 ejemplo.com ::1 www.ejemplo.com

The file is usually located in C:\Windows\System32\drivers\etc\hosts It requires administrator privileges to save. Make a copy before modifying it and avoid downloading Hosts files from unknown sources.

Chrome or Edge extensions: best for controlling distractions

Extensions like BlockSite or StayFocusd They allow you to create schedules, limits, or lists of pages without managing IP addresses. Install them only from the official store, check the developer, the update date, and the permissions requested, as a blocker needs browsing access to recognize websites.

Microsoft Family Safety: Family account control

For a child or family account, Microsoft Family Safety allows you to authorize or block websites and apply content filters. Its main limitation is that the web and search filters work with Microsoft Edge and require the user to use their configured Microsoft account.

Router or filtered DNS: for multiple devices

If the goal is to block a domain on computers, phones, TVs, and game consoles on the same network, a router rule or a filtered DNS service is usually more scalable. The procedure depends on the router model and may not apply if a device uses a VPN, mobile data, or an independently configured DNS.

Frequently Asked Questions

Can a firewall block a specific page within a website?

Not through a normal IP rule. With HTTPS, the firewall doesn't manage routes like that. /videos or /newsTo block specific pages or sections, use an extension, a filtering proxy, or a web control solution.

Does the rule block the site in all browsers?

Yes, provided you have chosen All programs and the traffic goes directly to an IP address included in the rule. A VPN, a proxy, a new domain address, or an intermediary service can prevent the connection from matching.

Can I block the site in only one browser?

Yes. In the stage Program, select the browser executable path instead of All programsAnother simpler option is to use an extension installed only in that browser.

Does the block also affect my phone?

No. A rule created in Windows Firewall only applies to that computer. To cover other devices, configure blocking on each one, or use your router or a filtered DNS server.

Why does a blocking rule take precedence over a permitting rule?

Windows Firewall prioritizes explicit blocks when a conflict exists. Therefore, an overly broad rule might block connections that another rule is trying to allow.

Which method to choose to block sites in Windows 11

To temporarily block connections to specific IP addresses or restrict a program, a firewall outbound rule is sufficient. For one or two domains on a single PC, the Hosts file is usually easier to maintain. To control distractions with scheduled access, a file extension is more practical; and for multiple users or devices, it's best to apply filtering through Family Safety, the router, or a DNS service.

The key is not to confuse an IP block with a permanent domain block. After creating the rule, test other services, keep a list of used addresses, and review the configuration if the site becomes available again or if unexpected errors occur.

Sources and official documentation

  • Microsoft Learn: Windows Firewall Rules.
  • Microsoft Learn: Resolve-DnsName.
  • Microsoft Support: Restoring the Hosts file in Windows 11.
  • Microsoft Support: filtros web de Family Safety.
  • Google Chrome: Install and manage extensions.

Guide revised for Windows 11 in July 2026. The exact names of some menus may vary slightly depending on the language and installed build.

Share this:
FacebookLinkedInPinterestXRedditTumblrBlueskyThreadsShareChatGPTClaudeGoogle AIGrok
Tags: EvergreenContentWindows11WindowsTips
Previous Publication

Webcam privacy in Windows 11

MasterTrend Insights

MasterTrend Insights

Our editorial team shares a deep-dive analysis, tutorials and recommendations for getting the most out of your devices and digital tools.

RelatedPublications

Audio balance in Windows 11 - Woman adjusting the audio balance on a Windows 11 laptop, quick guide to setting up sound.
Windows (Real-World Use and Solutions)

Audio balancing in Windows 11: quick guide

July 27, 2026
97
Uninstalled programs in Windows 11 - Woman using a laptop to recover uninstalled programs in Windows 11.
Windows (Real-World Use and Solutions)

Uninstalled programs in Windows 11: how to recover them

July 26, 2026
99
Updating PowerShell on Windows - Woman updating PowerShell on Windows from a computer, with the PowerShell logo and the text "Update PowerShell" on the screen.
Windows (Real-World Use and Solutions)

Updating PowerShell on Windows: all methods

July 26, 2026
93
Privacy in Windows 11 - Woman using a laptop at home configuring privacy options in Windows 11 with O&O ShutUp10++, showing security settings and data control on screen.
Windows (Real-World Use and Solutions)

Privacy in Windows 11 with O&O ShutUp10++

June 21, 2026
128
Optional Windows 11 Features - Woman working on a Windows 11 laptop activating optional features in system settings; guide on when to enable or disable optional Windows 11 features in a modern office environment
Windows (Real-World Use and Solutions)

Optional features in Windows 11: when to turn them on or off

June 21, 2026
154
Carpeta inetpub Windows: usuario revisando error en PowerShell tras eliminar carpeta del sistema, explicando por qué no debes borrar inetpub si usas IIS o servidor web en Windows.
Windows (Real-World Use and Solutions)

inetpub folder in Windows: why you shouldn't delete it

May 2, 2026
181
5 1 vote
Article Rating
Subscribe
Access
Notify of
guest
guest
0 Comments
Oldest
Newest Most voted
Online Comments
See all comments

Stay Connected

  • 976 Fans
  • 118 Followers
  • 1.4 k Followers
  • 1.8 k Subscribers
  • Trends
  • Comments
  • Last
🖥️ How to open 'Devices and printers' in Windows 11: 4 simple steps

🌟 How to open ‘Devices and printers’ in Windows 11: ¡Amazing trick!

June 21, 2026
Windows 11 Persistent Clock: Options for displaying a persistent clock, limitations and practical decisions, with blue background, Windows icon and minimalist analog clock.

Windows 11 Persistent Clock: Options, Limits, and Real Decisions

June 21, 2026
Ethernet not working in Windows 11: 9 easy tricks

Ethernet not working in Windows 11: 3-minute solution ⚡🌐

13 November 2025
How to save game in REPO

How to save game in REPO 🔥 Discover the secret to not losing progress

7 July 2025
Features of Gmail on Android: Save time with 5 tips

Features of Gmail in Android: you 5 tricks you did not know! 📱✨

12
Notebook motherboard repair: internal view with motherboard, cooling system, fans and key components to check in an open laptop

Notebook Motherboard Repair – Step-by-Step Diagnosis

10
Install Windows 11 Home without Internet

Install Windows 11 Home without Internet

10
How to backup drivers in Windows 11/10 in 4 steps!

How to backup drivers in Windows 11/10 It Prevents errors! 🚨💾

10
Blocking Windows sites - Laptop with Windows 11 showing the Windows Defender Firewall and a rule to block websites, next to a browser with access denied.

Blocking sites on Windows: a guide for Windows 11

July 29, 2026
Webcam privacy - Woman in front of a Windows 11 computer with webcam, configuring privacy to prevent applications from using the camera.

Webcam privacy in Windows 11

July 28, 2026
Audio balance in Windows 11 - Woman adjusting the audio balance on a Windows 11 laptop, quick guide to setting up sound.

Audio balancing in Windows 11: quick guide

July 27, 2026
Uninstalled programs in Windows 11 - Woman using a laptop to recover uninstalled programs in Windows 11.

Uninstalled programs in Windows 11: how to recover them

July 26, 2026

Recent News

Blocking Windows sites - Laptop with Windows 11 showing the Windows Defender Firewall and a rule to block websites, next to a browser with access denied.

Blocking sites on Windows: a guide for Windows 11

July 29, 2026
0
Webcam privacy - Woman in front of a Windows 11 computer with webcam, configuring privacy to prevent applications from using the camera.

Webcam privacy in Windows 11

July 28, 2026
101
Audio balance in Windows 11 - Woman adjusting the audio balance on a Windows 11 laptop, quick guide to setting up sound.

Audio balancing in Windows 11: quick guide

July 27, 2026
97
Uninstalled programs in Windows 11 - Woman using a laptop to recover uninstalled programs in Windows 11.

Uninstalled programs in Windows 11: how to recover them

July 26, 2026
99
MasterTrend Info logo

MasterTrend Info is your source of reference in technology: discover news, tutorials, and analysis of hardware, software, gaming, mobile, and artificial intelligence. Subscribe to our newsletter and don't miss any trend.

Follow us

Browse by Category

  • Gaming & Real-World Experience
  • Hardware & Performance
  • AI Applied & Real-World Use
  • What's new
  • Networks, Wi-Fi & Internet
  • Digital Security & Privacy
  • Smartphones & Purchase Decision
  • Software & Useful Tools
  • Tutorials (Problem Solving)
  • Windows (Real-World Use and Solutions)

Recent News

Blocking Windows sites - Laptop with Windows 11 showing the Windows Defender Firewall and a rule to block websites, next to a browser with access denied.

Blocking sites on Windows: a guide for Windows 11

July 29, 2026
Webcam privacy - Woman in front of a Windows 11 computer with webcam, configuring privacy to prevent applications from using the camera.

Webcam privacy in Windows 11

July 28, 2026
  • About Us
  • Announce
  • Privacy Policy
  • Contact us

Copyright © 2025 https://mastertrend.info/ - All rights reserved. All trademarks are property of their respective owners.

We've detected you might be speaking a different language. Do you want to change to:
es_ES Spanish
es_ES Spanish
en_US English
pt_BR Portuguese
fr_FR French
it_IT Italian
ru_RU Russian
de_DE German
zh_CN Chinese
ko_KR Korean
ja Japanese
th Thai
hi_IN Hindi
ar Arabic
tr_TR Turkish
pl_PL Polish
id_ID Indonesian
nl_NL Dutch
sv_SE Swedish
Change Language
Close and do not switch language
No result
See all results
  • en_USEnglish
    • es_ESSpanish
    • pt_BRPortuguese
    • fr_FRFrench
    • it_ITItalian
    • de_DEGerman
    • ko_KRKorean
    • jaJapanese
    • zh_CNChinese
    • ru_RURussian
    • pl_PLPolish
    • id_IDIndonesian
    • tr_TRTurkish
    • hi_INHindi
    • thThai
    • arArabic
    • sv_SESwedish
    • nl_NLDutch
  • Gaming & Real-World Experience
  • Hardware & Performance
  • AI Applied & Real-World Use
  • Smartphones & Purchase Decision
  • What's new
  • Networks, Wi-Fi & Internet
  • Digital Security & Privacy
  • Software & Useful Tools
  • Tutorials (Problem Solving)
  • Windows (Real-World Use and Solutions)

Copyright © 2025 https://mastertrend.info/ - All rights reserved. All trademarks are property of their respective owners.

wpDiscuz
RedditBlueskyXMastodonHacker News
Share this:
MastodonVKWhatsAppTelegramSMSLineMessengerFlipboardHacker NewsMixNextdoorPerplexityXingYummly
Your Mastodon Instance