Can't Open google.com even though there is internet
I had the same issue. I could not access Google to do an internet search. It worked fine for years, suddenly one day Google wouldn't open.
Solution: click on Finder, then click on Downloads. 
You will find a list of downloads by date, with the most recent on top.
In the past, I clicked on links containing pdf files they would download when I read them. One of those files is causing the problem. It contains some kind of virus. Find the files around the date when the problem initiated and move them to the trash. In fact, move any files that you don't recognize to the trash and then empty the trash.
Problem solved. Google will open.