Short answer: To remove a browser hijacker from Safari on a Mac, quit Safari and work from the outside in. First check System Settings > General > Device Management for configuration profiles you didn’t install, because a profile can force a homepage or search engine and lock Safari settings. Next, remove unknown items in System Settings > General > Login Items & Extensions and delete the app that installed the hijacker. Then open Safari and remove unfamiliar extensions under Settings > Extensions, reset the homepage under General and the search engine under Search, and revoke notification permissions for spammy sites under Websites. Finally, check network proxy settings and clear website data. Restart and test; if the hijack returns, look for launch agents.
What a Safari hijacker usually changes
Mac hijackers rarely break Safari itself. They change settings or add components that change them for you: a homepage pointing at a search portal, a different default search engine, a Safari extension that rewrites searches, a configuration profile that enforces those settings, or an app that reapplies them at login. Some redirect traffic through a proxy to inject ads. Matching the symptom to the mechanism saves time.

| Symptom | Likely mechanism | Where to fix |
|---|---|---|
| Homepage or search engine changes back after you fix it | Configuration profile or relaunching app | Device Management, Login Items |
| Searches bounce through an unfamiliar domain before results | Safari extension | Safari > Settings > Extensions |
| Ads or pop-ups in the corner of the screen even with Safari closed | Website notifications | Safari > Settings > Websites > Notifications |
| Strange pages on every browser, not just Safari | Proxy, DNS or system-wide adware | System Settings > Network, launch agents |
| Settings greyed out | Profile enforcing them | Device Management |
Step 1: check for configuration profiles
Profiles are a legitimate tool companies and schools use to manage Macs, but adware abuses them to lock in a homepage and search engine. Apple’s current instructions: open the Apple menu > System Settings, click General in the sidebar, then click Device Management (you may need to scroll). Installed profiles appear there. Select any you don’t recognize and click the Remove button. On older macOS versions, profiles appear under System Settings > Privacy & Security > Profiles.
If this is a work or school Mac, ask your IT team before removing anything; their profiles are expected. Apple notes that some profiles can only be removed by an administrator. On a personal Mac with no management, any profile you didn’t knowingly install is suspect.
Step 2: remove the app that brought it in
Hijackers usually arrive bundled with something you downloaded: a free video converter, a fake Flash or video codec update, a cracked app or a “PDF tool”. Open your Applications folder, sort by Date Added, and look at what arrived around the time the problem started. Drag suspicious apps to the Trash. Some have their own uninstaller; use it if it comes from a developer you trust.
Then open System Settings > General > Login Items & Extensions. Remove unknown entries under “Open at Login” and switch off unfamiliar items under “Allow in the Background”. The background list reveals helpers that relaunch adware even after you delete the main app.
Step 3: clean Safari’s own settings
- Extensions. Safari > Settings > Extensions. Turn off and uninstall anything you don’t recognize or no longer use. A Safari extension ships inside an app, so Safari may tell you to remove the containing app; do so.
- Homepage. Safari > Settings > General. Set Homepage to a page you choose, and check what “New windows open with” and “New tabs open with” are set to.
- Search engine. Safari > Settings > Search. Pick the search engine you want from Safari’s built-in list.
- Notifications. Safari > Settings > Websites > Notifications. Remove or deny any site you don’t want sending alerts. Fake virus warnings and dating ads appearing in the Notification Center usually come from here, not from malware.
- Website data. Safari > Settings > Privacy > Manage Website Data. Remove data for suspicious domains, or remove all if you don’t mind signing in again.
Step 4: check network settings
Some adware routes traffic through a proxy to inject ads into every browser. Open System Settings > Network, select your active connection, click Details, and look at Proxies. Unless you or your employer set one up, the automatic proxy configuration and web proxy options should be off. While there, glance at DNS: an unexpected DNS server you didn’t configure can also redirect lookups. If you aren’t sure, removing custom entries lets your router’s defaults take over.
Step 5: hunt persistent launch agents
If everything reappears after a restart, something is relaunching it. macOS keeps background jobs in launch agent and daemon folders. Open Terminal and list them:

ls -la ~/Library/LaunchAgents /Library/LaunchAgents /Library/LaunchDaemons
Legitimate entries usually have names like com.apple, com.google.keystone or the reverse-domain name of software you installed. Adware often uses random-looking names or generic ones such as com.update.service. Before deleting anything, open the .plist file to see which program it launches; delete both the plist and the program it points to, then restart. If you aren’t comfortable doing this, our guide to removing adware from a Mac walks through identifying relaunchers in more detail.
XProtect, Apple’s built-in malware protection, removes many known adware families automatically, and keeping macOS updated ensures it has current definitions. If what you’re seeing goes beyond ads, such as password prompts or apps asking for Accessibility access, read our guide to Mac trojan and infostealer removal.
Step 6: test and confirm
Restart the Mac, open Safari, and search for something ordinary. Watch the address bar as results load; there should be no flash of an unfamiliar domain. Check the homepage and search settings have stuck. Use the Mac for a day, then check Device Management and Login Items again to make sure nothing returned.
If the same hijack shows up in Chrome or Firefox on the same Mac, it’s system-level, and steps 1, 2, 4 and 5 are where the fix lies. For a broader explanation of how hijackers work across browsers, see what a browser hijacker is.
On iPhone and iPad
iOS Safari can’t be hijacked the same way, but it can still pick up spammy notifications, unwanted extensions and configuration profiles. Check Settings > General > VPN & Device Management for profiles, Safari’s extensions list in Settings, and clear history and website data from Safari’s settings. Fake calendar subscriptions are another common iPhone annoyance.
Frequently asked questions
Can a Safari extension see my passwords?
Extensions with permission to read and change web pages can see what you type on those pages. If a hijacking extension had broad access, change passwords for important accounts after removing it.
Why can’t I change my Safari homepage?
A configuration profile is probably enforcing it. Remove the profile in Device Management and the setting becomes editable again.
Do I need antivirus on a Mac to remove a hijacker?
Usually not. Manual removal plus XProtect handles most hijackers. A reputable scanner can help find leftovers, but avoid apps advertised through pop-ups, which are often adware themselves.
Is resetting Safari possible like in Chrome?
Safari has no single reset button. Clearing history and website data, removing extensions and resetting homepage and search achieve the same effect.



