Skip navigation

Safari 5.1 suddenly cannot connect to server when accessing Google?

14315 Views 68 Replies Latest reply: Feb 19, 2014 2:05 AM by sourouge RSS
1 2 3 ... 5 Previous Next
macboydesign Calculating status...
Currently Being Moderated
Aug 7, 2011 3:27 AM

I have always had my homepage set to www.google.co.uk but all of a sudden when I launch Safari 5.1 it's throwing up there error message 'Safari can't connect to the server', any ideas?

iMac 24" intel, Mac OS X (10.6.4)
  • Carolyn Samit Level 10 Level 10 (83,990 points)

    Go to ~/Library/Cookies.

     

    Move the Cookies.plist file to the Trash.

     

    ~ (Tilde) represents your Home folder.

     

    Quit then relaunch Safari.

     

    If that didn't help, go to ~/Library/Preferences.

     

    Move the com.apple.Safari.plist file to the Desktop.

     

    Quit then relaunch Safari to test. If that helped, move the .plist file to the Trash.

  • Carolyn Samit Level 10 Level 10 (83,990 points)

    The are two libraries. One is root and one is your Home folder

     

    The ~ character represents your Home folder.

     

    Open a Finder window.

     

    Select your Home folder in the Sidebar on the left. It has a small house icon.

     

    Then open the Library folder then the Cookies folder.

     

    Same for      ~/Library/Preferences - com.apple.Safari.plist

  • Linc Davis Level 10 Level 10 (107,380 points)

    Launch the Network Utility application and select the Ping tab. Enter "www.google.co.uk" (without the quotes) in the address field and press return. Results?

  • Linc Davis Level 10 Level 10 (107,380 points)

    You have a serious problem, and it has nothing to do with Safari. Your connection requests to Google are being hijacked.

     

    Open the Network preference pane in System Preferences and click the Advanced button. In the sheet that opens, select the DNS tab. What are the addresses of your DNS servers?

     

    Next, launch the TextEdit application and select File > Open. Navigate in the open-file dialog to the top level of your startup volume. Press the key combination Command-Option-period. Files that are invisible in the Finder will now appear in the dialog. Navigate to /private/etc/hosts and click Open. Post the contents of the hosts file.

  • Linc Davis Level 10 Level 10 (107,380 points)

    They are cable.virginmedia.net

     

    That's not what you saw in the preference pane. I'd like to know the numerical IP addresses of the DNS servers. I'd also like to see the contents of the hosts file, please. I'm not using Lion myself, so if the hosts file is not where I said it was, I don't know where it is. I'm pretty sure it is there. My time for dealing with this is limited. Without the information I asked for, I can't help you.

     

    Why would someone hijack my google requests?

     

    Not for any reason that's in your best interest.

  • Linc Davis Level 10 Level 10 (107,380 points)

    the DNS server IP is 10.0.1.1

     

    That's the address of your router. Open its settings and find the addresses of the public DNS servers it uses. The information is not private. You've already disclosed who your ISP is.

     

    The instructions you gave me for TextEdit didnt work

     

    Launch the Terminal application and copy or drag -- do not type -- the following text into the window, then press return.

     

    cat /etc/hosts

     

    Post the lines of output that appear below what you entered. You can then quit Terminal.

  • MadMacs0 Level 4 Level 4 (3,315 points)

    macboydesign wrote:

     

    I have always had my homepage set to www.google.co.uk but all of a sudden when I launch Safari 5.1 it's throwing up there error message 'Safari can't connect to the server', any ideas?

    You have been infected by malware that you downloaded and installed.  The download was probably called "FlashPlayer.pkg".  If you still have it please don't trash it quite yet.  For the benefit of others in this community can you please upload it to http://www.virustotal.com.  If the results do not show anything in the status column next to ClamAV can you also upload it to http://cgi.clamav.net/sendvirus.cgi and in the description box include the keyword "macos".  If you know the name of the site where you downloaded it from, that would also be useful.  Then you trash it so you won't be tempted to run it again.

     

     

    A description of this malware along with instructions on fixing it can be found here: http://www.f-secure.com/v-descs/trojan_bash_qhost_wb.shtml

     

     

    Thanks in advance and let us know how it goes.

  • MadMacs0 Level 4 Level 4 (3,315 points)

    Still have the culprit file which I will upload to the site you gave me.

    Great! and if you can get back to us with the VirusTotal ID that will help us find the sample quicker.

    Not sure where I got it, think it may have been a graphic design site that told me I wasnt running the latest version of Flash which should have made me immediately suspicious seeing as all of my apps are up-to-date but nonetheless all sorted.

    That matches up with what we heard earlier today from another user.  Unfortunately the site he visited had been cleaned up already.

    Would you recommend any good software to protect me in future plus any apps to give my macs a spring clean?

    It's not clear that you actually need anything right now.  Only the F-Secure AV software would have identified this one in your case and Apple's XProtect system was updated late yesterday to catch it.  Most others will be updated some time today based on your help.  Most folks in the forum currently recommend the same thing or one of the freeware offerings that are available if you feel you must. I do uncompensated tech support for the ClamXav forum so I tend to be partial to that.

     

    As far as Cleaners are conserned I'm a firm believer in not using any of them.  They tend to do more harm than good and the Mac OS does a reasonable job in taking care of itself.  Use the advise found at Randy Singer's Macintosh OS X Routine Maintenance and you should be fine.  If you find that you need something special done there is freeware that can do the job just as well as any commercial product out there.  Most are listed in that same article.

1 2 3 ... 5 Previous Next

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.