Skip to main content
Tech Radar TechRadar the technology experts
Sign in
  • View Profile
  • Sign out
RSS
Asia
flag of Singapore
Singapore
Europe
flag of Danmark
Danmark
flag of Suomi
Suomi
flag of Norge
Norge
flag of Sverige
Sverige
flag of UK
UK
flag of Italia
Italia
flag of Nederland
Nederland
flag of België (Nederlands)
België (Nederlands)
flag of France
France
flag of Deutschland
Deutschland
flag of España
España
North America
flag of US (English)
US (English)
flag of Canada
Canada
flag of México
México
Australasia
flag of Australia
Australia
flag of New Zealand
New Zealand
  • Phones
  • Computing
  • TVs
  • AI
  • Streaming
  • Health
  • Audio
  • VPN
  • More
    • Cameras
    • Home
    • News
    • Reviews
    • Opinion
    • How to
    • Versus
    • Deals
    • Coupons
    • Best
Tech Radar Pro
Tech Radar Gaming
Trending
  • Nintendo Switch 2
  • WWDC
  • Best laptop
  • Best VPN
  • ChatGPT
  • Best web hosting
  • NYT Wordle today

Recommended reading

A person in a wheelchair working at a computer.
Pro Why betting on Mac security could put your organization at risk
The Safari icon on an iPhone next to an iPhone showing the Chrome logo
Security This worrying Apple Safari security bug could leave users wide open to cyberattacks
A young boy hugs his father from behind while they look at a laptop.
Pro Essential tips for keeping your child safe online
Find the best Mac antivirus for you. Even your Mac needs an anti-virus software for protection.
Antivirus The best antivirus software for Mac 2025
An abstract image of digital security.
Security Devious new ClickFix malware variant targets macOS, Android, and iOS using browser-based redirections
Malware attack virus alert , malicious software infection , cyber security awareness training to protect business
Security How to turn off antivirus
A hacker wearing a hoodie sitting at a computer, his face hidden.
Security A new 'Wikipedia for extensions' wants to make your web browser far more secure by exposing dangerous tools
  1. Computing
  2. Software
  3. macOS

How to browse the internet safely in macOS

How-to
By Nate Drake published 8 April 2017

Be safe in macOS

When you purchase through links on our site, we may earn an affiliate commission. Here’s how it works.

Stay safe

Stay safe

Although Macs are generally less prone to malware and viruses, the Safari browser can be exploited through malicious code and can display annoying pop up ads. It’s also fairly easy by default for someone to retrieve your browsing history and see files you’ve downloaded. 

In this guide, we’re going to explore some ways to make your browsing experience more secure. Before starting out, do make sure you have the most recent version of macOS and the Safari browser by opening the Mac App Store and clicking “Updates”. This way you’ll have access to Safari’s latest security features.

Page 1 of 9
Page 1 of 9
1. Block pop up ads

1. Block pop up ads

While pop up ads are usually no more than a mild annoyance as you browse the web, some can contain harmful code or when clicked, take you to websites which do. You can block most ads through using the Safari Extension AdBlock Plus.

Click on Safari > Safari Extensions in the menu at the top left to see all available add ons. Click “AdBlock Plus”, then on the blue “install now” link to add it to Safari.

The AdBlock Plus button will appear to the left of your address bar. Click it to see details of what’s been blocked. 

Page 2 of 9
Page 2 of 9
2. Block tracking cookies

2. Block tracking cookies

Websites will often place tracking cookies on your computer. These are small files which record information about you and your browsing habits. This is mostly harmless but would you, for instance, want a life insurance website to know you’d just ordered some junk food? 

Install the Safari Extension ‘Ghostery’ to proactively block all tracking cookies. Click on Safari > Safari Extensions and search for 'Ghostery' in the search bar. Click 'Install Now' to be taken to the easy set up wizard. In the 'Blocking' section make sure to 'Select All' to block all kinds of tracking.

Page 3 of 9
Page 3 of 9
3. Use Private Browsing

3. Use Private Browsing

Click File > New Private Window at any time in Safari to start a private browsing session. Your Mac will not remember any pages visited, search history or forms filled inside a private window. The address bar is grey for easy identification. 

Go to Safari > Clear History to erase your existing browsing data. In the 'Clear' menu, choose the time period you want to erase e.g. the last hour then click 'Clear History'.

Safari can also automatically delete your browsing history after a certain length of time. Go to Safari > Preferences > General and find the 'Remove History Items' section to change this.

Page 4 of 9
Page 4 of 9
4. Disable Javascript

4. Disable Javascript

JavaScript is a programming language that can run inside web browsers allowing for more advanced features such as Google Docs. When Javascript is enabled, a page using it will load any Javascript programs automatically. In theory, this could mean if you accidentally click the wrong link, harmful code could run automatically on your system.

Go to Safari > Preferences > Security and untick ‘enable Javascript’ to change this. 

Remember though that some modern websites such as Google Drive require Javascript to run. Others may load but not appear as before - for instance Facebook will direct you to the mobile version of its site.

  • 5 good alternatives to Google Docs
Page 5 of 9
Page 5 of 9
5. Manage Passwords

5. Manage Passwords

The latest version of Safari offers a huge improvement in security, in that it requires your login password to show any password you’ve previously saved in the browser. This means if you leave your Mac unattended there’s less chance someone can open Safari and write down your passcodes.

Nevertheless, a skilled hacker might still be able to retrieve them. Consider using iCloud Keychain to store an encrypted copy of your passwords in the cloud. 

Go to System Preferences > iCloud > and tick ‘iCloud Keychain’ to set up. See our guide on using iCloud Keychain for further information.

