What blocking a website means
Blocking a website means preventing your device or network from loading a specific web address. When you block a site, typing its URL into your browser or clicking a link to it will either show an error message or redirect you to a blank page. The site itself stays on the internet — you are just stopping your own device from reaching it.
People block websites for different reasons: parents block sites they do not want children to access, people block distracting social media during work hours, or someone might block a site that keeps sending unwanted notifications. The method you use depends on what you are trying to block and whether you want to block it on one device or across your whole home network.
Key Takeaways
- Browser extensions are the fastest way to block a single website on your computer or phone, and you can unblock it whenever you want.
- Router-level blocking affects every device on your home network, which is useful if you want to block sites for everyone in your household.
- Operating system settings let you block sites without installing extra software, though the steps differ between Windows, Mac, iPhone, and Android.
- Parental control tools built into devices let you set time limits and content restrictions, which is more powerful than blocking individual sites.
Blocking a website using your browser
The easiest method on a computer is to install a browser extension that blocks websites. Extensions like Freedom, Cold Turkey, or LeechBlock work on Chrome, Firefox, and Edge. You read the extension from your browser's store, add the website you want to block, and it stops loading when ready. If you change your mind, you can unblock it just as quickly by removing the site from the extension's list.
On your phone, the process is similar but depends on which browser you use. Chrome on Android and Safari on iPhone both support extensions, though the selection is smaller than on desktop. If your phone's browser does not support extensions, you will need to use your phone's built-in parental controls instead, which we cover below.
Browser blocking only works in that specific browser. If you use Chrome to block a site but then open Firefox, you can still reach the site in Firefox. This is useful if you want to block something only when you are using one browser, but it is not a complete barrier.
Blocking a website at the router level
If you want to block a website for everyone on your home network — all devices connected to your WiFi — you do this through your router's settings. Log into your router's admin panel (usually by typing 192.168.1.1 or 192.168.0.1 into your browser address bar), find the section called DNS settings or parental controls, and add the website address you want to block.
Router blocking is more powerful than browser blocking because it works on every device and every browser. A teenager cannot bypass it by switching browsers or using a different device on your network. However, it requires you to know your router's password and to navigate its settings, which varies by manufacturer. If you do not know how to access your router, check the sticker on the back of the device — it usually lists the default username and password.
One limitation: router blocking does not work on devices using mobile data instead of your WiFi. A phone on a cellular connection can still reach any site, even if it is blocked on your router. To block sites on mobile data, you need to use the device's own parental controls.
Blocking a website on Windows
Windows does not have a built-in website blocker in the main settings, but you can block sites through the hosts file, which is a text file your computer checks before connecting to any website. Open Notepad as administrator, go to File > Open, and navigate to C:\Windows\System32\drivers\etc\hosts. Find the line that says 127.0.0.1 and add the website below it in the same format: 127.0.0.1 facebook.com.
This method works but is technical and straightforward to undo by accident. A simpler approach is to use Windows Parental Controls if you have a child account set up. Go to Settings > Accounts > Family & other users, select the child account, click Parental controls, and choose App and game restrictions or Website restrictions. You can block specific sites or entire categories like adult content.
If you want to block sites for yourself rather than manage a child account, a browser extension remains the easiest path. Windows does not offer a system-wide blocking tool for adult users without using third-party software.
Blocking a website on Mac
Mac does not have a native website blocker in System Settings, but you can use parental controls if you have set up a child account. Go to System Settings > General > Parental Controls, select the child account, and choose Website Restrictions. You can block specific sites or allow only certain sites.
For your own account, the simplest method is a browser extension. If you prefer not to install software, you can edit the hosts file on Mac similarly to Windows: open Terminal, type sudo nano /etc/hosts, add 127.0.0.1 followed by the site address, then press Control+X to save. This requires some comfort with the command line.
Many Mac users prefer Freedom or Cold Turkey, which are paid applications that block sites across all browsers and offer scheduling features. You can set them to block certain sites only during work hours, for example, then automatically unblock them in the evening.
Blocking a website on iPhone or iPad
Apple's Screen Time feature lets you block websites on iPhone and iPad. Go to Settings > Screen Time > Content & Privacy Restrictions, turn on Content & Privacy Restrictions, then go to Web Content. Choose Limit Adult Websites and add specific sites to the Never Allow list. Sites on this list will not load in Safari or any app that uses Safari's browser engine.
Screen Time blocking is strong because it applies across all apps, not just Safari. However, it requires a Screen Time passcode to change, so someone cannot straightforward remove the block. If you are setting this up for a child, use a passcode they do not know. If you are setting it up for yourself, write the passcode down somewhere safe in case you forget it.
One catch: Screen Time blocking does not work on apps that have their own browser built in, like Facebook or Twitter. Those apps can still load content even if the website is blocked in Safari. For complete blocking on iPhone, you would need to use parental controls to restrict the app itself, not just the website.
Blocking a website on Android
Android does not have a system-wide website blocker, but you can use Google Family Link if you are managing a child's device. Open Family Link, select the child's device, go to Controls on Google Play, and set up app restrictions. You can also set Screen Time limits, which will lock the device after a certain number of hours.
Family Link does not block specific websites directly — it blocks apps. If you want to block a website on Android, your best option is a browser extension in Chrome, or a third-party app like Freedom or Cold Turkey. These apps work across all browsers and apps on your phone.
If you do not want to install an app, you can block sites through your router instead, which will affect all devices on your network including Android phones on your WiFi.
Frequently Asked Questions
Can someone unblock a website I blocked?
It depends on the method. Browser extensions can be turned off by anyone with access to the browser. Router blocking requires the router password. Parental controls on phones require a passcode. If you want a block that is hard to bypass, use parental controls with a strong passcode that only you know, or block at the router level.
Will blocking a website slow down my internet?
No. Blocking a website does not affect your internet speed. Your device straightforward refuses to load the blocked address, the same way it would if the site were offline. Other websites and activities run at normal speed.
What happens if I block a website by mistake?
You can unblock it the same way you blocked it. In a browser extension, remove the site from the blocked list. In parental controls, remove it from the blocked sites list. In the hosts file, delete the line you added. The site will load normally again within a few seconds.
Can I block a website on just one device if I have multiple devices at home?
Yes. Browser extensions and device-level parental controls block only that specific device. Router blocking affects all devices on your network. If you want to block a site on your computer but not your phone, use a browser extension or device parental controls, not your router.
Does blocking a website hide my activity from my internet provider?
No. Blocking a website on your device prevents you from reaching it, but your internet provider can still see that you attempted to connect to it. If you want to hide your browsing activity from your provider, you would need to use a VPN, which is a different tool entirely.