How to Fix ‘Google Drive Can’t Scan This File for Viruses’ Warning

Attempting to download a large zip archive, video file, ISO image, or application installer from a shared Google Drive link only to be stopped by an intermediate warning page stating: ‘Google Drive can’t scan this file for viruses. [Filename] is too large for Google to scan for viruses. Would you like to download this file anyway?’ creates obstacles for direct downloads and automated scripts. Google Drive automatically limits real-time antivirus inspection to files under 100MB. For larger archives, Google inserts an interstitial security token (confirm=t) that breaks headless download tools like curl, wget, or automated backup agents, and can occasionally loop in web browsers when third-party privacy extensions block redirect cookies.

Why Does Google Drive Display the Virus Scan Warning?

Google Drive uses server-side scanning to check uploaded files against known malware signatures. The interstitial warning occurs because:

  • 100MB Antivirus Payload Ceiling: Google Cloud’s antivirus heuristics engine automatically bypasses scanning on files exceeding 100 megabytes to prevent server compute denial of service.
  • Security Confirmation Token Requirement: The server requires an explicit user acknowledgment by passing a transient security token in the download query parameters.
  • Headless Script Cookie Drops: Command-line downloaders (such as wget or curl) failing to capture and send back the download_warning session cookie.
  • Browser Redirect Loop: Ad blockers or privacy shields blocking Google’s tracking cookies during the handover from Drive preview to Google User Content CDNs.

Step 1: Download Large Files Using the Browser Confirmation Button

In standard desktop browsers, completing the security handshake requires clicking the explicit confirmation trigger.

  1. When the warning screen appears displaying ‘Google Drive can’t scan this file for viruses’, click the blue Download anyway button.
  2. If the button does not trigger a download, right-click Download anyway and select Open link in new window (or Save link as…).
  3. If your browser still prevents the download, check your address bar for a blocked pop-up or redirect icon on the far right and click Always allow pop-ups and redirects from drive.google.com.

Step 2: Bypass the Warning in wget Using Confirmation Cookies

If you are downloading a large archive onto a remote Linux server or headless workstation, capture Google’s confirmation token.

  1. Identify the unique file ID from your Google Drive shareable link (the alphanumeric string between /d/ and /view):
    https://drive.google.com/file/d/FILE_ID/view?usp=sharing
  2. Execute the following two-stage wget command in Terminal to capture the session cookie and accept the confirmation warning:
    wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=FILE_ID' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=FILE_ID" -O downloaded_file.zip && rm -rf /tmp/cookies.txt
  3. Replace FILE_ID with your specific file identifier. This script automatically parses the dynamic security token and bypasses the warning page.

Step 3: Download Large Files via curl

If your system utilizes curl instead of wget, pass cookie jars to store the confirmation parameter.

  1. Open your command-line interface.
  2. Run the initial curl request to capture the security cookie and parse the confirmation token:
    CONFIRM_TOKEN=$(curl -s -c /tmp/cookies.txt -L "https://drive.google.com/uc?export=download&id=FILE_ID" | grep -o 'confirm=[^&]*' | cut -d= -f2)
  3. Download the file using the extracted token:
    curl -b /tmp/cookies.txt -L -o output_file.iso "https://drive.google.com/uc?export=download&confirm=${CONFIRM_TOKEN}&id=FILE_ID"
    rm -f /tmp/cookies.txt
  4. This completes the authenticated download directly to disk.

Step 4: Create a Copy in Your Own Google Drive (For Quota Lockouts)

If the virus warning is accompanied by a ‘Download quota exceeded’ restriction on a popular public file:

  1. Open the Google Drive link while signed into your Google Account.
  2. Click the Add shortcut to Drive or Organize icon (folder with a plus sign) in the top right.
  3. Navigate to your personal My Drive.
  4. Right-click the newly added shortcut and select Make a copy.
  5. Locate Copy of [Filename] in your personal drive, right-click, and select Download.
  6. Because you own the newly generated duplicate container, download quotas and redirect loops are bypassed.

Step 5: Disable Browser Antivirus Extensions

Third-party security extensions often flag Google’s direct-download API endpoints as suspicious.

  1. Open Chrome and navigate to chrome://extensions.
  2. Temporarily disable third-party antivirus shields or download manager plugins.
  3. Clear cache for google.com and retry downloading the file.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.