New windows open up for such things as mac cleaner. How can I prevent this?

When I go to a web page, even apple.com, a new window gets opened from some one who want me to download a program to clean or enhance my Mac.
Running Maverick

Helpful Links Regarding Malware Problems
If you are having an immediate problem with ads popping up see The Safe Mac » Adware Removal Guide, AdwareMedic, or Remove unwanted adware that displays pop-up ads and graphics on your Mac - Apple Support.
Open Safari, select Preferences from the Safari menu. Click on Extensions icon in the toolbar. Disable all Extensions. If this stops your problem, then re-enable them one by one until the problem returns. Now remove that extension as it is causing the problem.
The following comes from user stevejobsfan0123. I have made minor changes to adapt to this presentation.
Fix Some Browser Pop-ups That Take Over Safari.
Common pop-ups include a message saying the government has seized your computer and you must pay to have it released (often called "Moneypak"), or a phony message saying that your computer has been infected, and you need to call a tech support number (sometimes claiming to be Apple) to get it resolved. First, understand that these pop-ups are not caused by a virus and your computer has not been affected. This "hijack" is limited to your web browser. Also understand that these messages are scams, so do not pay any money, call the listed number, or provide any personal information. This article will outline the solution to dismiss the pop-up.
Quit Safari
Usually, these pop-ups will not go away by either clicking "OK" or "Cancel." Furthermore, several menus in the menu bar may become disabled and show in gray, including the option to quit Safari. You will likely have to force quit Safari. To do this, press Command + option + esc, select Safari, and press Force Quit.
Relaunch Safari
If you relaunch Safari, the page will reopen. To prevent this from happening, hold down the 'Shift' key while opening Safari. This will prevent windows from the last time Safari was running from reopening.
This will not work in all cases. The shift key must be held at the right time, and in some cases, even if done correctly, the window reappears. In these circumstances, after force quitting Safari, turn off Wi-Fi or disconnect Ethernet, depending on how you connect to the Internet. Then relaunch Safari normally. It will try to reload the malicious webpage, but without a connection, it won't be able to. Navigate away from that page by entering a different URL, i.e. www.apple.com, and trying to load it. Now you can reconnect to the Internet, and the page you entered will appear rather than the malicious one.
An excellent link to read is Tom Reed's Mac Malware Guide.
Also, visit The XLab FAQs and read Detecting and avoiding malware and spyware.
See these Apple articles:
  Mac OS X Snow Leopard and malware detection
  OS X Lion- Protect your Mac from malware
  OS X Mountain Lion- Protect your Mac from malware
  OS X Mavericks- Protect your Mac from malware
  About file quarantine in OS X
If you require anti-virus protection Thomas Reed recommends using ClamXAV. (Thank you to Thomas Reed for this recommendation.)

Similar Messages

Maybe you are looking for

  • SEM Planning Areas Error

    Hi All, We have recently upgraded to BW 3.3 Content. After the upgrade I am unable to access/change the Planning Areas in BPS0 transaction. I am getting a pop-up with an error message as Syntax error in program /1SEM/CL_CHALEV_100ZDIN=======CP. (ZDIN

  • My daughter forgot her passcode and it is locked.  What to do?

    my daughter does not remember her passcode and has locked up her ipod.  it says to connect to itunes but itunes tells me to unlock passcode which i cant do.  help!!!

  • What Requirement Needed To Sell Application on iPhone?

    Hi, guys. Greetings. I want to ask help about requirement needed to sell application on iPhone. So if there's any kind person that can helped me out here, i would like to say thank you very much and may God repay your good deeds. Right now me and my

  • I get error code 150:30 when downloading

    I get error code 150:30 when downloading

  • MC DAQ initialize.vi error

    Hello, I am trying to use  MC DAQ Initialize.vi for reading some CCP  and I have the bellow error -301034 MC DAQ Initialize.vi Error -301034 occurred at MC DAQ Initialize.vi Possible reason(s): ECU Measurement and Calibration Toolkit:  (Hex 0xFFFB681