Windows: Cannot Connect to Certain Web Sites

If you can’t connect to certain web sites using your favorite web browser, there could be several reasons why. Here are a few things you can try to clear up the problem.


  • In Google Chrome you may get an “Unable to connect to the Internet” message.
  • In Firefox you get “Firefox can’t establish a connection to the server at website
  • In Internet Explorer you get “Page cannot be displayed” error.

This article assumes you have troubleshot the basics such as the URL is typed correctly, cache files have been cleared and you have a working internet connection. 

1. Flush the DNS Cache

In some cases, flushing the DNS cache may help. You can flush the DNS by holding down the Windows key on your keyboard and pressing R to bring up the Run box. Then type ipconfig /flushdns and press Enter.

2. Check if Spyware Has Modified Your HOSTS file

  1. To check it, go to “Start” > “Run“.
  2. Do one of the following depending on your operating system:
    • Windows 8, 7, Vista, XP and Windows 2000 users type: C:\windows\system32\drivers\etc
    • Windows 98 and Windows ME users type: %WINDIR%
  3. Open the file called HOSTS using NOTEPAD or WORDPAD.
  4. Each entry will look something like the following:
    • 0

Entries like this will block access to the sites listed. Look for entries like this referring to any web site you may not be able to access and delete them. You may also have to run a spyware scan using an utility like MalwareBytes or Spybot.

Note: For most users this file is blank. Unless you have any type of special configuration for systems on your network, the HOSTS file isn’t normally used. It is most likely safe to remove all entries from this file.

You can find more information about HOSTS files here.

3. Firewall Software is Blocking Access

Disable your firewall. The following links may help.

If that doesn’t work, uninstall the firewall software.

Note: Firewall software can block your connections even if it is disabled.

4. Problems with Sites that Use SSL

If the problem is only with sites that require a secure or SSL connection, you might want to troubleshoot the browsers ability to connect using SSL. If you can’t view this website, SSL problems are likely to blame.

For Internet Explorer read this article

If you have a firewall, make sure that it allows communication over port 443. Consult your firewall documentation or system administrator if you do not know how to check for this.


  1. Robert says

    My problem is I can’t login to or on my Windows 8.1 computer. My wife has a Windows 7 box and I can login to both sites just fine. The error I get on the Win 8.1 box is :”the username and password you entered are incorrect” I tried allowing Cookies but that didn’t fix it

Leave a Reply

Your email address will not be published. Required fields are marked *