Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6589725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:12:42+00:00 2026-05-25T17:12:42+00:00

We have a web site that makes several PDFs available for download. The PDFs

  • 0

We have a web site that makes several PDFs available for download. The PDFs might be static, or dynamically generated. They are downloaded using one of several mechanisms (static-URL, post back/redirect/meta-refresh/etc.). For certain PDF files, Chrome downloads them without complaint. For others, it warns the user that “This type of file can harm your computer. Are you sure you want to download …” and requires an extra click.

What information is Chrome using to decide whether to show the message? Obviously, it’s not simply the fact that the file is a PDF.

To be clear, I want to do something on the server side (we use IIS/ASP.NET, if it matters) to prevent the message from ever appearing. I’m not interested in a solution that has each user disable the message in their browser (if that’s even possible).

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T17:12:42+00:00Added an answer on May 25, 2026 at 5:12 pm

    TL;DR: Chrome has a variety of client-side heuristics used to determine a file’s safety. I don’t believe there’s anything you can do to ensure that a file is marked “safe”, but I’ll point at some things that might help.


    A good amount of logic goes into determining whether or not that prompt should be shown. Happily, Chromium is open source, so that logic is available for you to peruse. I’m not incredibly familiar with the download code, but the best place to start would almost certainly be ChromeDownloadManagerDelegate::IsDangerousFile. That ends up calling out to download_util::GetFileDangerLevel and download_util::IsExecutableMimeType which seem to be where the checks against mime types and paths live.

    Based on a quick read, I’d imagine that the redirects are at least part of the cause, as those aren’t directly related to a user gesture. Clicking directly through to the download is “safer” in this context than clicking on something, and being redirected through a variety of trackers and dispatchers, as the user can’t be expected to follow along.

    The heuristic also takes into account whether you’ve been to a particular URL or domain before; that could also have an impact on certain files showing up as “safe” and others not.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have inherited a web site project that makes use of a number of
I have an asp.net 4.0 web site that generates email alerts based on several
I have several web site files that I have to edit systematically. Therefore, I
On my web site I would like to have several sub-domains. Files that create
I have a web site that is designed in asp.net and working fine in
I have a web site that spits out links to third party sites. Now
I have a web site that runs both classic ASP and ASP.NET Webforms. The
I have a web site that work with external Credit Card Processing (cybersource) when
I have an ASP.NET web site that has a entities version 4.0 DAL. I
I have a solution with several site/web scoped features (SP2010). Id like to deploy

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.