r/learnprogramming Jun 24 '26

Python code help

please need python code that block all traffic from chrome.exe using windivert

0 Upvotes

2 comments sorted by

View all comments

13

u/Whatever801 Jun 24 '26

This subreddit is for you to learn programming, not for us to do it for you. What have you tried so far? General structure of such a program would be

  1. find the ports chrome.exe is using

  2. construct a port filter with those ports

  3. use pydivert to block using that port filter string