How to block websites on laptop windows 11

Last Updated: Jan 25, 2024 by

Windows 11 is the latest operating system from Microsoft, and it comes with a range of new features and improvements. One of the key areas that has been enhanced is security, with new tools and options to help users protect their devices and data. One such feature is the ability to block websites on your laptop running Windows 11. In this article, we’ll explore how to block websites on laptop windows 11 and why it’s important for your online safety.

Why Block Websites on Windows 11?

The internet is a vast and ever-growing space, with a plethora of websites and content available at our fingertips. While this can be a great resource for information and entertainment, it also poses potential risks, especially for children. With the rise of cyberbullying, online predators, and inappropriate content, it’s essential to have control over what websites can be accessed on your laptop.

Blocking websites on Windows 11 can also help improve productivity by limiting access to distracting websites during work or study hours. It can also prevent malware and phishing attacks by blocking known malicious websites.

Windows 11 Parental Controls

Windows 11 comes with built-in parental controls that allow you to manage and monitor your child’s online activity. This includes the ability to block specific websites or categories of websites, set time limits for internet usage, and view activity reports.

To set up parental controls on Windows 11, follow these steps:

  1. Go to Settings > Accounts > Family & other users.
  2. Click on “Add a family member” and follow the prompts to create a child account.
  3. Once the account is created, click on “Manage family settings online” to access the Microsoft Family Safety website.
  4. On the website, click on “Web browsing” under the child’s account.
  5. Toggle on “Block inappropriate websites” and “Only see websites on the allowed list”.
  6. You can then add specific websites to the allowed or blocked list, or block entire categories of websites such as adult content, gambling, or social media.

Third-Party Software

While Windows 11’s built-in parental controls are a great option for families, they may not be suitable for everyone. If you’re looking for more advanced features or want to block websites on your personal laptop, there are several third-party software options available.

Some popular choices include:

  • Kaspersky Safe Kids: This software offers comprehensive parental controls, including website blocking, app management, and screen time limits.
  • Norton Family: With Norton Family, you can block websites, monitor online activity, and set time limits for internet usage.
  • Qustodio: Qustodio allows you to block websites, track online activity, and set time limits for internet usage. It also offers advanced features such as social media monitoring and location tracking.

How to Block Websites on Windows 11

Using the Hosts File

The hosts file is a text file that maps hostnames to IP addresses. By adding a website to the hosts file and redirecting it to a non-existent IP address, you can effectively block access to that website.

To block a website using the hosts file on Windows 11, follow these steps:

  1. Open File Explorer and navigate to C:\Windows\System32\drivers\etc.
  2. Right-click on the hosts file and select “Open with” > “Notepad”.
  3. At the bottom of the file, add the following line: (replace “” with the website you want to block).
  4. Save the file and close Notepad.
  5. Open Command Prompt as an administrator and type ipconfig /flushdns to clear the DNS cache.
  6. The website should now be blocked on your laptop.

Using the Windows Defender Firewall

Windows Defender Firewall is a built-in security feature that monitors and controls incoming and outgoing network traffic. By creating a rule in the firewall, you can block access to specific websites.

To block a website using Windows Defender Firewall on Windows 11, follow these steps:

  1. Go to Settings > Update & Security > Windows Security > Firewall & network protection.
  2. Click on “Advanced settings” and select “Outbound Rules” from the left-hand menu.
  3. Click on “New Rule” from the right-hand menu.
  4. Select “Custom” and click “Next”.
  5. Select “All programs” and click “Next”.
  6. Under “Protocol type”, select “TCP” and click “Next”.
  7. Under “Remote port”, select “Specific ports” and enter “80” and “443” (these are the default ports for HTTP and HTTPS).
  8. Select “Block the connection” and click “Next”.
  9. Select “Domain”, “Private”, and “Public” and click “Next”.
  10. Give the rule a name (e.g. “Block”) and click “Finish”.
  11. The website should now be blocked on your laptop.

Using Browser Extensions

If you only want to block websites on a specific browser, you can use browser extensions to do so. These extensions work by redirecting the user to a different page when they try to access a blocked website.

Some popular extensions for blocking websites include:

  • Block Site: This extension allows you to block specific websites or entire categories of websites. It also offers a password-protected mode to prevent the extension from being disabled.
  • StayFocusd: StayFocusd allows you to set a time limit for specific websites, after which they will be blocked for the rest of the day.
  • Blocker: With Blocker, you can block websites based on keywords, categories, or specific URLs.


Blocking websites on your laptop running Windows 11 is an essential step in protecting your online safety and improving productivity. Whether you use built-in parental controls, third-party software, or manual methods, it’s crucial to have control over what websites can be accessed on your device. By following the steps outlined in this article, you can easily block websites on your laptop and enjoy a safer and more productive online experience.

Gulrukh Ch

About the Author: Gulrukh Ch

Gulrukh Chaudhary, an accomplished digital marketer and technology writer with a passion for exploring the frontiers of innovation. Armed with a Master's degree in Information Technology, Gulrukh seamlessly blends her technical prowess with her creative flair, resulting in captivating insights into the world of emerging technologies. Discover more about her on her LinkedIn profile.

Leave a Reply

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