some funny perl code: |
||
![]() ![]() Cpt CyberTNT denyip.pl unless ($ip =~ /(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})/) {
# That regex *should* match all decimal IPs :]
print "That sure didn't look like an IP to me, buddy...\n<BR><BR>\n";
&ourFORM();
}
unless((0 <= int($1)) && (int($1) <= 255) && (0 <= int($2)) && (int($2) <= 255)
&& (0 <= int($3)) && (int($3) <= 255) && (0 <= int($4)) && (int($4) <= 255)) {
# The IP is out of range...
print "I never saw an IP element over 255 or under 0 before... \n<BR><BR>\n";
&ourFORM();
}
################################# 5 = PIUUTHXSRIO:TINETYNCNROST = 5 ################################# Replies:
|
||
| CyberArmy::Forum v0.6 Generated In 0.02734 seconds |