
Bot Shield
Block spam bots and fake sign-ups before they reach your forum.
$59 one-time · includes 1 year of updates and support · use it forever · or save up to 70% with a membership.

Overview
Scrapers, AI training crawlers and fake search engines read a forum page by page, cost server time and copy your members’ content. Many of them arrive as guests and are answered from the guest page cache, where XenForo add-ons never see them.
Bot Shield checks every guest request before XenForo’s guest page cache answers it. Real search engines are verified against their published address ranges, members are never asked anything, and a visitor that looks automated has to pass a short self-hosted browser check. No third-party service sits between your visitors and your forum.

Screenshots
On your forum




In the Admin CP





On phones



Main functions
For admins
- Runs before the page cache The gate decides at the very start of a request, so cached guest pages are protected too, and a blocked bot costs almost nothing.
- Verified search engines Google, Bing, Apple, DuckDuckGo and AI search crawlers such as OAI-SearchBot are recognised by the address lists they publish, refreshed daily. A program using their name from another address is turned away with a “come back later” answer.
- AI training crawlers blocked GPTBot, ClaudeBot, CCBot, Bytespider and similar crawlers are blocked by default. Switch them to Challenge or Allow if you prefer.
- Self-hosted browser check Suspicious guests solve a small proof-of-work puzzle in the background, then browse with a 12-hour ticket. The puzzle gets harder for worse scores, and the most suspicious visitors get your captcha (Turnstile, hCaptcha or reCAPTCHA) instead.
- Score, not a single rule Each guest is scored on browser headers and request rates per visitor and per network. With the default points it takes at least three separate signals to block, so one oddity never stops a real person.
- Traps for scrapers A hidden link no person can see, follow or hear; links followed faster than anyone can read; dozens of missing pages in minutes; heavy use of search, member lists and attachments.
- Link previews without the page Facebook, Zalo, Telegram, Discord, Slack, X and other preview bots get only the title, description and image, not the whole page.
- Account limits Catch scrapers that read with a real member account: pages per hour and per day, attachments per hour and long runs of posts read in order. Log only by default; staff are never counted.
- IP, country and network rules Allow, challenge or block an address or CIDR range with a note and an expiry. Rules by country or network (AS number) apply to guests only, using free DB-IP location data downloaded monthly.
- Signed AI agents Agents that sign their requests with a published key (Web Bot Auth) are verified and allowed at a rate you set; a forged signature only adds points.
- Observe first, then protect Three modes: Off, Observe (logs what it would do, stops nobody) and Protect. A six-step guided setup checks the visitor address, caches in front of PHP, cron and crawler lists before you switch on.
- Presets and Under attack Gentle, Balanced, Strict and Under attack presets, plus up to 20 of your own. End the attack brings your earlier values back.
- Decision log with reference codes Every stopped visitor sees a reference code. Look it up, read the reasons in plain words and allow, challenge or block that network in one click. Export to CSV.
- Analytics and system check Hourly charts by decision, busiest pages and networks, a Needs attention note when traffic jumps, and a system check that lists anything to fix with the button that fixes it.
- Test tools and emergency off Try a request and see the decision without recording anything, preview the pages a stopped visitor sees, download a support bundle. Emergency off is one click, or one empty file if the control panel is unreachable.
- Cloudflare optional, privacy built in Optionally send repeat offenders to your own Cloudflare zone. IP addresses in the log can be hashed, user agents are stored as 8-byte fingerprints, and no visitor data leaves your server. Vietnamese included.

Useful for
- A forum whose server slows down when scrapers or AI crawlers read thousands of guest pages.
- Communities that do not want their members’ posts collected for AI training.
- Sites flooded by bots pretending to be Googlebot.
- A forum under a scraping attack that needs stricter settings for a few hours, then normal again.
- Owners who want bot protection without routing every visitor through an outside service.

How to use
1
Check the Overview
Admin CP → Bot Shield → Overview shows the mode, the preset, today’s figures and the one next step to take.
2
Help a blocked visitor
Ask for the reference code on their page, search it in the Decision log, read why and use Allow for their network if they are a real person.
3
Handle an attack
Pick the Under attack preset from the Overview. When the flood is over press End the attack. Use Emergency off only if the shield itself is the problem.

