=== CC Restriction ===
Contributors: webst
Tags: security, admin, country restriction, geo restriction, xmlrpc
Requires at least: 4.9
Tested up to: 6.9
Requires PHP: 5.6
Stable tag: 1.0.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Restricts WordPress administration access to the country detected from the activating administrator's IP address.

== Description ==

CC Restriction is an enabled-by-default edition of the country restriction plugin.

When activated, the plugin resolves the activating administrator's public IP address and stores its two-letter country code as the allowed country. If that lookup is unavailable, it falls back to Greece (GR).

It protects wp-admin, wp-login.php, password reset requests, and XML-RPC. It has no IP addresses in its whitelist by default. Blocked attempts are recorded in the settings page, with only the 100 newest retained.

Do not activate this plugin together with another plugin that restricts the same WordPress endpoints.

== Installation ==

1. Upload the `whitlabel` folder to `/wp-content/plugins/`.
2. Activate CC Restriction from the Plugins screen while signed in from the country you want to allow.
3. Review the detected country and optional IP whitelist at Settings > CC Restriction.

== Frequently Asked Questions ==

= What country is allowed after activation? =

The country that the IP address of the administrator activating the plugin resolves to. If the lookup service is unavailable, the default is GR.

= Does it contain a default IP whitelist? =

No. The whitelist is empty by default.

= Can I turn it off without deactivating it? =

Yes. Uncheck Enable protection in Settings > CC Restriction.

== Changelog ==

= 1.0.1 =
* Renamed the plugin and settings menu to CC Restriction.

= 1.0.0 =
* Initial white-label edition.
* Enabled by default with no default whitelist IPs.
* Detects the activating administrator's country.
