Scanner says core files were modified? Open the diff. After wp2shell, that is often leftover access.

How to read it

Firewall & login

How to block a country

Block traffic from selected countries with Security Ninja Pro Cloud Firewall using IP2Location data.

Country blocking (Pro) stops visitors whose IP maps to countries you select. Useful when you see abuse concentrated in regions you do not serve.

SEO note: Be careful blocking the United States. Many Googlebot crawls come from US IPs. Blocking the USA can hurt search indexing.

Steps

  1. Open WP Security Ninja → Firewall.
  2. Find Block visits from these countries.
  3. Search or scroll to select countries. Remove a country with the x next to its name.
  4. Select All / Select None can speed bulk changes.
  5. Save settings.

Block visits from specific countries

How it works

Visitor IPs are looked up with IP2Location LITE data on your site. Matching countries are blocked. Country rules use the same visitor IP as bans and logging, so if lookups look wrong behind Cloudflare or a proxy, set Visitor IP detection first.

You can also show a message or redirect blocked visitors.

This product includes IP2Location LITE data available from https://lite.ip2location.com.

Limitations

VPNs and proxies can make a visitor appear to be in another country. Country blocking is one layer, combine with firewall rules, login protection, and security tests.

Still stuck? Get help or contact us.

Larger screenshot

Enlarged image