If you're having the same problems loading websites on every browser, these are some possible causes and ways to fix them.
Check if your Internet security software (including firewalls, antivirus programs, anti-spyware programs and more) is blocking the connection to the Internet. For instructions on how to configure some programs, read Configure firewalls so that Firefox can access the Internet.
Make sure your system's date, time and timezone settings are configured correctly. Firefox may have issues validating the website's security certificate if the date/time is incorrect.
Every web server connected to the Internet is assigned a number known as its IP address. Domain names are assigned to IP addresses through a Domain Name System (DNS) server. Your computer stores recent IP address assignments so it can connect to sites more quickly, but if there is a discrepancy between the DNS server and the IP address assignments on your computer, it will cause every browser on your computer to have problems finding some websites. To remove the recently stored IP address assignments, flush your DNS cache.
Restart MacOS to flush your DNS cache.
If you are using a wireless connection, make sure that you are using the correct access point.
Even if your modem and/or router are both on and are not indicating errors, there may be a problem with your Internet Service Provider (ISP). Contact your ISP for more information.
Your Domain Name System (DNS) server translates web addresses (URLs) into IP addresses and is usually provided by your ISP. If the DNS server is overloaded, you may be unable to view some or all websites. For example, if http://184.108.40.206 or http://220.127.116.11 work but http://www.google.com doesn't, you may have a DNS problem. You can use an alternative service such as OpenDNS or Google Public DNS.
If neither Firefox nor another browser can load any websites, your problem is external to Firefox and you should seek support elsewhere.