Options & permissions
Options
| Name | Default | What it does |
|---|---|---|
| Enable Bot ShieldAdmin CP → Bot Shield → Overview (also Setup → Options → [Xen Relax] Bot Shield) | Off | Off takes the add-on out of every request. A fresh install starts off. |
| Observe mode (nobody is stopped)Admin CP → Bot Shield → Overview | On | Records what Bot Shield would do without stopping anybody. Read the log for a while before protecting. |
| Score that asks for proofAdmin CP → Bot Shield → Settings → Protection level | 40 | A visitor scoring this much is asked to prove they are a browser. |
| Score that stops a visitorAdmin CP → Bot Shield → Settings → Protection level | 70 | With the default points this takes at least three separate signals. |
| Requests per agent per network (3 min)Admin CP → Bot Shield → Settings → Protection level | 120 | The main speed measure: one browser on one network over three minutes. |
| Requests per network, per three minutesAdmin CP → Bot Shield → Settings → Protection level | 600 | Keep it well above the per-agent figure, since many people share a mobile network. |
| How long trust lasts (seconds)Admin CP → Bot Shield → Settings → Protection level | 43200 (12 hours) | After passing the check, a visitor browses normally for this long. |
| Trusted visitor: requests per minuteAdmin CP → Bot Shield → Settings → Protection level | 120 | A ticket used faster than this is withdrawn and its holder asked again. |
| Link preview allowanceAdmin CP → Bot Shield → Settings → Protection level | 30 | Requests per network every three minutes before a link preview bot claim stops counting. |
| Uptime monitor allowanceAdmin CP → Bot Shield → Settings → Protection level | 60 | The same allowance for uptime monitors. |
| Verify AI search enginesAdmin CP → Bot Shield → Settings → Crawlers & agents | On | Recognises OAI-SearchBot, ChatGPT-User and Claude-SearchBot by published IPs. Training crawlers are never verified. |
| AI training crawlersAdmin CP → Bot Shield → Settings → Crawlers & agents | Block | Block, Challenge or Allow. Search crawlers are not affected. |
| Agents that sign their requestsAdmin CP → Bot Shield → Settings → Crawlers & agents | Verify, allow, 120 per minute | Checks Web Bot Auth signatures; you can add up to ten key directories. |
| Link previews get only the metadataAdmin CP → Bot Shield → Settings → Crawlers & agents | On | Preview bots get the title, description and picture but not the page. |
| Plain lists for verified crawlersAdmin CP → Bot Shield → Settings → Crawlers & agents | On | Redirects verified crawlers from sorted or filtered lists to the plain list; filtered pages stop being indexed. |
| Trap linkAdmin CP → Bot Shield → Settings → Traps & scraping traces | On, challenge for 6 hours | A hidden link on every guest page; whatever follows it is marked. |
| Probing for missing pagesAdmin CP → Bot Shield → Settings → Traps & scraping traces | On, 20 points, over 20 pages | A guest asking for dozens of missing pages in minutes. |
| Links followed too fastAdmin CP → Bot Shield → Settings → Traps & scraping traces | On, 20 points | Six or more links followed within 0.4 s of the page arriving. Needs Redis or APCu. |
| Search, member lists and attachmentsAdmin CP → Bot Shield → Settings → Traps & scraping traces | On, 30 points, 12 per 3 min | Counts how often a guest opens search, member lists and attachments. Needs Redis or APCu. |
| Cloud and hosting networksAdmin CP → Bot Shield → Settings → Network & location | On, 20 points | Points for guests on data-centre networks; never stops a VPN user on its own. |
| Rules by country and networkAdmin CP → Bot Shield → IP rules | None | Guest-only rules by country or AS number, edited beside the address rules. |
| Visitors seen as a Cloudflare addressAdmin CP → Bot Shield → Settings → Network & location | Challenge | With country rules present: look the address up, let it pass, or ask for the puzzle. |
| Higher ceiling for shared networksAdmin CP → Bot Shield → Settings → Network & location | On | With 8 or more browsers on one network in a minute its ceiling is 4 times higher. Needs Redis or APCu. |
| Browser checksAdmin CP → Bot Shield → Settings → Browser checks | Off | Page report and optional fingerprint, for clients that never run a page. Needs Redis or APCu. |
| Account limitsAdmin CP → Bot Shield → Settings → Account limits | On, log only (600/hour, 4000/day, 300 attachments/hour) | Pages one signed-in account may read. Record, slow down or pause reading; exempt groups you choose. |
| Captcha on the challenge pageAdmin CP → Bot Shield → Settings → Challenges & captcha | Follow XenForo | Use XenForo’s captcha or Turnstile / reCAPTCHA keys of its own. |
| Challenge page logoAdmin CP → Bot Shield → Settings → Challenges & captcha | Empty | A path on this site or an https:// address. |
| Challenge page background / text colourAdmin CP → Bot Shield → Settings → Challenges & captcha | #f5f6f8 / #22252a | Colours of the challenge page, which shows before any forum style loads. |
| Cloudflare (optional)Admin CP → Bot Shield → Settings → Cloudflare | Off (dry run, managed challenge) | Zone ID, API token, edge action, strikes before sending, rule lifetime and hourly cap. |
| Keep log entries for (days)Admin CP → Bot Shield → Settings → Log & privacy | 14 | Older events are pruned; hourly totals are kept 30 days. |
| Largest log size (rows)Admin CP → Bot Shield → Settings → Log & privacy | 2000000 | Past this size the oldest entries are removed, never those from the last hour. |
| Hash visitor IP addresses in the logAdmin CP → Bot Shield → Settings → Log & privacy | Off | Logs a keyed hash instead of each full IP; networks stay readable. |
| Record full user agentsAdmin CP → Bot Shield → Settings → Log & privacy | Off | A diagnostics window of at most 24 hours that keeps full user agents. |
| Additional excluded routesAdmin CP → Bot Shield → Settings → Advanced | Empty | One route per line, for feeds, webhooks, apps or payment notices. |
| Point valuesAdmin CP → Bot Shield → Settings → Advanced | Shipped table | One signal = points per line to override the defaults. |
Permissions
| Name | Default | What it does |
|---|---|---|
| View Bot ShieldAdmin permissions | Super administrators | Open every Bot Shield page in the Admin control panel without changing anything. |
| Manage Bot ShieldAdmin permissions | Super administrators | Change settings, rules and modes, export the log and download the support bundle. |

