Country Access Blocker

外掛說明

Country Access Blocker lets you restrict or allow access to your WordPress site based on visitor countries.

Features:
* Block visitors from specific countries
* Clean, GDPR-compliant country list
* Easy admin interface to configure blocked countries
* Enable or disable IP-based country blocking with one checkbox
* No external dependencies or WooCommerce required
* Uses ip-api.com free API for geolocation

This plugin is ideal if you want to restrict access from certain countries or comply with geo-based regulations.

License

This plugin is licensed under the GPLv2 or later.

Support

For support or bug reports, please open an issue on the plugin’s GitHub repository or contact the author.

安裝方式

  1. Upload the plugin files to the /wp-content/plugins/country-access-blocker directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Go to the Country Blocker menu in the WordPress admin.
  4. Enable the checkbox for “Enable IP-based country blocking”.
  5. Select the countries you want to block.
  6. Click “Save settings”.

常見問題集

Does this plugin work without enabling IP-based blocking?

No. The plugin requires the IP check to be enabled to function. You must enable IP-based country blocking to use the plugin’s blocking features.

Which geolocation service does this plugin use?

It uses the free ip-api.com API to determine visitor countries based on their IP addresses.

Is the plugin GDPR compliant?

The plugin does not store or transmit any personal data other than the visitor IP for the purpose of country detection. The country list is clean and minimal.

Can I whitelist countries instead of blocking?

Currently, the plugin works by selecting countries to block. Whitelisting is not supported in this version.

使用者評論

閱讀全部 2 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Country Access Blocker〉的開發相關工作。

參與者

將〈Country Access Blocker〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.6

  • Added all available local WP Languages
  • Minor UI improvements

1.5

  • Added North Korea to the country list
  • Added a small admin info card and a review button
  • Added a dismiss button to hide the admin card for 30 days
  • Minor UI spacing improvements

1.4

  • Added admin UI improvements to enable country blocking toggle
  • Improved detected country display after saving settings
  • Fixed unblock all button to not disable IP check toggle
  • Minor bug fixes and code cleanup

1.3

  • Initial public release