October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk3 min

How to Stop Avast Scanning Your Code Files Safely

Stop Avast interruptions on trusted code files with a narrowly scoped exception. Steps differ for Windows, macOS, and Avast One.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If Avast is interrupting work on a trusted source file or build folder, add a narrowly scoped exception rather than turning off antivirus protection. The steps depend on whether you use Avast Antivirus or Avast One and, for Avast Antivirus, whether your computer runs Windows or macOS.

Before you add an exception

Check the product name shown in the app and identify the exact file or folder triggering the alert. Avast’s instructions and menus differ by product and operating system, and menu labels can change between versions.

As an Amazon Associate I earn from qualifying purchases.

Confirm where the file came from and that it is the item you intended to build or download. If you cannot establish that it is safe, do not exempt it simply to clear the alert. Avast advises setting exceptions only for files or sites you know are safe; it suggests checking an uncertain file with VirusTotal or submitting it to Avast Threat Labs. See Avast’s exclusion instructions.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Add an exception in Avast Antivirus on Windows

  1. Open Avast Antivirus and select Menu > Settings > General > Exceptions.
  2. Select Add exception. For a code file or project directory, choose the File/Folder tab, browse to the specific path, and add it.
  3. Before saving, review Advanced options. You can choose which detections or protections the exception applies to, including All scans, Behavior Shield, File Shield, Hardened Mode, and CyberCapture detections.

A file or folder exception may exclude that path from scans and shields, not just a scan you start manually. Use the smallest scope that resolves the interruption: a single trusted file is narrower than a project folder, and a specific build/output folder is narrower than a whole development drive. If only one protection is causing the problem, limit the exception to that feature rather than excluding the path from all scans and shields.

#1 Best Overall
Bitdefender Total Security 2026 – Complete Antivirus and Internet Security Suite – 5 Devices | 1 Year Subscription | PC/Mac | Activation Code by Mail
  • SPEED-OPTIMIZED, CROSS-PLATFORM PROTECTION: World-class antivirus security and cyber protection for Windows (Windows 7 with Service Pack 1, Windows 8, Windows 8.1, Windows 10, and Windows 11), Mac OS (Yosemite 10.10 or later), iOS (11.2 or later), and Android (5.0 or later). Organize and keep your digital life safe from hackers
  • SAFE ONLINE BANKING: A unique, dedicated browser secures your online transactions; Our Total Security product also includes 200MB per day of our new and improved Bitdefender VPN
  • ADVANCED THREAT DEFENSE: Real-Time Data Protection, Multi-Layer Malware and Ransomware Protection, Social Network Protection, Game/Movie/Work Modes, Microphone Monitor, Webcam Protection, Anti-Tracker, Phishing, Fraud, and Spam Protection, File Shredder, Parental Controls, and more
  • ECO-FRIENDLY PACKAGING: Your product-specific code is printed on a card and shipped inside a protective cardboard sleeve. Simply open packaging and scratch off security ink on the card to reveal your activation code. No more bulky box or hard-to-recycle discs. PLEASE NOTE: Product packaging may vary from the images shown, however the product is the same.

Avast Antivirus also documents a Command Line exception option. Use it only when the interruption concerns a command-line path or workflow and you understand the scope of what you are excluding.

Add an exception in Avast Security on macOS

Avast documents separate controls for scan exclusions and File Shield exclusions:

Rank #2
Sale
Norton 360 Deluxe 2027 Antivirus, 5 Devices, Auto-Renews [Download]
  • ONGOING PROTECTION Download instantly & install protection for 5 PCs, Macs, iOS or Android devices in minutes!
  • TOP-PERFORMING VPN Faster speeds, more server locations, and greater connection control to protect your privacy across all your devices, including Smart TVs.
  • ADVANCED SCAM PROTECTION Help spot hidden scams online. With the built-in Genie AI assistant, you’ll never wonder if a message or email is suspicious again.
  • REAL-TIME PROTECTION Advanced security protects against existing and emerging malware threats, including ransomware and viruses, and it won’t slow down your device performance.
  • DARK WEB MONITORING Identity thieves can buy or sell your information on websites and forums. We search the dark web and notify you should your information be found.
  • For a scan: Open Avast Security, go to Preferences > Scans, choose the relevant scan type, select Add exceptions, and choose the file, folder, or application.
  • For File Shield: Go to Preferences > Core Shields > File Shield > Add exceptions.