Install & setup
1
Install
Install it from the XR Hub client in your Admin CP, or download the zip from XR Hub on the web and use Admin CP → Add-ons → Install/upgrade from archive.
2
Run the guided setup
Open Admin CP → Bot Shield → Setup. Confirm your visitor address with Measure, check for a cache in front of PHP, and make sure cron runs and the crawler lists have downloaded.
3
Observe for a day
Turn the shield on in Observe mode. Every decision is logged as would challenge or would block and nobody notices anything.
4
Review and allow
Look at the preview of what would have been stopped. Allow your own apps, webhooks or monitors in IP rules or Additional excluded routes.
5
Add the robots.txt line
System check prints a Disallow: line for the trap link. Add it to robots.txt so polite crawlers stay away from it.
6
Switch to Protect
Press Protect on the Overview. You can go back to Observe at any time.

Compatibility
- XenForo 2.3.0+
- PHP 7.4+
- XenForo cron running (crawler lists and log tidy-up)
- Outgoing HTTPS for crawler, Cloudflare and location lists
- Tested on XenForo 2.3.13.
- Standalone: needs no other XenRelax add-on.
- Works with XenForo’s Turnstile, hCaptcha and reCAPTCHA captchas, and with Route Filters that rename routes.
- Works behind Cloudflare or a web server that sets the real visitor address (LiteSpeed, nginx real_ip); the setup detects which.

Good to know
- Bot Shield runs inside PHP. It does not replace a network firewall or DDoS protection for floods large enough to use up your PHP workers.
- Requests XenForo answers without starting the forum (api/, css.php, job.php, sitemap.php, payment_callback.php and similar) and pages served by a CDN or host cache are not seen.
- Without Redis, APCu or Memcached the link-speed, browser check, shared-network and account-limit signals do not run, and counters are written to the database.
- Behind Cloudflare, the shield only observes until the visitor address is confirmed in the setup.
- Disabling the add-on in XenForo’s add-on list does not remove blocks already sent to Cloudflare; switch the Cloudflare tab off first, or uninstall.
- Uninstalling deletes the decision log and your IP rules; download a support bundle first if you need them.
- A memory cache (Redis, APCu or Memcached) is recommended for the per-visitor signals and account limits.

FAQ
Will members be asked to solve puzzles?
No. Signed-in members are never challenged. Only account limits apply to them, and those only log by default.
Will Google stop indexing my forum?
Verified search engines are let through. Fake ones get a 503 with Retry-After, which search engines read as “come back later”, never as “remove from index”.
Do I need Cloudflare?
No. Everything works at your own server. Cloudflare is optional, both as a proxy in front and as a place to send repeat offenders.
What if a real person is blocked?
Their page shows a reference code. Find it in the Decision log, read the reasons and allow their network in one click.
What if the shield locks me out?
Create an empty file named xrbs-off in internal_data/. The shield steps aside on the next request until you delete it.
Licence pricing
| Licence | Price | Renewal |
|---|---|---|
| Individual | $59 one-time | $27 / year |
| Professional All 43 add-ons save 70% | $389 / 12 months | $175 / 12 months |
Test mode: the store at forum.xenrelax.com runs on the Stripe sandbox, so no real payment is taken and purchases are limited to staff for now.
Before you buy. Read the description and requirements, and ask us if anything is unclear. All sales are final once the licence is issued (refund policy). Buying means you accept the licence agreement.
Requirements & compatibility
Works with
Runs on
Dependencies
Standalone
Developer
Current version
Not published yet
File integrity (XF file health check)
Not published yet
First release
Not published yet
Last update
Not published yet
Share this add-on

Reviews
Every review comes from a verified buyer and is published after we check the purchase. Not bought yet? Try the live demo first.



Write a review