Skip to main content
eLearner.app
REGEX DEFENDER FIREWALL

Regex Defender: The Security Firewall

Configure regular expression rules to repel cyber attacks and block network traffic threats.

Control Console

Write a regex (with the g flag enabled) to find all valid IPv4 addresses in the log. An IPv4 address is formed by four numbers (1 to 3 digits each) separated by dots (e.g. 192.168.1.1 or 10.0.0.254, but not 1234.56.78.9 or 192.168.1.1111). Use word boundaries \b to avoid partial matches.

Network Analyzer
ACTIVE
IP ADDRESSSTATUS
192.168.1.1BLOCKED
10.0.0.254BLOCKED
1234.56.78.9BLOCKED
127.0.0.1FORWARDED
Rate: 100% securedv1.2.6

Stuck?

Learn the fundamental concepts in the Regex course to solve this challenge.

Validation Console

Write and execute regex rules for the firewall.

Loading editor…
Analyzing network traffic...