Untitled

 avatar
unknown
plain_text
18 days ago
298 B
3
Indexable
ALLOWED_IPS = ["192.168.1.1", "10.0.0.2"]

def firewall_check(ip_address):
    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