Docs

Bunny Shield

8 min readUpdated November 19, 2026

Bunny Shield stops login floods and known attackers on Bunny.net’s edge, so their requests never reach your server. It is a separate sub-tab of Edge Blocking, next to IP Blocking, and needs version 1.0.12 or later.

IP Blocking reacts after the fact: an IP fails too many logins, Nahnu Login Shield locks it out, then asks Bunny to block it. Bunny Shield also works before the first failed login. Its rate limit blocks a flood at the edge while it is still happening. This topic applies only to sites on a Bunny.net pull zone that has Shield turned on.

What it does#

  • Login rate limit. One switch creates a Shield rule that blocks any IP sending too many requests to your login pages. It covers wp-login.php, xmlrpc.php and your custom login path.
  • Blocked IPs. Locked-out IPs go to a Shield access list automatically and are blocked worldwide. The push runs in the background, usually within a minute, and Bunny then applies it within seconds. The tab lists each one with an Unblock button.
  • Blocked networks. Block network… on an active lockout blocks the attacker’s whole hosting network (its AS number). Needs Shield Advanced.
  • Shield health check. The tab shows your Shield plan and warns you when a Bunny setting is quietly stopping Shield from blocking. Each warning has a one-click fix.

Nahnu Login Shield talks to the Bunny API directly. No other plugin is needed, though Nahnu Cache Connector for Bunny.net adds two extras (see “Use it with Nahnu Cache Connector“).

Before you start#

  • A Bunny connection. Bunny Shield uses the same API key and pull zone as IP Blocking. Set those up first (see “Block at the edge with Bunny.net”), or reuse the Cache Connector’s connection.
  • Shield on your pull zone. Turn Shield on for the pull zone in the Bunny dashboard. Bunny’s Basic plan is free.
  • Know your plan. What you can change depends on your Shield plan:
Shield Basic (free)Shield Advanced and up
Login rate limitFixed: more than 10 requests in 10 seconds blocks the IP for 1 minuteYour own requests, time window and block length (up to 1 hour)
Blocked IPsYesYes
Blocked networksNo (the plan’s one custom access list holds blocked IPs)Yes

Plans and limits are Bunny’s and can change. Check your Bunny dashboard if something looks different.

Set it up#

  1. Go to Settings → Nahnu Login Shield → Edge Blocking.
  2. On the IP Blocking sub-tab, enter your Bunny API key, choose your pull zone, and turn on Enable Bunny WAF blocking. Click Save Bunny WAF settings.
  3. Open the Bunny Shield sub-tab. It loads right after you save, with no page reload.
  4. Check the Shield zone badge. It should say Active and show your plan. If it shows a warning, use its fix button (see “If Shield isn’t blocking”).
  5. Turn on Rate-limit the login endpoints at the edge. The status changes to On once the rule exists in Bunny.
  6. On Shield Advanced, adjust the limits if you like and click Save changes.

That’s it. Blocked IPs need no setup: the list appears in Bunny with the first lockout. If the tab says Connect Bunny.net first, the API key or pull zone isn’t saved yet. Click Go to IP Blocking.

The Bunny Shield settings page displays security configuration options, including rate-limiting, blocked IP management, and network blocking. The interface features toggle switches, status badges, and explanatory text boxes describing how to protect login endpoints from malicious traffic.

Login rate limit#

The rate limit counts requests per IP to your login pages and blocks an IP that goes over the limit. Bunny does the counting and blocking, so a flood never reaches PHP or your database.

It covers wp-login.php, xmlrpc.php and your custom login path. When you change the custom path on the General tab, the rule is updated in Bunny automatically.

On Shield Basic (free) the limits are fixed at what Bunny allows: more than 10 requests in 10 seconds blocks the IP for 1 minute. The tab says so, and there is nothing to adjust.

On Shield Advanced and up you choose:

  • Requests: how many requests an IP may make before it is blocked. The default is 10.
  • Per: the time window: a second, 10 seconds, a minute, 5 minutes, 15 minutes or an hour. The default is 10 seconds.
  • For: how long the IP stays blocked: 30 seconds, or 1, 5, 15 or 30 minutes, or 1 hour. The default is 5 minutes.

The rule shows in Bunny under Shield → Rate Limiting as NahnuLoginShieldRateLimit. Manage it from this tab rather than in Bunny. Turning the switch off removes the rule from Bunny after you confirm.

If the status says Needs update, your login paths changed but the rule couldn’t be updated at the time. Click Save changes. On Shield Basic there is no button: turn the switch off and on again.

Blocked IPs#

When your pull zone has Shield, locked-out IPs go to a Shield access list named Nahnu Login Shield lockouts, set to Block. There is no switch for this. Bunny applies the list worldwide within seconds.

