---
title: "How do I clear a webpage from Safari and keep from getting malware on my Mac?"  
description: "How do I clear a webpage from Safari and keep from getting malware on my Mac?"  
author: "Austin Dcruz"  
published: 2022-02-05  
canonical: https://answers.mindstick.com/qa/95535/how-do-i-clear-a-webpage-from-safari-and-keep-from-getting-malware-on-my-mac  
category: "troubleshooting"  
tags: ["safari browser", "safari web browser", "malware", "webpage", "troubleshooting"]  
reading_time: 2 minutes  

---

# How do I clear a webpage from Safari and keep from getting malware on my Mac?

How do I clear a webpage from Safari and keep from getting [malware](https://www.mindstick.com/articles/12717/malware-ransom-ware-and-spyware-and-its-effects) on my [Mac](https://www.mindstick.com/articles/12464/what-is-mac-o-s)?

\

## Answers

### Answer by Hitesh Vohra

**Steps to clear a webpage from [Safari](https://answers.mindstick.com/qa/95501/does-the-apple-iphone-safari-browser-open-with-google) and keep from getting malware on your Mac**

![How do I clear a webpage from Safari and keep from getting malware on my Mac?](https://answers.mindstick.com/questionanswer/2e7b5ad1-0c69-4fe3-8e58-6fe0d72d7ec8/images/1e0eab61-abed-41eb-8849-ca87683e5f41.png) **\**

- Go to Settings > Safari and press Erase History and Website Data to clear your history and cookies. Safari will not affect your AutoFill information if you clear your history, cookies, or browsing data. **Go to Settings > Safari > Advanced > Website Data, then press Remove All Website Data** to erase your cookies while keeping your history. Turn on Private Browsing to view websites without leaving a trail.
- Stay away from the 'dark' side of the internet!
- Stick to the Mac App Store to avoid Mac infections.
- Before downloading non-App Store apps, do your homework.
- Make sure your Mac is up to date.
- To protect your Mac from viruses and malware, use a popup blocker in Safari.
- Javascript should be disabled in Safari.

\

**[Read More ; Why is the Safari web browser so prone to crashing?](https://answers.mindstick.com/qa/95536/why-is-the-safari-web-browser-so-prone-to-crashing)**

\


---

Original Source: https://answers.mindstick.com/qa/95535/how-do-i-clear-a-webpage-from-safari-and-keep-from-getting-malware-on-my-mac

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
