What blocking a website actually does
Blocking a website means your device refuses to load it when you type the address or click a link to it. The block happens on your device itself — your computer, phone, or tablet — not at your internet provider's level. When you try to visit a blocked site, you'll see an error message or a custom page you've set up instead of the actual website.
The block only works on the device where you set it. If you block a site on your laptop, it won't be blocked on your phone unless you set it up there too. And if someone else uses your device with a different user account, they may be able to see blocked sites unless you've locked the settings with a password.
Key Takeaways
- Website blocking happens on your device, not through your internet provider, so the block only affects that one computer or phone.
- Built-in parental controls in Windows, macOS, iOS, and Android can block sites without installing extra software, though they require a password to change.
- Browser extensions like Freedom, Cold Turkey, or LeechBlock let you block sites in just your web browser and can set schedules for when blocks turn on and off.
- Hosts file editing is more technical but gives you complete control and works across all programs on your device, not just the browser.
- A determined person with device access can usually find ways around any block, so blocking works best as a reminder tool rather than an absolute barrier.
Using your operating system's built-in parental controls
Every major operating system has a free blocking feature built in. On Windows 10 and 11, open Settings, go to Accounts, then Family & other people. Create a child account or link an existing one, then click on it and choose "App and game restrictions" or "Web and online safety." You can block specific websites by entering their addresses. The block requires your password to remove, so someone using that account can't easily turn it off.
On macOS, the feature is called Screen Time. Open System Settings, click Screen Time, then Content & Privacy. Turn on Content & Privacy Restrictions, then go to Web Content. Choose "Limit Adult Websites" for a basic filter, or click "Never Allowed" to add specific site addresses you want blocked. Again, you'll need your password to change these settings.
On iPhone and iPad, go to Settings, tap Screen Time, then Content & Privacy Restrictions. Turn it on, then tap Web Content under the Allowed Apps section. Choose "Limit Adult Websites" or add specific sites under "Never Allowed." On Android, the process varies by phone maker, but most have Family Link (Google's system) or a similar parental control app. Open Family Link, select the child account, go to Controls on Google Play, then manage restricted content.
Browser extensions for blocking during work or study
Freedom and Cold Turkey are the most popular paid options. Both let you block websites and apps on a schedule — for example, blocking social media sites between 9 a.m. and 5 p.m. on weekdays. You set a password to turn off the block early, which creates friction if you're tempted. Freedom costs about $40 per year for one device or $80 per year for all your devices. Cold Turkey is a one-time purchase of $39 for Windows or $49 for Mac.
LeechBlock NG is free and works as a browser extension in Chrome, Firefox, and Edge. It's simpler than Freedom or Cold Turkey — you enter site addresses and set times when they're blocked — but it only blocks within your browser, not apps. News Feed Eradicator is also free and specifically blocks the feeds on Facebook, Twitter, LinkedIn, and YouTube while leaving the rest of the site accessible.
Browser extensions work only in that browser. If you use Chrome, Firefox, and Safari, you'd need to install the extension in each one. And someone who knows you're using an extension can usually disable it by going to your browser's extension settings, so these work best as self-imposed barriers rather than locks against determined access.
Editing your hosts file for device-wide blocking
The hosts file is a text document on your computer that tells your device which web addresses go to which servers. By editing it, you can redirect a blocked site to a fake address, so your browser can't find it. This method blocks the site across all browsers and programs on your device, not just one browser.
On Windows, open Notepad as administrator (right-click Notepad, choose "Run as administrator"). Go to File, then Open, and navigate to C:\Windows\System32\drivers\etc. Find the file named hosts with no extension. Open it, and at the bottom add a new line: 127.0.0.1 facebook.com. Replace facebook.com with the site you want to block. Save the file. The next time you try to visit that site, your browser will get an error.
On macOS or Linux, open Terminal and type sudo nano /etc/hosts. Enter your password. Scroll to the bottom and add the same line: 127.0.0.1 facebook.com. Press Control+X, then Y, then Enter to save. On iPhone and iPad, you cannot edit the hosts file directly, so you'd need to use Screen Time or a third-party app instead.
The hosts file method is more permanent than browser extensions — someone would need to know to look for it and edit it back — but it's also more technical and easier to break by accident. If you make a mistake, your device might not connect to the internet at all until you fix it.
Why blocks can be bypassed and what that means
Any block you set on your own device can be removed by someone with physical access to it and enough technical knowledge. Browser extensions can be disabled. Parental controls can be turned off if someone knows the password. The hosts file can be edited back. A determined person can also use a VPN (a tool that routes your internet through another server) to make it look like they're visiting from somewhere else, bypassing many blocks.
This doesn't mean blocking is useless. Blocks work well as friction tools — they make it slightly harder to visit a site, which gives you time to reconsider. They also work well for keeping accidental clicks away from sites you're trying to avoid. But if you're trying to block someone else from accessing something on a device they have full access to, a block alone won't stop them. For that, you'd need actual device restrictions, like limiting their user account permissions, which is a different level of control.
Blocking sites on your home network instead of individual devices
If you want to block a site for everyone on your home network at once, you can do it through your router instead of on each device. Log into your router's admin panel (usually by typing 192.168.1.1 or 192.168.0.1 into your browser address bar). Look for a section called "Parental Controls," "Access Control," or "Content Filtering." Different router brands have different names and layouts, so you may need to check your router's manual or the manufacturer's website.
Router-level blocking affects all devices on your network — phones, tablets, computers, smart TVs — without needing to set anything up on each one. But it also means anyone on your network sees the same blocks, and someone with access to the router's admin panel can turn them off. Router blocking also doesn't work for devices connected through a VPN or mobile data instead of your home Wi-Fi.
Frequently Asked Questions
Can I block a website on my phone without installing an app?
Yes. On iPhone, use Screen Time in Settings. On Android, use Family Link or your phone maker's built-in parental controls. Both let you block sites directly without downloading anything extra. You'll need to set a password so the block can't be easily turned off.
Will blocking a website slow down my internet?
No. Blocking happens on your device before the request even reaches your internet provider. Your internet speed stays the same whether you block one site or a hundred.
What's the difference between blocking a site and using a VPN?
Blocking stops you from reaching a site from your device. A VPN hides your location and activity from your internet provider and the websites you visit. They do opposite things — blocking restricts access, while a VPN protects privacy.
If I block a site on my work computer, will my employer know?
Not unless your employer monitors your device. If you're using a company-owned computer, your employer may have monitoring software installed that logs everything you do. Check your company's device policy. If it's your personal device, only you and anyone with access to it will know about the block.
Can I block a website on just one app, like Instagram?
Not directly. You can block the website version of Instagram in your browser, but the app itself won't be blocked unless you use parental controls to restrict the app itself. Some parental control systems let you limit specific apps by time of day, which is different from blocking a website.