What gets blocked follows the IP Blocking settings: Enable Bunny WAF blocking must be on, and the Honeypot username and Brute-force lockout triggers decide which events send an IP.

  • Listed on the tab. Blocked IPs shows each IP, a count, and how long until it expires, soonest first.
  • Removed on time. Each IP is removed when its lockout expires or when you unlock it on the Lockout tab. Unblock on the Bunny Shield tab removes it right away.
  • Created and removed for you. Bunny won’t accept an empty list, so the list is created with the first blocked IP and deleted when the last one goes.
  • Automatic fallback. If Bunny refuses the list (for example, your plan’s custom-list slot is already used), the IP goes to the pull zone’s IP block list instead, as in IP Blocking.

Entries also appear in the edge block log with the provider Bunny Shield (see “The edge block log”).

Blocked networks#

Attackers switch IPs but usually stay on the same hosting network. Blocking that network’s AS number stops every IP on it at the edge. This needs Shield Advanced. On the free plan the controls are hidden, because its one custom access list holds blocked IPs.

  1. Go to the Lockout tab and find the IP under active lockouts.
  2. Click Block network…. Nahnu Login Shield looks up the IP’s network and shows its AS number, name and IP range.
  3. Confirm. The network goes to a Shield access list named Nahnu Login Shield blocked networks.

You can also enter an AS number under Blocked networks (ASNs) on the Bunny Shield tab and click Block network. Blocked networks are listed there, each with an Unblock button. They stay blocked until you unblock them.

Be careful with networks real visitors use, such as mobile carriers and large cloud providers. Blocking one blocks everyone on it.

The lookup asks Team Cymru’s free IP-to-ASN service over DNS. It sends only the IP address, and only when you click Block network….

If Shield isn’t blocking#

Two Bunny settings make Shield watch without blocking. The tab warns you about either one under the Shield zone badge, with a fix button:

WarningWhat it meansFix button
Shield is in learning modeShield only observes. The rate limit and access lists block nothing.Turn off learning mode
The WAF is set to “Log only”WAF rules match but don’t block.Switch the WAF to Block

Each fix asks you to confirm, changes the setting in Bunny, and takes effect right away. Click Refresh next to the badge to re-check after changing something in the Bunny dashboard.

Use it with Nahnu Cache Connector#

Nahnu Cache Connector for Bunny.net and Nahnu Login Shield work together on the same pull zone without overwriting each other’s rules in Bunny. Login Shield manages its Shield rules: the rate limit and the two access lists. The Cache Connector manages caching.

  • One connection. On the IP Blocking sub-tab, turn on Use the Nahnu Cache Connector’s Bunny connection. Login Shield then uses the Cache Connector’s API key and pull zone, and ignores its own fields. The switch only appears while the Cache Connector is active and connected to Bunny (API key and pull zone set).
  • Login path never cached. Your custom login path is kept out of Bunny’s edge cache automatically, and updated the moment you change the path. That way every login request reaches the rate limit and WordPress, and no one is ever served a cached login page.

The Cache Connector is needed only for these two extras. Without it, Bunny Shield works the same, and the tab reminds you to exclude your custom login path from Bunny’s HTML cache yourself.

If an IP is blocked by mistake#

  • On the blocked IPs list: click Unblock next to it on the Bunny Shield tab, or unlock it on the Lockout tab (see “Unlock an IP”). Either one removes it from Bunny.
  • On a blocked network: click Unblock next to the network under Blocked networks (ASNs).
  • Hit by the rate limit: wait it out. The block ends on its own after the block time (1 minute on the free plan). These blocks live only in Bunny, so they don’t show on the tab.

The rate limit runs in Bunny and doesn’t know your Lockout allowlist. If you or a tool such as an uptime monitor or a password manager calls the login page often, keep it under the limit, or raise the limit on Shield Advanced.

Good to know#

  • Error messages come from Bunny. If Bunny refuses a change, the tab shows Bunny’s own message, so you know what to fix.
  • Up to 500 blocked IPs. If the list fills up, the IPs closest to expiring are dropped first.
  • Needs WP-Cron. Expired IPs are removed by an hourly task, and unlocks are sent to Bunny in the background.
  • Bunny must see the real IP. If another proxy sits in front of Bunny, Shield counts that proxy’s IP instead of the visitor’s.
  • Edge blocks skip WordPress. Requests stopped by Shield never reach your site, so they’re not in Nahnu Login Shield’s logs. Check Shield’s own logs in the Bunny dashboard.
  • Uninstalling leaves Bunny alone. Deleting the plugin removes its settings but not what it created in Bunny. Turn off the rate limit first, then delete the two Nahnu Login Shield access lists in Bunny if you no longer want them.

Was this helpful?

This website uses cookies to enhance your browsing experience and ensure the site functions properly. By continuing to use this site, you acknowledge and accept our use of cookies.

Accept All Accept Required Only