Have any questions? +1 646.844.5712 (US)

  • Facebook
  • LinkedIn
  • Twitter
HiTech ServiceHiTech Service
  • Home
  • About
  • Services
    • Software Development
    • Customer Support
    • Quality Assurance
    • Managed Services
    • Compliance Audit
    • GDPR Compliance
    • Competency Center
    • Emergency IT Support
    • Software as medical device
    • Local AI Agent Development
  • Projects
  • GDPR
  • Articles
  • Case Studies
  • Contact
Menu
  • Home
  • About
  • Services
    • Software Development
    • Customer Support
    • Quality Assurance
    • Managed Services
    • Compliance Audit
    • GDPR Compliance
    • Competency Center
    • Emergency IT Support
    • Software as medical device
    • Local AI Agent Development
  • Projects
  • GDPR
  • Articles
  • Case Studies
  • Contact
How to block a site?

How to block a site?

It is quite possible that you, as a responsible parent (or maybe for some other reasons), need to block a site or several sites from being viewed in a browser on some of your PCs. We have already had an article about blocking youtube on your router, but let’s take a look at how to block a webpage on a particular PC. So here are our options.



Simple website blocking in all browsers by editing the hosts file

Some of the viruses tend to block access to the websites or substitute the real files with the fake ones by making changes to hosts file on a PC. However, it’s totally legit to use the same approach for our means – to block an unwanted website. Here’s how to do it.

  1. Run the Notepad as an administrator. This can be done through the search. When you find Notepad, right-click on it and select “Run as administrator”.

How to block a site 01.jpg — How to block a site?

2. In Notepad, select File – Open in the menu, go to the folder C: \ Windows \ System32 \ drivers \ etc. Find and open the hosts file (the one without an extension).

How to block a site 02 — How to block a site?

3. The contents of the file will look similar to the image below.

 

How to block a site 03 — How to block a site?

    4. Now we need to type those sites down that need to be blocked with their IP address and the usual literal address of the site without http. In this case, after saving the hosts file, this site will not be opened. Furthermore, there must be at least one space between the IP address and the alphabetic URL.

How to block a site 04 — How to block a site?

    5. Save the file and restart the computer.



 

How to block a site in Windows Firewall

The built-in “Windows Firewall” allows you to block sites by their IP address (which can change over time). The blocking process will be as follows:

  1. Open a command prompt and type ping site_address and then press Enter. Record the IP address which you have received.

 

How to block a site 05 — How to block a site?

   2. Run Windows Firewall in advanced security.

How to block a site 06 — How to block a site?

   3. Select Outbound Rules and click New Rule

How to block a site 07 — How to block a site?

   4. Select Custom

How to block a site 08 — How to block a site?

   5. In the next window, select All Programs.

How to block a site 09 — How to block a site?

6. Do not change anything in the window Protocol and Ports

   7. In the Scope window in the “Which remote IP addresses does this rule apply to” tick the item “These IP addresses”, then click “Add” and add the IP address of the site you want to block.

How to block a site 10 — How to block a site?

8. Then click Next and choose Block the connection

How to block a site 11 — How to block a site?

9. In the Profile window, leave all the items checked.

That’s all: save the rule and now Windows Firewall will block the site by IP address when you try to open it.



 

Filter for web content in antivirus and third-party programs

Many well-known anti-virus products have built-in parental control that allows you to block unwanted sites. Most of them have an intuitive interface and do not cause difficulties when trying to turn these functions on.

In addition, there are separate software products, both paid and free, which you can use to set appropriate restrictions, among which are Norton Family, Net Nanny, and many others. As a rule, they provide locking on a specific PC and you can remove it by entering a password, although there are other implementations.

 

  • On January 28, 2019
  • 0 Comment

Leave Reply Cancel reply

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

Recent Posts
  • How AI and Automation Are Changing IT Service Delivery
  • Managed IT Services vs. In-House IT: What Should You Choose?
  • When the Model Is the Vendor: What Happens to Compliance When You Don’t Own the Weights
  • The Edge Device Is the Perimeter: Why the Box You Bought to Keep Them Out Is How They Get In
  • The Password Memo Was Honest. The Checklist Wasn’t.
Categories
  • ai (10)
  • android (18)
  • apple (36)
  • chart (18)
  • cloud (1)
  • fix (42)
  • games (11)
  • google (31)
  • hardware (73)
  • healthcare (3)
  • how to (231)
  • internet (92)
  • ios (23)
  • macos (3)
  • microsoft (82)
  • mobile (36)
  • news (74)
  • optimization (17)
  • osx (4)
  • outsourcing (9)
  • qa (3)
  • regulation (8)
  • review (120)
  • security (41)
  • software (160)
  • windows (150)
Archives
  • September 2026
  • August 2026
  • July 2026
  • June 2026
  • May 2026
  • August 2025
  • March 2025
  • February 2025
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • March 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • June 2018
  • May 2018
  • April 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • May 2016
  • April 2016
  • March 2016
  • February 2016
  • January 2016
  • December 2015
  • November 2015
  • October 2015
  • September 2015
  • July 2015
  • January 2015
Archives
  • September 2026
  • August 2026
  • July 2026
  • June 2026
  • May 2026
  • August 2025
  • March 2025
  • February 2025
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • March 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • June 2018
  • May 2018
  • April 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • May 2016
  • April 2016
  • March 2016
  • February 2016
  • January 2016
  • December 2015
  • November 2015
  • October 2015
  • September 2015
  • July 2015
  • January 2015

How to clear DNS Flush on Mac and Windows?

Previous thumb

Best free tools for remote desktop control

Next thumb
Scroll

Services

  • Software Development
  • Quality Assurance
  • Customer Support
  • Managed Services
  • 24/7 Emergency IT Support
  • Competency Center
  • Local AI Agent Development
  • Software as a Medical Device

Compliance

  • Compliance Audit
  • GDPR Compliance
  • What is GDPR
  • ISO 9001:2015 Certification

Company

  • About Us
  • All Services
  • Projects
  • Case Studies
  • Articles
  • Contact
About HiTech Service

With 10 year experience of working together, we have reached tangible synergetic effect in performance and productivity, which results in highest quality services and satisfied clients.

Privacy Policy   Cookie Policy

 

  • Facebook
  • X
  • LinkedIn
CONTACT INFO
  • 900 Foulk Rd, Suite 201, Wilmington, DE, USA, 19803
  • Kudryavs’kyi descent 5b, Kyiv, Ukraine, 04053
  • +1 646.844.5712 (US)
ISO 9001:2015 certificate issued to HiTech Service LLC by Veritas
RIPE Atlas logo, the network measurement community HiTech Service takes part in
BrainBasket Foundation logo, IT education initiative HiTech Service supports
HiTech Service LLC membership badge of the Hi-Tech Office Ukraine association Dun & Bradstreet verified business badge for HiTech Service LLC
YouTeam partner badge for HiTech Service LLC
Hitech Service LLC

Copyright 2026