How to block not wanted website to open my pc or laptop

 To block unwanted websites from opening on your PC or laptop, you can use several methods, including modifying your system settings, using browser extensions, or installing dedicated software. Here’s how you can do it on WindowsMac, or via browser settings:


1. Block Websites by Editing the Hosts File (Windows/Mac)

You can block websites by adding them to your computer’s hosts file. This method works on both Windows and macOS.

For Windows:

  1. Open Notepad as an administrator:
    • Search for Notepad in the start menu.
    • Right-click on it and select Run as Administrator.
  2. Open the hosts file:
    • In Notepad, go to File > Open.
    • Navigate to C:\Windows\System32\drivers\etc.
    • Select All Files (instead of just Text Documents).
    • Choose the hosts file and click Open.
  3. Add the website to block:
    • At the end of the file, add a new line in this format:

      127.0.0.1 www.blockedwebsite.com
      For example:

      127.0.0.1 www.example.com
    • Repeat the process for any other websites you want to block.
  4. Save the file:
    • Press Ctrl + S to save the file.
  5. Clear your DNS cache by running this command in Command Prompt (run as administrator):
    bash
    ipconfig /flushdns

For Mac:

  1. Open Terminal:
    • Press Cmd + Space and type Terminal, then open it.
  2. Open the hosts file by typing:
    bash
    sudo nano /etc/hosts
    • Enter your password when prompted.
  3. Add the website to block:
    • Scroll to the bottom of the file and add the line:

      127.0.0.1 www.blockedwebsite.com
    • Do this for every website you want to block.
  4. Save the file:
    • Press Ctrl + O, then press Enter to save.
    • Press Ctrl + X to exit Nano.
  5. Flush your DNS cache:
    • Run the following command:
      sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

2. Use Browser Extensions to Block Websites

Each browser offers extensions that can block websites:

Google Chrome:

  • Install a browser extension like BlockSite or StayFocusd:
    1. Go to the Chrome Web Store.
    2. Search for BlockSite or StayFocusd.
    3. Install the extension and set up the blocked websites in its settings.

Mozilla Firefox:

  • Use BlockSite:
    1. Go to the Firefox Add-ons page.
    2. Search for BlockSite.
    3. Install and configure the websites you want to block in the add-on’s settings.

Microsoft Edge:

  • Use BlockSite or StayFocusd from the Edge Add-ons Store to block unwanted websites.

3. Parental Controls (Windows/Mac)

If you want a more comprehensive way to block websites, you can use parental controls on both Windows and macOS.

For Windows 10/11:

  1. Open Settings > Accounts > Family & other users.
  2. Add a child account and set parental controls.
  3. Go to the Family Safety website and log in.
  4. Navigate to Web and search restrictions.
  5. Add websites to the Block list.

For macOS:

  1. Go to System Preferences > Screen Time > Content & Privacy.
  2. Enable Content & Privacy Restrictions.
  3. Under the Web Content section, select Limit Adult Websites and add specific websites to the block list.

4. Use Third-Party Software

You can also use third-party applications to block websites on your PC or laptop:

  • Cold Turkey: This software allows you to block websites for a specific period.
  • Net Nanny: A parental control app that blocks harmful websites and limits internet access.
  • Kaspersky Safe Kids: Blocks unwanted content and allows parents to monitor children’s browsing.

5. Router-Level Website Blocking

If you want to block websites for all devices connected to your Wi-Fi network, you can block websites at the router level.

  1. Log into your router’s admin panel (usually via an IP address like 192.168.1.1 or 192.168.0.1).
  2. Look for Parental Controls or Website Filtering options.
  3. Add the URLs of the websites you want to block.
  4. Save the settings and reboot the router.

6. Use DNS-Based Website Blocking

You can use a custom DNS service to block websites at the DNS level, affecting all devices connected to the network.

  • OpenDNS: Free service that lets you block specific websites.
    1. Create an account at OpenDNS.
    2. Set up OpenDNS as your network's DNS server.
    3. Configure website blocking from your OpenDNS account.

By using these methods, you can effectively block unwanted websites on your PC or laptop and maintain better control over the content accessible on your devices

How to block not wanted website to open my pc or laptop

Post a Comment (0)
Previous Post Next Post