Untitled
unknown
plain_text
9 months ago
298 B
6
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