Safari does not load any site but there is Internet connection [duplicate]

Solution 1:

I solved by making sure the network settings not picking any proxy options under Network > Advanced > Proxies.

Solution 2:

  1. Open a Finder window. From the Finder menu bar click Go > Go to Folder
  2. Type or copy paste the following: ~/Library/Caches/com.apple.Safari/Cache.db.
  3. Click Go then move the Cache.db file to the Trash.
  4. Quit and relaunch Safari to test.

Solution 3:

Is there any app such as Little Snitch that is installed? If so, it could be blocking browsers but not Team Viewer and not Mail.

Solution 4:

I tried various options including the proxies The only thing that solved it was System Preferences > Network > Assist me > Connect to the internet And it solved it on its own