Web Guard exceptions apply to websites or domains, not code files, so they are not the appropriate setting for a source file or local project directory.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If you use Avast One

Do not assume that Avast Antivirus menu paths also apply to Avast One. Avast directs Avast One users to separate exclusion instructions. Confirm the app name and follow the support guidance for that product and version rather than trying to translate the Antivirus steps.

Rank #3
Sale
Norton 360 Premium 2027 Antivirus, 10 Devices, Auto-Renews [Download]
  • ONGOING PROTECTION Download instantly & install protection for 10 PCs, Macs, iOS or Android devices in minutes!
  • TOP-PERFORMING VPN Faster speeds, more server locations, and greater connection control to protect your privacy across all your devices, including Smart TVs.
  • ADVANCED SCAM PROTECTION Help spot hidden scams online. With the built-in Genie AI assistant, you’ll never wonder if a message or email is suspicious again.
  • REAL-TIME PROTECTION Advanced security protects against existing and emerging malware threats, including ransomware and viruses, and it won’t slow down your device performance.
  • DARK WEB MONITORING Identity thieves can buy or sell your information on websites and forums. We search the dark web and notify you should your information be found.

Choose the narrowest exception that works

  • Single file: Limits the rule to one item and is easiest to review or remove, but may not address repeated alerts on newly generated output.
  • Build or output folder: Can cover recurring generated files while keeping the exception within a defined part of the project.
  • Whole project folder: A broader choice that may exempt source files and other contents beneath that path; use it only when that scope is justified.
  • All scans and shields: Broadest protection impact. If Avast’s Advanced options let you limit the exception to a particular feature, choose only what resolves the specific interruption.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What to do if the alert continues

  1. Verify the alert’s file path and make sure it matches the file or folder you intended to exempt.
  2. Check the file’s origin and integrity. Be especially cautious with an unexpected binary, unfamiliar dependency, downloaded archive, or script you did not expect.
  3. If you still cannot verify the file, leave it protected and use VirusTotal or Avast Threat Labs as Avast suggests.
  4. If the file is trusted, try an exception limited to that file or its necessary output folder, and to the relevant scan or shield where the controls allow it.
  5. Review and remove the exception when the development task or need has ended.

Do not disable all shields just to make a build run. An exception trades protection for fewer interruptions on the path or feature it covers; keeping that scope small makes the trade-off easier to understand and reverse.

Best Value
Sale
Webroot Antivirus Software 2026 | 3 Device | 1 Year Download for PC/Mac
  • POWERFUL, LIGHTNING-FAST ANTIVIRUS: Protects your computer from viruses and malware through the cloud; Webroot scans faster, uses fewer system resources and safeguards your devices in real-time by identifying and blocking new threats
  • IDENTITY THEFT PROTECTION: Protects your usernames, account numbers and other personal information against keyloggers, spyware and other online threats targeting valuable personal data
  • REAL-TIME ANTI-PHISHING: Proactively scans websites, emails and other communications and warns you of potential danger before you click to effectively stop malicious attempts to steal your personal information
  • ALWAYS UP TO DATE: Webroot scours 95% of the Internet three times per day including billions of web pages, files and apps to determine what is safe online and enhances the software automatically without time-consuming updates
Rank #4
Sale
McAfee Total Protection 2027 Antivirus Software for 3 Devices | Auto-Renews
  • THREAT DETECTION – Stay one step ahead. Suspicious links, risky sites, viruses, and scams, caught automatically before they reach you.
  • PERSONAL INFO PROTECTION – Keep your personal info safer. Identity monitoring watches for your exposed info and tells you what to do about it.
  • SECURE CONNECTIONS – Just a few easy clicks, and we'll automatically protect your info on public Wi‑Fi, every time you connect.
  • GUIDED ACTION – Know what matters and what to do next. Clear alerts and simple guidance make it easy to take action.
  • MORE THAN ANTIVIRUS – Scam protection, identity monitoring, VPN, web protection, and antivirus work together to protect you, all in one place.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.