WP Manifestindependent plugin directory
manifest / security / wp-proud-ip-block

ProudCity IP Block

Provides IP blocking for sites

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/proudcity/wp-proud-ip-block/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Provides IP address blocking based on the MaxMind GeoLite 2 API. This currently integrates with Gravity Forms version > 2.5 via gform_validation filter.

ProudCity is a Wordpress platform for modern, standards-compliant municipal websites.

All bug reports, feature requests and other issues should be added to the wp-proudcity Issue Queue.

Filters

proud_ip_block_allow_countries

This filter allows you to change the list of allowed countries. By default we only allow US as a valid country. To add Canada we'd use the following code.

function add_canada( $countries ){

    $countries[] = 'CA';

    return $countries;

}
add_filter( 'proud_ip_block_allowed_countries', 'add_canada', 10, 1 );

Country codes conform to MaxMind ISO standards. See ISO Country codes.