The fastest way depends on what you're using
You can block a website on your computer, phone, or tablet in several ways. The method you choose depends on whether you want to block it just for yourself, for everyone on the device, or across your whole network. Some approaches take 30 seconds; others require a bit more setup but give you stronger control.
The easiest route for most people is your browser's built-in tools or a free extension. If you need to block sites for someone else on a shared device — like a child — you'll use your device's parental controls instead. If you want to block sites across your entire home network, you'll adjust your router settings.
Key Takeaways
- Browser extensions like Freedom, Cold Turkey, or LeechBlock let you block specific websites on your computer in under a minute.
- On Windows, you can edit your hosts file to block sites without installing anything, though this requires finding a hidden system folder.
- On iPhone, iPad, or Android, use Screen Time (Apple) or Digital Wellbeing (Android) to block apps and websites for yourself or a child.
- To block sites for everyone on your home network, log into your router and add the site to its blocked list — this works on any device connected to your Wi-Fi.
- Blocking a site on your device does not prevent someone with physical access from unblocking it, so these methods work best for self-discipline, not security.
Blocking websites in your browser
The simplest method for most people is a browser extension. If you use Chrome, Firefox, Safari, or Edge, you can install a free extension in about 30 seconds. Popular options include Freedom, Cold Turkey Blocker, LeechBlock NG, and StayFocusd. Each one works slightly differently, but they all let you type in a website address and choose when it gets blocked — immediately, during certain hours, or after you've spent a set amount of time there.
To install an extension, open your browser and search for the extension name in your browser's store (Chrome Web Store, Firefox Add-ons, Safari Extensions, or Microsoft Edge Add-ons). Click the button to add it, then follow the setup steps. Most extensions let you add sites to a blocklist right away. Some also let you set a password so you can't unblock the site on impulse.
The advantage of extensions is that they're fast to set up and you can customize them heavily. The disadvantage is that they only work in that specific browser — if you switch to a different browser, the blocks don't follow you. Also, someone with access to your device can usually disable the extension unless you've password-protected it.
Blocking sites on Windows by editing the hosts file
If you don't want to install anything, you can block websites on Windows by editing a hidden system file called the hosts file. This method is free and permanent, but it requires a few more steps and you need to be comfortable opening system folders.
First, open Notepad. Press the Windows key and type "Notepad," then click the app. Next, go to File > Open and navigate to C:\Windows\System32\drivers\etc. You may need to change the file type filter from "Text Documents" to "All Files" to see the hosts file. Open the file called "hosts" (no extension).
At the bottom of the file, add a new line and type: 127.0.0.1 example.com (replace example.com with the actual website you want to block). You can add multiple sites, one per line. Save the file. The next time you try to visit that site, your computer will redirect the request to your own machine instead, and the page won't load.
To unblock a site later, open the hosts file again and delete the line. This method works across all browsers on your computer, but it requires you to edit the file each time you want to change what's blocked.
Blocking sites on iPhone, iPad, or Mac
On Apple devices, use Screen Time to block websites. Open Settings, then tap Screen Time. If this is your first time, tap "Turn On Screen Time" and choose whether this is your device or a child's device. Then tap "Content & Privacy Restrictions" and turn it on.
Next, tap "Content Restrictions," then "Web Content." You'll see three options: Unrestricted Access, Limit Adult Websites, or Allowed Websites Only. If you choose "Limit Adult Websites," you can add specific sites to a "Never Allow" list by tapping "Add Website Under Never Allow." Type the website address and tap "Add."
If you want to block a site on a child's device, follow the same steps but set a Screen Time passcode when prompted. This prevents the child from turning off the restrictions or removing sites from the blocklist without your permission.
Blocking sites on Android phones and tablets
On Android, use Digital Wellbeing to block apps and websites. Open Settings, search for "Digital Wellbeing," and tap it. Tap "App timers" or "Bedtime mode" depending on your Android version. You can set time limits on specific apps, which will pause them after the limit is reached.
To block websites on Android, you have fewer built-in options than on iPhone. Your best choice is to install a browser extension in Chrome (if you use Chrome as your main browser) or to install a third-party app like Freedom or Cold Turkey from the Google Play Store. These apps work similarly to their desktop versions and let you block sites across your entire device, not just in one browser.
Blocking sites across your entire home network
If you want to block a website for everyone connected to your home Wi-Fi — including guests — you can do this through your router. This method works on any device, any browser, and any app, because the block happens at the network level before traffic even reaches individual devices.
Log into your router's admin panel. Open a web browser and type your router's IP address (usually 192.168.1.1 or 192.168.0.1) into the address bar. You'll be prompted to enter a username and password — these are often "admin" and "admin," but check your router's manual or the sticker on the back of the device. Once you're logged in, look for a section called "Parental Controls," "Access Control," "Blocked Sites," or "Content Filtering." The exact name varies by router brand.
Add the website address to the blocklist. Save your changes. The site will now be blocked for anyone on your network. To unblock it later, log back into the router and remove it from the list. This method is powerful but requires you to remember your router password, and it affects everyone on the network, so use it carefully if others share your Wi-Fi.
What these blocks can and cannot do
Website blocks work well for reducing temptation and building habits, but they have real limits. Someone with physical access to your device can usually find a way around them — by restarting in safe mode, uninstalling an extension, or resetting the device entirely. If you're trying to block a site for a child, these tools help, but they're not foolproof security measures.
Blocks also don't prevent someone from using a different device, a mobile hotspot, or a VPN to access the site. They're designed to reduce friction and help you stick to your own goals, not to create an impenetrable barrier. If you're setting up blocks for a child, combine them with open conversation about why the limits exist.
Frequently Asked Questions
Can I block a website on just one app, like Instagram or TikTok?
Not directly — you can only block the website itself, not specific features within an app. If you want to limit time on a specific app, use Screen Time on iPhone or Digital Wellbeing on Android to set a daily time limit. Once the limit is reached, the app pauses until the next day.
What if I block a site and then forget why I blocked it?
Keep a note somewhere safe with the list of sites you've blocked and your reason for each one. If you used a browser extension, you can usually see your blocklist by opening the extension's settings. If you edited the hosts file, open it again to see what you added.
Will blocking a site on my router affect my internet speed?
No. Blocking at the router level has no measurable impact on speed for other sites. The router simply refuses to connect to blocked addresses, which is a very fast operation.
Can someone else on my home network unblock a site I blocked on the router?
Only if they know your router's admin password. If you're concerned about this, change the default password to something strong that only you know. You can do this in the router's admin panel under Settings or Administration.
What's the difference between blocking a site and using a VPN?
Blocking prevents you from reaching a site; a VPN hides your activity from your internet provider. They do opposite things. A VPN won't help you block a site — in fact, someone using a VPN can often bypass your blocks because the VPN routes their traffic elsewhere.