Mac

How to Stop Safari’s Search Engine from Switching to Yahoo

Learn the most effective ways to fix Safari when its search engine keeps changing to Yahoo on Mac or iPhone, including browser settings, extensions, and malware checks.

Kevin Martin
Kevin Martin
Tech Contributor  •  Sep 19, 2026  •  6 min read

If Safari keeps switching your search engine to Yahoo, the cause is usually a changed browser setting, a suspicious extension, or unwanted software modifying your browser preferences. In some cases, the issue comes back because more than one setting needs to be fixed.

This guide covers the most reliable ways to stop Safari from changing search engines back to Yahoo on Mac and iPhone, starting with the simplest checks and moving to more thorough cleanup steps.

How to Stop Safari’s Search Engine from Switching to Yahoo

1. Check Safari’s Search Engine Setting

The first thing to verify is Safari’s built-in search engine setting. If it was changed manually or by a browser profile, Safari may keep using Yahoo until you set it back.

  1. Open Safari.
  2. On Mac, choose Safari > Settings or Preferences from the menu bar.
  3. Go to the Search tab.
  4. Look for Search engine and set it to Google, DuckDuckGo, Bing, or your preferred option.
  5. Close the window and test a search from the address bar.
Key Fact Safari uses the search engine selected in its settings for searches typed into the address bar.

2. Remove Suspicious Safari Extensions

Extensions can change how Safari behaves, including redirecting searches. If Yahoo keeps coming back, disable any extension you do not recognize or no longer need.

  1. Open Safari settings and go to the Extensions tab.
  2. Review the list carefully.
  3. Turn off any extension that looks unfamiliar, was recently installed, or is not from a trusted source.
  4. Test Safari after disabling one or more extensions.
  5. If the problem stops, remove the extension completely.
Warning Do not keep an extension installed just because it seems harmless. A browser extension with permission to read and change websites can affect searches, redirects, and privacy.

3. Check for Search-Related Profile or Managed Settings on Mac

On a Mac, some settings can be controlled by configuration profiles or device management. If Safari keeps resetting, a profile may be enforcing the Yahoo search setting.

  1. Open System Settings.
  2. Go to Privacy & Security or General, depending on your macOS version.
  3. Look for Profiles, Device Management, or VPN & Device Management.
  4. Review any profiles you do not recognize.
  5. Remove only profiles you are sure are unnecessary or suspicious.
Note Some work or school Macs are managed intentionally. If the device is managed by an organization, check with the administrator before removing anything.

4. Clear Safari Website Data and History

Corrupted browser data does not usually change the search engine setting by itself, but clearing Safari’s stored website data can help remove leftover redirect behavior and tracking scripts.

  1. In Safari, open Settings or Preferences.
  2. Go to the Privacy tab.
  3. Click Manage Website Data.
  4. Remove all stored data, or clear entries related to search or redirect sites if you prefer to be selective.
  5. Then clear Safari history if needed from the History menu.
Quick Tip If you want to keep logins on some websites, try removing only suspicious or unfamiliar website data first instead of wiping everything.

5. Look for Unwanted Browser Hijacker Software on Mac

If Safari keeps changing to Yahoo after you have fixed the settings, a browser hijacker or adware app may be installed on the Mac. These programs often change browser settings, add extensions, and redirect searches.

  1. Open Applications and remove any suspicious app you find.
  2. Check System Settings for Login Items and remove unknown entries.
  3. Review Safari extensions again after removing suspicious apps.
  4. If needed, run a trusted anti-malware tool to scan the Mac.
  5. After cleanup, set Safari’s search engine again and test it.
Warning Be careful when removing apps or login items. If you are unsure what a program does, look it up before deleting it.

6. Reset Safari Homepage, New Tab, and Search Preferences

Some unwanted software changes more than just the search engine. It may also alter the homepage or new tab page, which can make it seem like the search engine is still being hijacked.

  1. Open Safari settings.
  2. Check the General tab for homepage changes.
  3. Review the Search tab and set your preferred search engine again.
  4. Open a new tab and make sure it behaves normally.
  5. If Safari still redirects, revisit extensions and profiles.
Why It Matters When the homepage, default search engine, and extensions are all changed together, fixing only one setting may not solve the problem for long.

7. Update macOS and Safari

Outdated system software can contribute to browser bugs and security issues. Updating macOS also updates Safari on most versions of the Mac operating system.

  1. Open System Settings.
  2. Go to General > Software Update.
  3. Install any available macOS updates.
  4. Restart only if the update process asks you to do so.
  5. Open Safari and confirm the search engine setting is still correct.
Key Fact On Mac, Safari updates are usually delivered through macOS software updates rather than a separate browser installer.

8. Check iPhone and iPad Safari Settings

If the problem happens on an iPhone or iPad, the fix is usually in iOS or iPadOS settings rather than Safari’s desktop-style preferences.

  1. Open Settings.
  2. Scroll down and tap Safari.
  3. Tap Search Engine.
  4. Choose your preferred search provider.
  5. Go back and check for any installed profiles or device management settings if the problem keeps returning.
Note Safari settings on iPhone and iPad are managed through the Settings app, not inside Safari itself in the same way as on a Mac.

9. Remove Suspicious Profiles or Apps on iPhone and iPad

If Safari on iPhone or iPad keeps changing to Yahoo, a configuration profile, shortcut, or app may be influencing browser behavior.

  1. Open Settings > General > VPN & Device Management.
  2. Review any profile you do not recognize.
  3. Remove the profile if you are certain it is not needed.
  4. Delete any suspicious apps you recently installed.
  5. Check Safari again and set the search engine back to your preferred choice.
Warning Do not remove a work, school, or MDM profile unless you understand the impact. It can affect email, apps, and access to company resources.

How to Tell Whether It Is a Setting or Malware

A one-time change in Safari’s search engine usually points to a simple setting issue. If Yahoo keeps returning after you set a different search engine, the problem is more likely caused by an extension, profile, or unwanted software.

When to Take a Stronger Cleanup Step

If none of the fixes above work, the next step is to perform a more thorough scan for unwanted software and remove anything tied to browser redirects. On a Mac, that usually means checking applications, login items, profiles, and extensions together rather than changing only one browser setting.

Quick Tip After cleaning up, set the search engine again last. If you change it before removing the cause, it may switch back immediately.

Keeping Safari from Switching Back

Once Safari is fixed, the best prevention is to avoid installing unknown browser add-ons, skip bundled installers, and be cautious with “free” cleanup tools or download managers. These are common sources of browser setting changes.

Topics

More from Mac

View all →
Installing YouTube Music on Your Desktop: Windows and Mac Guide
Mac

Installing YouTube Music on Your Desktop: Windows and Mac Guide

How to Fix Voice Memos Not Syncing Between iPhone and Mac
Mac

How to Fix Voice Memos Not Syncing Between iPhone and Mac

4 Ways to Fix Google Chrome When It Stops Working on a Mac
Mac

4 Ways to Fix Google Chrome When It Stops Working on a Mac

How to Rename Your AirDrop Device on iPhone, iPad, and Mac
Mac

How to Rename Your AirDrop Device on iPhone, iPad, and Mac

Converting Word Documents and Pages Files on Mac: Both Directions Explained
Mac

Converting Word Documents and Pages Files on Mac: Both Directions Explained

37 Useful Discord Keyboard Shortcuts for Windows and Mac
Mac

37 Useful Discord Keyboard Shortcuts for Windows and Mac