User Agents

How to Stop Your Computer Blocking Websites

If your computer refuses to load a website you know works elsewhere, the block almost always comes from one of four places: your browser, your operating system's host file, a security suite installed on the machine, or a network filter on the router. Unblocking it means checking those four in order, starting with the least invasive. This guide walks through each one using the settings that ship with Windows and macOS, plus the options built into every major browser. It will not help you get around a filter someone else set up on purpose, such as a school, employer, or parental control you do not administer. It is for legitimate cases: a site you own, a site you trust, a domain flagged by mistake, or a filter you set up yourself and now want to change.

What You'll Need

  • The exact website address that is being blocked, so you can test it after each change.
  • Administrator rights on the computer (Windows) or an admin account with the ability to unlock system settings (macOS).
  • Access to your router's admin page, only if the block turns out to be network-wide rather than local.
  • About ten minutes, since you will want to restart the browser or the machine at the end.
  • A note of which antivirus or security suite is installed, since many include their own web filter.

Step-by-Step

  1. Confirm the block is real. Open the site in a second browser and in a private or incognito window. If it loads in private mode but not your normal window, the problem is a browser extension or a bad cache, not a system-wide block. If it fails in every browser, move on.
  2. Check whether the site is simply down. Try the site from a phone on mobile data rather than your home Wi-Fi. If it fails there too, the problem is with the site, not your computer, and no setting change will fix it.
  3. Look at the error message. A message like "This site can't be reached" with an error code is different from a full-page warning saying the site is blocked by an administrator or by your security software. The second type tells you exactly which layer made the decision.
  4. Clear the browser cache and cookies. In Chrome, open Settings, then Privacy and security, then Delete browsing data. In Edge, use Settings, then Privacy, search, and services. In Firefox, use Settings, then Privacy & Security, then Cookies and Site Data. A corrupted or huge cache can produce block-like failures.
  5. Disable extensions one at a time. Open the extensions page in your browser and switch off anything related to ad blocking, filtering, or security. Reload the site after each change. This is the single most common cause of a site that loads in private mode but not normally.
  6. Review the browser's own blocking settings. Chrome and Edge both have a "Safe Browsing" or "Security" page with a list of restricted sites. Firefox has a similar list under Privacy and Security. If the site appears there, remove it. Also check any browser profile managed by an organisation; a managed profile will display a notice saying so and cannot be changed without that organisation's permission.
  7. Edit the hosts file. This is a plain text file that can redirect or block any domain. On Windows, open Notepad as administrator, then open C:\Windows\System32\drivers\etc\hosts. On macOS, use Terminal and open /etc/hosts with sudo, or edit /private/etc/hosts. Look for a line containing the domain. A line beginning with 0.0.0.0 or 127.0.0.1 followed by the domain is a block. Delete that line, save, and flush DNS by running ipconfig /flushdns on Windows or sudo dscacheutil -flushcache on macOS.
  8. Check your security software. Open your antivirus or internet security suite and look for a section called Web Protection, Web Shield, SafeSearch, or Parental Controls. Many suites let you add exclusions or allowed sites. If the software is managed by someone else, you will not be able to change these settings.
  9. Check the firewall. On Windows, open Windows Security, then Firewall & network protection, and verify that the browser is allowed through both private and public networks. On macOS, check System Settings, then Network, then Firewall, and make sure the browser is not listed as blocked.
  10. Check DNS settings. Some malware and some routers redirect traffic through a DNS server that blocks domains. On Windows, open Settings, Network & Internet, then your adapter's properties, and set DNS to automatic. On macOS, use System Settings, then Network, then Details, then DNS. Clearing manual DNS entries restores use of your provider's resolver.
  11. Check the router as a last local step. Sign in to the router's admin page, which is usually at 192.168.0.1 or 192.168.1.1, and look for Parental Controls, Filtering, or Blocked Sites lists. If you did not set them, do not tamper with them; speak to whoever administers the network instead.
  12. Restart and retest. Close all browser windows, restart the machine, and load the site again. If it now works, note which step made the difference so you can reverse it later if needed.

Common Mistakes

  • Deleting the entire hosts file instead of editing it. The file ships with comments and localhost lines that many programs rely on; remove only the offending line.
  • Disabling every extension at once, then not knowing which one caused the issue. Toggle them individually.
  • Assuming the browser is at fault when the block is in the hosts file. Testing in a second browser catches this early.
  • Trying to edit files without administrator rights, then wondering why the save fails. Notepad or Terminal must be opened as administrator.
  • Forgetting the second, mobile browser test, which would have shown the site was down the whole time.
  • Removing a block that someone else installed deliberately, such as an employer or parent. That is a policy matter, not a technical one.
  • Changing DNS or proxy settings without recording the original values first, making it hard to restore normal behaviour.

Tips

  • Write down the original hosts file, DNS settings, and extension list before changing anything. A screenshot is enough.
  • Test with a private window after every change; it removes cache and most extension effects from the equation.
  • If the site works on a phone's mobile data but not on Wi-Fi, the block lives on the network, not the computer.
  • After editing network settings, run ipconfig /release followed by ipconfig /renew on Windows to refresh the connection cleanly.
  • Keep the browser updated, since an out-of-date security component can flag safe sites as dangerous.
  • If a site is flagged as unsafe but you know it is fine, report it through the browser's own warning page rather than switching protections off entirely.

Troubleshooting

If the site still fails after every step, the block is probably not local. A managed profile notice in the browser, a lock icon in the address bar with an organisation's name, or an error that mentions a proxy server all point to a device or network managed by someone else. In that case, the fix is a conversation with the administrator, not a settings change. If the message mentions a proxy, check Windows Settings, Network & Internet, Proxy, and make sure "Automatically detect settings" is on and manual proxy is off. If the site loads slowly rather than failing outright, clear the cache, restart the router, and try again. If you edited the hosts file and now several sites fail, you likely broke the file's formatting; restore your backup and redo the single line removal carefully. Finally, if your browser shows a certificate warning instead of a block, check the system clock, since a wrong date makes every secure site look invalid.

Frequently Asked Questions

Why does a site load in private mode but not in my normal browser?

Private mode ignores most extensions and does not use existing cookies or cache. That pattern almost always means an extension, a corrupted cookie, or a cached page is responsible.

Does clearing my cache remove blocks?

Only when the block came from a stale or corrupted cached page or cookie. It will not touch hosts file entries, firewall rules, or router filters.

Where is the hosts file on Windows?

It sits at C:\Windows\System32\drivers\etc\hosts and needs administrator rights to edit.

How do I know if my computer is managed by an organisation?

Windows shows a notice in Settings under Accounts, and browsers display a managed-by banner or a lock icon labelled with the organisation's name. If you see these, some settings cannot be changed locally.

Will changing my DNS server unblock a site?

Only if the block came from a filtering DNS service. It will do nothing about a hosts file entry, an extension, or a router-level block.

Why did the site start working after a restart?

Restarting clears stuck network connections and re-reads settings such as the hosts file and DNS configuration, which is why it resolves many one-off blocks.