White list and Black list of extra IP addresses prior to country code.
Description
The filter hook “ip-location-block-extra-ips” can assign the white and black list of extra IP addresses with CIDR notation which should be validated prior to other validations.
Parameters
$extra_ips (array) An associative array of 'white_list' and 'black_list'. Both are string of comma separated IP addresses.
$hook (string) 'comment', 'xmlrpc', 'login', 'admin' or 'public'.
Use case
1.) The following code snippet in your theme’s functions.php can automatically fetch the IP addresses from Tor exit nodes on background and add them to the black list when login attempt is captured.
2.) Validate extra IP addresses with CIDR prior to other validations. Get IPs with CIDR from Amazon AWS and set them to the black list