question

SteveEllmann-4175 avatar image
0 Votes"
SteveEllmann-4175 asked XuDongPeng-MSFT answered

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

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?


ms-edge
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Can you provide a link to the site you need to download from?

0 Votes 0 ·
AndreasBaumgarten avatar image
0 Votes"
AndreasBaumgarten answered SimpleSamples edited

Hi @SteveEllmann-4175 ,

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


image.png (222.2 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

You should also say to re-enable it when it is not needed. There is a good reason for that feature. If I know what the site is then I will try to suggest a way to download the files without disabling the security. And if site is malicious or hacked then enabling that feature can allow malicious software to execute. I think that any site requiring security to be bypassed in that manner is suspicious.

0 Votes 0 ·
Firedog avatar image
0 Votes"
Firedog answered

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/


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

XuDongPeng-MSFT avatar image
0 Votes"
XuDongPeng-MSFT answered

Hi @SteveEllmann-4175,

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.