This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Defender

Description

Defender by Played lets you block visitors based on their country of origin.

The plugin contacts the free service at freegeoip.net and sends the visitors IP adress to that service to geolocate that IP adress so that the visitors country can be pinpointed and compared to a list of blacklisted countries.

Visitors entering your site from a blacklisted country can then be redirected to either the WordPress 404 page, a custom page that you set up yourself, or it can simply just return a 403 Forbidden header.

Installation

  1. Unpack the .zip file and upload the defender folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Under Plugins in the admin menu click the Defender tab.
  4. Select countries to blacklist and a redirect option.
  5. Be careful with the block login page option, as blocking the login page from users coming from certain countries could lock you out if your own country is blacklisted.

Reviews

Error in pages

Fatal error: Cannot use object of type WP_Error as array in /home/user/site.ext/ wp-content/plugins/defender-by-played/defender.php on line 75

Read all 0 reviews

Contributors & Developers

“Defender” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Defender” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.