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?
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?
Hi @SteveEllmann-4175 ,
please disable this in the Settings of Edge and give it a try again:

(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten
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.
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/
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.
8 people are following this question.