Untitled
unknown
plain_text
2 months ago
300 B
2
Indexable
ALLOWED_IPS = ["192.168.1.1", "10.0.0.2"] def firewall_check(ip_addres): if ip_address in ALLOWED_IPS: print(f"Traffic from {ip_address} is allowed.") else: print(f"Traffic from {ip_address} is blocked") ip_address = "192.168.1.1" firewall_check(ip_address)
Editor is loading...
Leave a Comment