Does Safari keep opening spam tabs when you are active on your browser, or as soon as you have logged into your device?

Do you recall clicking on a pop-up advert during your previous browsing activity? If so, this could have downloaded malicious software onto your Apple device.

Safari will keep opening random tabs if you have enabled extensions that are running in the background. Disabling these features will help stop unwanted tabs from opening in Safari.

With this straightforward guide, we will expand on the reasons why this issue is occurring as well as provide four simple solutions.

If you are experiencing further issues with your Safari tabs, either being automatically deleted or showing up as blank, we’ve got your covered.

Why is Safari opening spam tabs?

Safari keeps opening spam tabs

Why does my Safari keep opening random tabs?

Safari will keep opening spam tabs if your Mac PC has incurred a suspicious program in its files. This is normally an ad-ware virus, which is a software that will cause your browser to automatically open unwanted tabs. This can happen unintentionally if you have accessed a website that contains malware (malicious software).

Besides a virus on your Mac causing Safari to keep opening spam tabs, the following reasons are additional factors that will cause this issue;

Reason 2. Corrupt installation

If you have recently completed an installation of a program onto your Mac, the downloaded files may have contained corrupted data. A sure sign that will confirm if your device contains incompatible software will be if Safari keeps crashing when you try and use browse the web.

This can happen if the installation was interrupted or accessed through an untrustworthy site.

Reason 3. Background app interference

Enabled extensions on your device can sometimes interfere with your browser if they stay running in the background while you are making use of Safari.

If a specific feature is turned on and it is incompatible with your web browser, it can cause spam tabs to automatically open.

Reason 4. Clicked pop-up

Did you perhaps click on a pop-up or advert the previous time you were on Safari?

It may have downloaded a virus onto your Apple device if you did.

How to stop Safari from opening spam tabs

Safari keeps opening spam tabs

How do I stop unwanted tabs from opening in Safari?

You can stop Safari from opening unwanted tabs by removing the malware off of your Apple device to get rid of any corrupted software that has already been installed. Downloading Malwarebytes will eradicate any ad-ware viruses that are causing Safari to open spam tabs. 

If you do not have security programs installed on your Mac to protect it from such threats, your device will be more susceptible to viruses.

To erase any current viruses on your PC, you can download the Malwarebytes app.  Once the program has completed its process, Safari should not open any more spam tabs. Alternative software is Reimage which will complete the same procedure on your device.

You can prevent this issue from occurring again in the future by executing these additional fixes;

Fix 1. Empty Safari cache files

Your browser will automatically store cache files that will be used to improve the performance every time you launch the same website. If this site is suspicious, or the cache files are corrupted, Safari will experience the spam issue.

Step 1. Launch the Safari ‘Menu’

Step 2. Select ‘Preferences’

Step 3. Click on ‘Remove all website data’

Note, this will erase your complete browser history. If you want to keep your previous visited sites, there is an alternative step to erasing the cache files;

Step 1. After accessing ‘Preferences’ click on ‘Advanced’

Step 2. Enable the ‘Show Develop Menu’

Step 3. You should now be able to select ‘Empty Caches’

The cache files will be removed, and you will still have your browser history.

Fix 2. Update Apple software

If you keep your Apple software updated, it will ensure all software issues get fixed, and the performance of your Apple device is improved.

Updates are continuously being made available with an increase in security measures.

Fix 3. Enable Safari security settings

If you enable the security settings in Safari, you will protect your browser from unwanted pop-ups and unsafe sites.

This will prevent random spam tabs from opening.

On Mac:

‘Safari > Preferences > Security Tab > Enable’

On iPhone:

‘Settings > Safari > Block Pop-ups’

Tip, switch on the feature that will warn you if you are about to access a fraudulent website.

(Fun Fact; The first-ever drawing drafted for the Apple logo was done by Ronald Wayne, who is the third co-founder of Apple. He drew Isaac Newton under an Apple tree in 1976. The final design for the Apple logo was then created by Rob Janoff in 1977).

Fix 4. Disable Safari extensions

Your current enabled extensions could be the reason why Safari keeps opening spam tabs if they are corrupted or faulty.

How to disable Safari extensions:

Open Safari > Preferences > Extensions

You will be able to turn off any extensions that are currently active. If you see any extensions that no longer need to be installed on your Mac, uninstall them.

Why is Safari deleting my tabs?

Safari keeps opening spam tabs


Safari will automatically delete your tabs after a certain amount of time has passed where the browser tab has been inactive. Safari will notice that the page is dormant. This is to save your device’s battery life and keep the memory usage at a minimum so other processes can perform properly. 

If you are noticing your open tabs are disappearing in Safari, there is a featured setting you can change that will instruct Safari to keep the open browser tabs active until you manually close them.

How to stop Safari from automatically closing tabs:

On iPhone:

Step 1. Launch ‘Settings’

Step 2. Find and click on ‘Safari’

Step 3. Under the heading ‘Tabs’ click on ‘Close Tabs’

Step 4. Change this to your preference

The maximum time you can set your tabs to stay open in Safari is one month.

On Mac:

Step 1. Launch the Safari browser on your Mac

Step 2. Access the ‘Menu’ option and select ‘Preferences’

Step 3. Now get into the ‘General’ tab

Step 4. From the ‘Safari Opens With’ click on ‘All Windows from the last session’ from the drop-down menu

This will launch all previously used tabs from your last Safari session.

Why are Safari tabs blank?

Laptop use

Why are Safari tabs blank

Your Safari tabs will be blank if the private browsing setting has been enabled on your Apple device, specifically on mobile. Private browsing does not share any of your details with other web browsers, and Safari will not remember the page you are trying to access because the temporary browsing data will not be kept.

You can change your Safari setting back to normal by following these steps;

Step 1. Launch Safari

Step 2. Click on the ‘tabs’ button at the bottom right

Step 3. Click on the ‘Private’  that appears with a drop down menu

Step 4. Change the setting to ‘Start Page’

Your browser will now keep your information, and contain the cache files to keep the memory of the web pages you visit.

If you access Safari and the pages load fine, but the tabs with the web titles are blank, you should be able to fix this by completing a ‘Force Quit’ out of Safari and relaunching.

Step 1. Press the ‘Apple Logo’ from the menu section and select ‘Force Quit’

Step 2. Once the new window opens, click on ‘Safari’ followed by ‘Force Quit’

Step 3. Open Safari again but hold down on the ‘Shift’ button while launching

Your Safari should now operate without any further issues.


With this guide, we hope you now understand why Safari kept opening spam tabs, and that you were able to proceed with fixing this error by using one of our four easy solutions.

If you have tried all of the fixes provided and Safari keeps opening random tabs, there may be a underlying issue with the software on your device. You can contact Safari support through Apple’s chat service, or, you can schedule a call with them.

(Quiz Time; Who designed the current Apple logo?) Complete your answer in the comments section of our contact form, along with your details.