The FBI says over 1,000 hacked WordPress sites hid ransomware lures in Google. You can open yours and see a normal page.

Details

Firewall & login

How to blacklist an IP

Add manual blacklist or whitelist IP and CIDR rules in Security Ninja Free or Pro under Firewall → IP Management with Add IP rule.

Last updated ( published )

Manual whitelist and blacklist rules are available in Security Ninja Free and Pro. Open Security Ninja → Firewall → IP Management and use Add IP rule for both list types.

Pro only on the same screen: automatic service whitelists, Test IP, viewing and lifting temporary bans, Cloud Firewall list actions, and country blocking shortcuts.

Blacklist an IP

  1. Go to Security Ninja → Firewall → IP Management.
  2. Click Add IP rule.
  3. Enter one IP address or CIDR range per line.
  4. Optionally add a Note (up to 150 characters). The same note applies to every line in that save.
  5. Select Blacklist.
  6. Click Save.

Add IP rule dialog with Blacklist selected

Blacklisted IPs are denied according to your firewall settings. With Pro, Prevent banned IPs from accessing the site can block the whole site. On Free, manual rules still apply to Filter Suspicious Queries and other checks that honor your lists.

Whitelist an IP

Use the same dialog and select Whitelist before saving. Whitelisted IPs keep access even when a rule would otherwise block them (for example a Pro cloud-list or country match). Traffic may still appear in logs.

Add IP rule dialog with Whitelist selected

If the same IP is both blacklisted and whitelisted, whitelist wins so you do not lock yourself out.

Self-ban protection

Security Ninja refuses blacklist entries that would lock you out:

  • Your current visitor IP, including when the entry is a CIDR range that covers that IP
  • The server IP
  • 127.0.0.1 and ::1
  • Open ranges 0.0.0.0/0 and ::/0

Bulk saves skip those lines and report how many were skipped. Whitelisting your own IP is still allowed.

To allow extra IPs from code (Free and Pro), see Filter wf_sn_cf_allowlist_ips.

Ranges and wrong IPs

Still stuck? Get help or contact us.

Larger screenshot

Enlarged image