jeudi 28 novembre 2019

How to block domains with python

does anyone know how to block a domain with python? It doesn't really matter what package it is but standard library is better. So what I think when I say blocking domains is when I type in my python program facebook.com. It will block any request any kind of thing related to the website, it will be blocked. I was thinking about typing a script that will check for the IP address of the domain and type it into the iptables on my Ubuntu Linux. But then I was told that Facebook and other big companies switch/change domain IP addresses often. Does anyone have a solution to this problem?




Aucun commentaire:

Enregistrer un commentaire