Page 6 of 9
Page 6 of 9
6. Disable location services

6. Disable location services

In theory location services are a great way for websites to offer you customised web content, for instance by showing you local places to eat and drink when searching online.

In reality, information on your whereabouts could end up being shared without your permission to third parties. Would you want your employer, for example, to know you had a job interview with one of their rivals?

Disable location services by going to Safari > Preferences > Privacy. Under ‘Website Use of Location Services’ click ‘Deny without prompting’. 

Page 7 of 9
Page 7 of 9
7. Disable ‘Safe Downloads’

7. Disable ‘Safe Downloads’

By default Safari will automatically open files you download that use formats it considers to be ‘safe’ such as movies and PDF. This means that you have no chance to check the files are the right ones before opening. Malicious code also can hide in supposedly ‘safe’ files such as PDFs. 

Go to Safari > Preferences > General and untick ‘Open Safe Files after downloading’ to disable this feature. 

The Apple website also has some excellent tips for handling content downloaded from the internet.

For further security, see our round up of the best antivirus software for 2017. 

Page 8 of 9
Page 8 of 9
8. Change your search engine

8. Change your search engine

Many of the major search engine providers store logs of what you search for, websites you visit and your IP address. This information could be exploited to build up a detailed picture of your browsing habits, even if you use Safari’s Private Browsing mode, as although your history isn’t stored on your computer, the data still exists on the search engine’s servers.

You can avoid this by switching to the search engine DuckDuckGo. DuckDuckGo doesn’t track you, nor does it display customised ads. Go to Safari > Preferences > Search and choose DuckDuckGo in the ‘Search Engine’ menu to switch search engines. 

Page 9 of 9
Page 9 of 9
Nate Drake

Nate Drake is a tech journalist specializing in cybersecurity and retro tech. He broke out from his cubicle at Apple 6 years ago and now spends his days sipping Earl Grey tea & writing elegant copy.

See more Computing How Tos
Read more
A person in a wheelchair working at a computer.
Why betting on Mac security could put your organization at risk
The Safari icon on an iPhone next to an iPhone showing the Chrome logo
This worrying Apple Safari security bug could leave users wide open to cyberattacks
A young boy hugs his father from behind while they look at a laptop.
Essential tips for keeping your child safe online
Find the best Mac antivirus for you. Even your Mac needs an anti-virus software for protection.
The best antivirus software for Mac 2025
An abstract image of digital security.
Devious new ClickFix malware variant targets macOS, Android, and iOS using browser-based redirections
Malware attack virus alert , malicious software infection , cyber security awareness training to protect business
How to turn off antivirus
Latest in macOS
MacBook Air 2020
It’s official: your Intel Mac won’t get macOS 27, with macOS Tahoe 26 marking the end of an era
Apple MacOS Tahoe
macOS Tahoe 26 finally adds a much-needed feature that means I may never use Windows 11 again
Apple WWDC
macOS Tahoe 26 announced at WWDC 2025 with a new look and new numbering scheme: these are the best features for your new Mac or MacBook
MacBook Pro (13-inch, 2020)
Most Intel MacBook Pro laptops could miss out on macOS 26 according to new rumor – will future updates be Apple silicon only?
Apple developer beta announcement
How to download the macOS Tahoe 26 developer beta
Apple MacBook Air (M1,2020) Rear Lid
Does your Mac support macOS Tahoe 26? Here’s the full list of compatible MacBooks and Macs
Latest in How Tos
Rory McIlroy using his driver for a tee shot at the US Open.
US Open 2025 live stream: how to watch the golf online, schedule, Round 1 tee times
Australian players celebrate winning the 2003 World Test Championship with the mace awarded to the winners
How to watch World Test Championship Final 2025 online: Australia vs South Africa
PARIS, FRANCE - JUNE 6: Jannik Sinner of Italy during his match against Novak Djokovic of Serbia in the semi-final of the Men's singles competition on Court Philippe-Chatrier during the 2025 French Open Tennis Tournament at Roland Garros on June 6th, 2025, in Paris, France. (Photo by Tim Clayton/Getty Images)
How to watch French Open for FREE – stream Alcaraz vs Sinner at no cost
PARIS, FRANCE - JUNE 06: Carlos Alcaraz of Spain looks on during the Men's Singles Semi Final match on Day Thirteen of the 2025 French Open at Roland Garros on June 06, 2025 in Paris, France. (Photo by Franco Arland/Getty Images)
How to watch Jannik Sinner vs Carlos Alcaraz: Live stream French Open tennis 2025 for free now, players on court
Apple developer beta announcement
How to download the macOS Tahoe 26 developer beta
Apple WWDC 2025
How to download the iOS 26 developer beta
LATEST ARTICLES
  1. 1
    AI comes to the URL with a new web browser that answers you back
  2. 2
    Samsung's Galaxy Z Fold 7 Ultra hints are exciting, but I don’t think it will fix the Fold’s biggest flaw
  3. 3
    A system inspired by the human brain has quietly been activated at a US nuclear lab, and it has no operating system or storage
  4. 4
    This German startup wants to build portable quantum computers using diamonds - and says its QPU will sit next to a GPU or a CPU one day
  5. 5
    This Android AirTags rival finally got the one big feature it's been missing

TechRadar is part of Future US Inc, an international media group and leading digital publisher. Visit our corporate site.

  • About Us
  • Contact Future's experts
  • Contact Us
  • Terms and conditions
  • Privacy policy
  • Cookies policy
  • Advertise with us
  • Web notifications
  • Accessibility Statement
  • Careers

© Future US, Inc. Full 7th Floor, 130 West 42nd Street, New York, NY 10036.

Please login or signup to comment

Please wait...