Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^5: Create a ipset for blocking networks based on internet sources

by jwkrahn (Abbot)
on Apr 25, 2012 at 19:10 UTC ( [id://967147]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    qr/^((\d{1,3}\.){3}\d{1,3})/m
    
  2. or download this
    qr/^((?:\d{1,3}\.){3}\d{1,3})/m
    
  3. or download this
            foreach ( $response->content =~ /$regex/g ) {
                @sys = (qw(ipset add), "temp_$set_name", $_);
                system(@sys) == 0 or die "Unable to add $_ to temp_$set_na
    +me because: $?";
                }
    
  4. or download this
            while ( $response->content =~ /$regex/g ) {
                @sys = (qw(ipset add), "temp_$set_name", $1);
                system(@sys) == 0 or die "Unable to add $_ to temp_$set_na
    +me because: $?";
                }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://967147]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-23 21:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found