Short answer: To remove a search redirect in Safari, first check the search engine setting: on iPhone and iPad go to Settings, Apps, Safari, Search Engine; on a Mac open Safari, Settings, Search. Set it back to your choice. Next, remove Safari extensions you do not recognize, delete any unknown VPN and Device Management profiles, and clear history and website data. On a Mac, also check Login Items and the Applications folder for adware, and restart so macOS can run its built-in malware removal. If searches still bounce through strange domains, look at DNS and VPN settings, which can redirect traffic outside Safari entirely.
What a search redirect actually is
A search redirect happens when you type a query into Safari and the request passes through one or more unfamiliar domains before landing on a results page, often Yahoo or Bing, or a low-quality search site full of ads. The redirect lets someone earn money from your searches or track them. Unlike a full browser hijack, your homepage may look normal; only searches are affected.

On iPhone and iPad, true viruses are rare because apps are sandboxed. Redirects there usually come from a Safari extension, a configuration profile, a VPN or DNS setting, or simply a website you visited. On a Mac, adware applications are more common and can change browser settings or install extensions.
If your Mac’s Safari homepage and new tab page are also changed, our guide to Safari hijacked on a Mac covers the broader cleanup. This article focuses on searches that redirect.
Step 1: Read the redirect clues
Before changing anything, run a test search and watch the address bar. Do you see an unfamiliar domain flash before the results? Does it happen for every search or only some? Does it happen on Wi-Fi but not on mobile data? These clues point to the cause.
| Clue | Likely cause | Where to fix |
|---|---|---|
| Search engine setting changed | Extension or adware | Safari search settings |
| Redirect on every device on one Wi-Fi | Router DNS changed | Router admin page |
| Redirect only on one network or with VPN on | VPN or DNS profile | VPN and Device Management |
| Only after visiting a certain site | Site data or notifications | Clear website data |
| Mac only, plus pop-ups | Adware app | Applications and Login Items |
If you see redirects across several browsers on a Mac, our article on a search engine that keeps changing to Yahoo helps pin down the cause across browsers.
Step 2: Reset the search engine
On iPhone or iPad, go to Settings, Apps, Safari, then Search Engine, and choose the engine you want. On older iOS versions the path is Settings, Safari. On a Mac, open Safari, choose Safari, Settings, then the Search tab. If the setting changes back after you fix it, something is controlling it, usually an extension or a profile.
Step 3: Remove suspicious extensions
On iPhone and iPad, go to Settings, Apps, Safari, Extensions, and turn off or delete any extension you do not recognize or no longer use. Delete the related app from your home screen to remove the extension completely. On a Mac, Apple recommends checking the Extensions tab in Safari settings for extensions you did not intend to install. Turn them off, then uninstall them by deleting the app that installed them.
Be wary of extensions that promise better search, PDF conversion, coupon finding or video downloading, a common disguise for search redirectors.
Step 4: Check profiles, VPN and DNS
On iPhone and iPad, go to Settings, General, VPN and Device Management. If you see a profile you did not install, and the device is not managed by your school or employer, remove it. Malicious profiles can install DNS settings, root certificates or VPN configurations that redirect traffic. Our guide to malicious iPhone configuration profiles explains each type. On a Mac, check System Settings, General, Device Management, and also Network settings for unfamiliar VPN or DNS entries.

If every device on your home Wi-Fi is redirected, log into your router and check its DNS settings. Change the router admin password and update firmware if DNS was altered.
Step 5: Clear history and website data
Some redirects are driven by data that websites stored in Safari, or by notification permissions you granted. On iPhone and iPad, go to Settings, Apps, Safari, and tap Clear History and Website Data. On a Mac, open Safari, choose History, then Clear History, and in Settings check the Websites tab for notification permissions you do not want.
Clearing history signs you out of sites, so make sure you know your passwords or use a password manager first.
Step 6: Mac-specific adware checks
Apple’s guidance for unwanted ads on a Mac is to update to the latest macOS, then restart, because macOS includes a built-in tool that removes known malware during restart. Check your Applications folder for apps you do not recognize and move them to the Trash. Then open System Settings, General, Login Items and remove unfamiliar items under Open at Login and Allow in the Background. Apple also recommends getting software from the App Store or directly from developers, not through ads or links.
When reopening Safari, hold Shift while launching it to stop previously open windows, including redirect pages, from reloading.
Step 7: Protect yourself going forward
Turn on Fraudulent Website Warning in Safari settings on all devices. Keep iOS, iPadOS and macOS updated. Only install extensions from developers you trust, and review the Extensions list every few months. If you share an Apple Account across devices, remember that Safari extensions can sync, so clean every device.
How to see exactly where your searches are being sent
If the cause is not obvious, record the redirect chain so you know what you are dealing with. On a Mac, turn on the Develop menu (Safari, Settings, Advanced, then Show features for web developers), open Develop, Show Web Inspector, select the Network tab and tick Preserve Log. Run a search from the address bar and read the list of requests from the top. The first domain after your query is usually the one doing the hijacking. A domain you recognize from an installed app or extension name confirms the culprit; a domain you have never heard of points to a profile, DNS change or adware.
On iPhone and iPad there is no built-in inspector, so use simpler tests. Switch from Wi-Fi to mobile data and search again. If the redirect stops, the problem is on the network, usually the router’s DNS. If it continues, turn on Private Browsing and search again. A redirect that disappears in a private tab points to website data or an extension that is not allowed in private windows. A redirect that persists everywhere points to a configuration profile or VPN.
Write down any domain you see before you clean up. If the same name appears in a profile, an app or a login item, remove that item first. If several family devices behave the same way, check the router before you spend time on each phone.
Frequently asked questions
Can an iPhone get a search redirect virus?
True viruses are rare on iPhone. Redirects usually come from extensions, configuration profiles, VPN or DNS settings, or website data, all of which you can remove from Settings.
Why does Safari keep switching to Yahoo?
Something is controlling the search setting or intercepting queries: an extension, a profile, adware on a Mac or a changed DNS server. Check each in turn.
Will resetting my iPhone fix the redirect?
A full reset removes extensions and profiles, but it is rarely necessary. Work through extensions, profiles and website data first.
Do I need antivirus for Safari on a Mac?
macOS has built-in protection that removes known malware on restart. Third-party tools can help find stubborn adware, but download them only from the developer’s official site.



