Files with extension .py were "blocked because this type of file can harm your device."

Steve Ellmann 1 Reputation point
2021-06-14T20:21:07.807+00:00

In trying to download files using Edge for a python class I receive an error message: "Assignment1.py was blocked because this type of file can harm your device.

How do I disable this protection so I can download the class files?

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,288 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Andreas Baumgarten 107.7K Reputation points MVP
    2021-06-14T20:47:47.797+00:00

    Hi @Steve Ellmann ,

    please disable this in the Settings of Edge and give it a try again:

    105551-image.png

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten


  2. Noel Burgess 626 Reputation points
    2021-06-14T23:36:42.553+00:00

    In the download hub, do you see a Keep option on the ellipsis menu at the right-hand end of the 'blocked' message? (You may have to wave the mouse pointer around to see the ellipsis.)

    Check your Windows Security settings for SmartScreen. If it's not enabled, Edge will block potentially dangerous downloads. If you initiate the download - e.g. by clicking a link - the SmartScreen will normally allow it.

    Read about how Edge and SmartScreen act together to protect you in this article, by Edge's Senior PM responsible for security: https://textslashplain.com/2021/05/19/download-blocking-by-file-type/

    0 comments No comments

  3. XuDong Peng-MSFT 10,426 Reputation points Microsoft Vendor
    2021-06-15T08:13:37.467+00:00

    Hi @Steve Ellmann ,

    The latest file types policies are published in the Chromium source code. You could clearly see that the danger_level of ".py" type files is ALLOW_ON_USER_GESTURE.
    For this case, I recommand that you could try to set Disable download file type extension-based warnings for specified file types on domains group policy.

    You can enable this policy to create a dictionary of file type extensions with a corresponding list of domains that will be exempted from file type extension-based download warnings. This lets enterprise administrators block file type extension-based download warnings for files that are associated with a listed domain. For more details, please refer to this part of the document: Disable download file type extension-based warnings for specified file types on domains

    There is a similar case, you can refer to it appropriately: SmartScreen turned off -> Java Webstart JNLP Files are marked as "can harm your computer"

    Best regards,
    Xudong Peng


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.