I believe this permission request is being asked from the Python and you may set it do not ask for permission next time.
Defender Firewall and Python
Python natively creates new folders within its own folder structure and recreates new python.exe files. When these new files are run, it requests access through the firewall. Is there a way to blanket a folder and subfolders to allow in the firewall without requesting access every time python recreates a new instance of itself?
Windows for home | Windows 10 | Security and privacy
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
3 answers
Sort by: Most helpful
-
-
Reza-Ameri 45,671 Reputation points Volunteer Moderator
2021-07-13T16:38:31+00:00 You could only add application and not folder to the Windows Firewall.
You may try open the Windows Defender Firewall with Advanced Security and create a new rule and allow application with name python.exe and allow outbound and inbound connection (depending on your requirements) and see if it works.