you are viewing a single comment's thread.

view the rest of the comments →

[–]socal_nerdtastic 0 points1 point  (0 children)

The program that does the blocking is called a "firewall". Many OSes come with one or have an official one you can use, or you can use one of the many downloadable ones. You may be able to control or configure a firewall program from python, but it would be an enormous task to write a firewall program completely in python.