yeah |
||
![]() ![]() Maj Goldfish By God, they were awesome programmers in those days... Phishy On 2005-10-11 18:52:41, CyberTNT wrote >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(); > >} > Phishy/Goldfish [at] TheBowl.net -Dinah Coder & Development Staff Replies:
|
||
| CyberArmy::Forum v0.6 Generated In 0.02205 seconds |