Untitled

Anonymous
plain_text
03/08/2025 11:21 AM
400 B
16
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