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
wgetorcurl) failing to capture and send back thedownload_warningsession 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.
- When the warning screen appears displaying ‘Google Drive can’t scan this file for viruses’, click the blue Download anyway button.
- If the button does not trigger a download, right-click Download anyway and select Open link in new window (or Save link as…).
- 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.
- 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 - Execute the following two-stage
wgetcommand 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 - Replace
FILE_IDwith 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.
- Open your command-line interface.
- 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) - 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 - 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:
- Open the Google Drive link while signed into your Google Account.
- Click the Add shortcut to Drive or Organize icon (folder with a plus sign) in the top right.
- Navigate to your personal My Drive.
- Right-click the newly added shortcut and select Make a copy.
- Locate Copy of [Filename] in your personal drive, right-click, and select Download.
- 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.
- Open Chrome and navigate to
chrome://extensions. - Temporarily disable third-party antivirus shields or download manager plugins.
- Clear cache for
google.comand retry downloading the file.