The fastest way depends on what you're blocking from

You can block a website at three different levels: in your web browser, on your device's operating system, or at your network router. Browser-level blocking is fastest and works immediately, but only stops access through that one browser. Device-level blocking affects all browsers and apps on that computer or phone. Router-level blocking stops the site across every device on your home network, but requires access to your router's settings and technical knowledge.

The method you choose depends on whether you're blocking a site from yourself, from other people on your network, or from a specific device. If you share a computer with family members and want to restrict what they can see, router or device-level blocking is more effective because it's harder to bypass. If you're trying to reduce your own time on a site, browser extensions work well because they're simple to set up.

Key Takeaways

  • Browser extensions like Freedom, Cold Turkey, and LeechBlock are the simplest option and block a site only in that browser, taking effect immediately.
  • Device-level blocking through your operating system's parental controls or hosts file affects all browsers and apps, making it harder to bypass.
  • Router-level blocking stops a site across every device on your network, but requires you to log into your router's admin panel and know its IP address.
  • Password-protecting your block settings prevents you or others from easily turning off the restriction, though determined users can still find workarounds.

Blocking a site in your web browser

The easiest method is to install a browser extension designed to block websites. Freedom, Cold Turkey Blocker, and LeechBlock NG are three popular options that work on Chrome, Firefox, Edge, and Safari. You install the extension, add the website URL to a blocklist, and the site becomes inaccessible whenever you open that browser. Most extensions let you set a schedule—for example, blocking the site only during work hours—and some require you to set a password before you can remove a site from the blocklist.

The downside is that browser-level blocking only works in that specific browser. If you use Chrome to block a site but then open Firefox, you can still visit it. Also, someone determined to bypass the block can uninstall the extension or use a different browser entirely. For personal use where you're trying to reduce your own distraction, this is usually enough. For parental controls on a child's device, you'll need something stronger.

If you want to block a site without installing anything, most browsers let you use their built-in parental controls or content filtering. In Chrome, you can use Family Link to block sites on a child's account. In Safari on Mac and iOS, you can use Screen Time to restrict access to specific websites. These built-in tools are less flexible than extensions—you usually can't set schedules or block only during certain hours—but they're already part of your operating system and don't require a third-party account.

Blocking a site on Windows, Mac, or Linux

Device-level blocking works across all browsers and apps on your computer. The most reliable method is to edit your computer's hosts file, a text file that tells your operating system which IP address to use for a domain name. By adding an entry that points the website to a fake IP address, you prevent your computer from connecting to it, no matter which browser you use.

On Windows, open Notepad as administrator, then open the file located at C:\Windows\System32\drivers\etc\hosts. Add a new line with 127.0.0.1 example.com, replacing example.com with the site you want to block. Save the file. On Mac or Linux, open Terminal and edit the same file using a text editor like nano. The process is identical except the file path is /etc/hosts. Changes take effect immediately, though you may need to clear your browser cache or restart your browser to see the block.

The hosts file method is permanent until you remove the entry, and it's harder to bypass than a browser extension because it works at the operating system level. However, someone with administrator access to your computer can edit the file and remove the block. For stronger protection on a shared device, use your operating system's parental controls instead. Windows has Family Safety, Mac has Screen Time, and most Linux distributions have parental control tools available through their settings menu. These require a password to change, making them more difficult to disable without permission.

Blocking a site across your entire home network

If you want to block a website on every device connected to your Wi-Fi—phones, tablets, computers, smart TVs—you can do it through your router. Log into your router's admin panel by opening a web browser and typing your router's IP address, usually 192.168.1.1 or 192.168.0.1. You'll find the IP address on a sticker on the back of your router or in your router's manual. Enter your router's username and password, which are also on the sticker or in the manual.

Once logged in, look for a section called Parental Controls, Access Control, Content Filtering, or Website Blocking—the exact name varies by router manufacturer. Add the website URL to the blocklist. Some routers let you set schedules, block by category (like adult content or gambling), or create different rules for different devices. After you save the settings, the block takes effect immediately across your entire network.

Router-level blocking is the most comprehensive method because it works on every device, including phones and tablets that connect to your Wi-Fi. However, it has limitations. Someone on your network can bypass it by using a mobile hotspot from their phone's cellular data instead of Wi-Fi. Also, if you forget your router's admin password, you may need to reset the router to factory settings, which erases all your custom settings. Keep your router password somewhere safe, and consider changing the default password when you first set up your router.

Blocking sites on your phone or tablet

On iPhone and iPad, use Screen Time to restrict websites. Go to Settings > Screen Time > Content & Privacy Restrictions, turn on restrictions, then go to Content Restrictions > Web Content. Choose "Limit Adult Websites" to use Apple's automatic filter, or select "Allowed Websites Only" to create a whitelist of sites you can visit. You can also add specific sites to block by tapping "Always Allow" or "Never Allow" for individual URLs.

On Android, the process depends on your device and Android version. Most Android phones have a built-in parental control feature accessible through Settings > Digital Wellbeing & Parental Controls. You can set up a separate restricted profile or use app-level restrictions. Alternatively, install a third-party app like AppBlock or Freedom, which work similarly to browser extensions on desktop but can block apps and websites across your entire phone.

Phone and tablet blocking is useful if you're trying to prevent a child from accessing certain sites on their device, or if you want to reduce your own screen time. Like browser-level blocking on desktop, it's easier to bypass than device-level restrictions on a computer, but it's more convenient for mobile use because you don't need to edit system files or access your router.

Making your block harder to remove

If you're setting up a block to prevent someone else from accessing a site, password-protecting the block settings makes it harder to disable. Most browser extensions, parental control tools, and router settings let you set a password that's required to change or remove the block. Choose a password that the person being restricted doesn't know, and store it somewhere they can't find it.

Keep in mind that no block is completely unbreakable. Someone with enough technical knowledge can find workarounds—using a VPN, changing DNS settings, using a different device, or resetting your router to factory settings. If you're trying to enforce a block on someone else's device, the most effective approach is combining multiple methods: a browser extension, device-level blocking, and router-level blocking together. This makes it much harder to bypass without your permission.

Frequently Asked Questions

Can I block a site on just one device if I share a computer?

Not easily. Browser extensions block only in that browser, so if you share a computer and both use the same browser, the block applies to both of you. Device-level blocking affects all browsers and apps on that computer. If you need separate restrictions for different users, create separate user accounts on your computer and set up blocking for each account individually.

What's the difference between blocking and filtering?

Blocking prevents access to specific websites you name. Filtering uses categories or keywords to block groups of sites—for example, blocking all adult content or all gambling sites. Most parental control tools offer both options. Filtering is faster to set up if you want to block many sites at once, but blocking is more precise if you only want to restrict a few specific URLs.

Will blocking a site slow down my internet?

No. Browser extensions and device-level blocking have no noticeable impact on speed. Router-level blocking may have a tiny impact if your router is older or if you're blocking a very large number of sites, but it's usually undetectable. The block itself just prevents your device from connecting to the site; it doesn't filter or monitor other traffic.

Can I block a site on my work computer?

Check with your IT department first. Many workplaces have their own network-level blocking in place, and installing your own blocking software may violate company policy or conflict with their security tools. If your workplace allows it, browser extensions are usually the safest option because they don't require system-level access.

What if I block a site and then change my mind?

Removing a block is as simple as adding one. In a browser extension, delete the site from your blocklist. In your hosts file, delete the line you added. In parental controls, remove the site from the restricted list. In your router, delete it from the blocklist. If you password-protected the block, you'll need the password to make changes.