CloudFlare Ban Country

  1. Home
  2. CloudFlare Ban Country
  3. CloudFlare Ban Country Installation

CloudFlare Ban Country Installation

Kami disini untuk membantu

Jika ente ada kesulitan dengan panduan yang ada, jangan ragu untuk tanya2 sob. Ente bisa:

This plugin ban entire country from visiting your website. This is useful if you got an attack / ddos by specific country. You must use Cloudflare to use the feature. How to use:

  1. Download plugin here: cloudflare-ban-country
  2. Login to WordPress, Plugins -> Add New -> Upload New Plugin
  3. Activate
  4. Go to Plugin Editor, and Edit Cloudflare Ban Country -> plugin.php, Change to your desired countries, default is China:
    // Put banned countries here
    $banned_countries = [
    'CN',
    ];
    Example if you want to ban US and India:

    // Put banned countries here
    $banned_countries = [
    'US',
    'IN',
    ];

  5. Save Changes

That’s all and banned country will get message 403 forbidden.

Kami disini untuk membantu

Jika ente ada kesulitan dengan panduan yang ada, jangan ragu untuk tanya2 sob. Ente bisa: