Bloquear a hackers
import socket def Block_Hacker(): print("Checking for hacker") ip = socket.gethostbyname(socket.gethostname()) print("Local IP :" + ip) if ip == "10.0.0.1": print("Hacker detected") return True else: print("No hacker detected") return False Block_Hacker()