Xuda Bot Protection User Guide
Xuda Bot Protection User Guide
This guide is for anyone who has just opened Xuda Bot Protection for the first time and wants to stop automated traffic without punishing real visitors. It explains how to activate the service, put the "I'm not a robot" checkbox on your own forms and pages, protect anything you host with Xuda, and read what the check has actually stopped. No coding experience is assumed, although one short step involves pasting a snippet into your website and one optional step involves your own server.
What Bot Protection Is
Bot Protection is Xuda's own bot check. It is built in-house, so there is no third-party captcha vendor involved and no external account to open. Most visitors see a single checkbox and nothing else. Only when the signals look automated does it escalate, first to an image challenge and then to an AI check.
The manager lives at https://xuda.ai/dashboard/bot_protection.
| Area | What It Is For |
|---|---|
| The page | Your setups as cards, each with its domains, what it blocked and Copy embed. Anything already protected at the server stands under them. The page header holds New setup and Change plan. |
| A setup's window | Opens from its card. Change its allowed domains and how strict it is, and copy its embed code and keys. Delete setup is how a setup stops. |
| A target's window | Opens from a target's card. Arm or disarm it, read what it stopped since it was added, open its custom rules or remove it. |
| Change plan | The page header's button: the four plans, Free, Starter, Pro or Business. One plan covers the whole account. |
| Custom rules editor | Allow, challenge or block by country, path, time of day, IP and more. Opens from a target's card menu or its window. |
| The visitor widget | The "I'm not a robot" checkbox that appears on your own pages once you paste the snippet. |
| The visitor interstitial | The full page "Checking your browser" screen that appears in front of an armed Xuda-hosted target. |
| App Quick Actions | A "Bot Protection (Under Attack)" toggle on a deployment's overview screen for a one-flip emergency shield. |
The three levels a visitor can meet
| Level | What The Visitor Sees | What Is Happening |
|---|---|---|
| Level 0 | The "I'm not a robot" checkbox, then "Verifying..." and "Verified". | Passive browser signals are scored server side, and the browser solves a small proof-of-work puzzle before it is believed. |
| Level 1 | A 9-tile image challenge with a prompt such as "Select every image that shows a ...", plus Refresh and Verify buttons. | The signals did not clear the bar, so a picture challenge is issued. The images are drawn by Xuda as shapes, not pulled from a photo library. |
| Level 2 | Either a pass, a block, or one short common-sense question. | An AI risk check runs and returns human, bot or borderline. Only a borderline verdict produces the question. |
Most visitors never leave level 0.
Before You Start
- You need a Xuda account and access to the account dashboard.
- Nothing works until you pick a plan. A brand new account is not on the Free plan, it is on no plan at all. Until you activate one, even turning the widget on answers "Activate the Free plan to use this. It costs nothing."
- To put the checkbox on your own website, you need to be able to paste a line of HTML into a page.
- To verify passes on your own server, you need someone who can make an HTTPS request from your backend. This step is optional. The checkbox still works without it, but server-side verification is what makes a pass trustworthy.
- To put the check at the door of something you host, you need a deployment running with Xuda.
Step 1: Activate The Service
- Open Bot Protection from the MODULES group in the account menu, or go to
https://xuda.ai/dashboard/bot_protection. - Because no plan has ever been chosen, the whole screen is the module landing page. It opens with "A checkbox in front of your forms, and nothing in front of your customers", six benefit cards, a numbered "How it works", and then the four-tier ladder. The cards are not shown yet.
- Read the four cards, then press Activate on Free, or Choose on Starter, Pro or Business.
- A confirm dialog states the money in plain words. For Free it reads "No charge. It turns on the checkbox for your own forms and pages, and under attack protection for anything you host with us." For a paid tier it states the monthly amount added to your existing monthly invoice, prorated from today.
- Confirm. A toast says "
is active." and the page opens ready for your first setup.
The result is an active account tier and a working Bot Protection Manager. Free is a real tier, not a trial, so you can stop here and still get the checkbox and under-attack protection.
The six benefit cards on the landing page
| Card | What It Is Telling You |
|---|---|
| Quiet unless it has to be | The check stays a single checkbox for real people and only escalates on automated signals. |
| Free on everything we host | Under-attack protection for Xuda-hosted things costs nothing. |
| And on what you host elsewhere | The Pro plan is where protection for things outside Xuda sits. See Plans And Limits for what that can do today. |
| Driven from your own code | Also on Pro. See Plans And Limits before you buy it. |
| Rules when a blanket is too blunt | Custom rules by country, path, time and IP, on the Business plan. |
| Under attack, on demand | The one-flip shield you can throw in front of a live app. |
Step 2: Create A Setup
A setup is one use of the check: a name, the domains it may run on, how strict it is, and its own keys and embed code. It has no switch. A setup that exists works, and deleting it is how it stops. Make one per site, or one per form, as suits you.
- On the Bot Protection page, press New setup.
- Give it a Name. Only you see this.
- Under Allowed domains, type a domain and press Enter. Subdomains are included, so
example.comalso coversshop.example.com. Add as many as the setup needs. - Press Create setup. The window turns into what to paste, and the setup is working from that moment.
The result is a setup with its embed code, a public site key and a private secret key. Press its card at any time to come back to them.
Used somewhere not allowed
The check only runs on a setup's allowed domains. On any other site the frame says "This website is not allowed to use this check.", and the setup's window names that domain with how many times it was refused. Press Allow it to add it in one press.
Rotating the secret key
Press the rotate button beside the Secret key if the secret has leaked or you simply want a fresh one. The dialog warns that the current secret stops working everywhere it is used, and any server still verifying with the old secret starts failing the moment you rotate.
Step 3: Choose How Hard The Check Pushes
In the setup's window, choose How strict: Low, Medium or High, then press Save changes. The hint under the choices changes with your choice.
| Setting | The Hint You See | When To Use It |
|---|---|---|
| Low | "Escalates rarely..." | Low-risk pages where any friction costs you signups. |
| Medium | "Balanced. Most visitors clear the checkbox without ever seeing a challenge." | The default, and the right answer for almost everyone. |
| High | "Escalates readily. Use when you are actively being hit." | An active flood, a scraped signup form, a login page under credential stuffing. |
Aggressiveness does three things at once: it raises the score a visitor must reach to clear the checkbox, it makes the browser's proof-of-work puzzle harder, and it makes escalation to the image and AI levels more likely.
The result is a check tuned to your risk instead of a single fixed setting for everyone.
Step 4: Paste The Checkbox Onto Your Site
Embed code in the setup's window is what to paste: two lines, built from this setup's own site key. Copy embed on its card takes the same code.
| Snippet | Where It Goes | What It Does |
|---|---|---|
| Widget snippet | Once anywhere on the page, usually near the end of the page. | A single script tag carrying your site key. It finds and mounts the checkbox automatically. |
| Inline mount | Exactly where the checkbox should appear, for example just above your submit button. | A small div with the xuda-captcha class and your site key, so you control placement. |
There is also a raw iframe URL, https://<your Xuda origin>/captcha/<site key>, if you would rather embed the widget frame yourself. The widget is served so that it can be embedded on any site, so it works on a domain that has nothing to do with Xuda.
Load your page and confirm you see the checkbox with its "Protected by" footer. Tick it and watch it go from "Verifying..." to "Verified".
The result is a live bot check on your own form. When a visitor passes, the widget puts a response token into your form for you to verify.
Step 5: Verify The Pass On Your Own Server
This step is what makes a pass mean something. Without it, anyone can submit your form and simply not fill in the token.
- Open the setup's window and scroll to Then confirm each pass on your server.
- Copy the Verify request, a curl example. It posts
{"secret":"YOUR_SECRET_KEY","response":"<token from the form>"}to/cpi/captcha_siteverify. - Wire the same call into your form handler: take the token your form received, post it with your secret key, and only accept the submission when the answer says the check passed.
- A pass comes back with a success flag, the score, the level the visitor reached and the hostname it ran on.
Two rules to build around:
- The token is single use. Verify it once. A second attempt with the same token is refused as a duplicate.
- The token is short lived. It is good for 2 minutes. Verify it as soon as the form arrives, not on a delayed job.
If you already use reCAPTCHA or Turnstile, this call is deliberately the same shape, so existing backend code usually only needs its URL changed.
The result is a form that accepts a submission only when a real visitor actually passed the check.
Step 6: Gate Your Own Contact Form
If you use Xuda's embedded contact form on a profile, you do not need to write any code to protect it.
- Open the profile's window, then flip Require the check on my contact form on.
- Press Save.
The same check now guards that profile's embedded contact form, and a submission with a missing or bad check is rejected.
The result is a protected contact form with one toggle and no integration work.
Step 7: Protect Something You Host With Xuda
The check at the door of something you host is switched from where that thing lives. On a VPS, a datacenter or a load balancer, open its Overview and flip the Bot Protection switch; on a deployment, see Step 9. Whatever is protected in this workspace is listed on the Bot Protection page under your setups, each with its own card.
Step 8: Arm The Check And Watch The Traffic
- Flip the Armed switch at the foot of the target's card, or press the card and flip the switch at the top of its window.
- From that moment every uncleared visitor to that target meets a full-page "Checking your browser" screen before the site loads. The edge picks up the change within one 30 second refresh, so give it half a minute before you decide it is not working.
- Once a visitor passes, they are given a clearance that lasts 30 minutes by default and browse normally for that whole window. They are not asked again on every page.
- Read the card: the number in the middle is what it blocked since it was added, with "N checks, N challenged" under it. Its window shows the same three figures, and the summary line at the top of the page adds them up for every target.
To stand down, flip Armed off. To remove the target entirely, press Remove in the card's menu or in its window, and confirm. For an armed target the confirm warns that visitors will reach it unchecked once the edge updates and that its custom rules are discarded, which is exactly what happens, so note any rules you want to keep before you remove.
The result is an origin-side shield you can raise and lower in one click.
Step 9: Put A Live App Under Attack From The App Screen
You do not have to come to the Bot Protection Manager to raise the shield in a hurry.
- Open a deployment's overview and find the Quick Actions card.
- Flip Bot Protection (Under Attack), described there as "Make every visitor pass an 'I'm not a robot' check before your site loads."
- Once challenges have been served, a small line under the toggle reads "N challenges served".
This is the same protection as the Armed switch on the target's card, driven from where you already are when something goes wrong.
The result is a one-flip emergency shield in front of a live app.
Step 10: Write Custom Rules
Custom rules need the Business plan. On any other plan the dialog shows "Custom rules come with the Business plan" and a See plans button that opens the plans.
- Open a target's card menu and press Custom rules, or press Custom rules in the target's window.
- The editor opens with the first-pass controls in this order: Aggressiveness, A pass lasts (the clearance window), Geo, Paths, Rate and Reputation.
- A folded "second pass" section holds Hours of day, Days of week, Fingerprint rules, and the Always allow and Always block lists.
- Press Save. A toast says "Custom rules saved."
The result is a per-target policy instead of a single blanket setting.
Custom Rules Options Explained
| Option | What It Does |
|---|---|
| Aggressiveness | Overrides the account-level Low, Medium or High setting for this target only. |
| A pass lasts | How long a cleared visitor browses without being asked again. Settable from 1 minute to 24 hours. |
| Geo | Allow, challenge or block by country, chosen from a country multi-select. Off is also a valid mode. |
| Paths | Per-path rules such as a pattern of /login with an action of challenge, block or allow. |
| Rate | Requests, Per (seconds), and Then challenge or block. See the note in Plans And Limits about what is enforced today. |
| Reputation | Allow verified search bots, and challenge bad ASN. See the note in Plans And Limits. |
| Hours of day | Challenge during chosen hours, 0 to 23. |
| Days of week | Challenge on chosen days, 0 to 6. |
| Fingerprint rules | Match on a browser fingerprint and challenge or block. See the note in Plans And Limits. |
| Always allow | IP addresses, CIDR ranges or two-letter country codes that skip the check entirely. |
| Always block | IP addresses, CIDR ranges or two-letter country codes that are always refused. |
Rules are read in a fixed order. The block list wins first, then the allow list, then verified search bots, then geo, then paths, then hours, then days, then a referer requirement, and finally the aggressiveness and clearance window overrides. Put a permanent decision in the block or allow list and it beats everything else.
A Setup's Window Explained
| Option | What It Does |
|---|---|
| Allowed domains | Where the check may run, subdomains included. A setup keeps at least one. A widget made before setups runs anywhere until you add one. |
| Allow it | Beside a domain the setup was refused on. Adds it at once. |
| Embed code | The two lines to paste. They mount the checkbox where the second line sits. |
| Site key | Your public key. It is in the embed code, safe to publish. |
| Secret key | Your private key, shown masked with only the last 4 characters. Reveal and Copy expose it. Server side only. |
| Rotate | Mints a new secret key and immediately invalidates the old one everywhere it is used. |
| Verify request | The curl example your server copies to verify a pass. |
| How strict | Low, Medium or High. Controls the pass bar, the proof-of-work difficulty and how readily the check escalates. |
| Save changes | Writes a change to the name, the domains or how strict. Nothing changes until you press it. |
| Delete setup | Stops the setup. The code on your site stops working. Asks for confirmation first. |
Target Cards And Windows Explained
| Option | What It Does |
|---|---|
| A target's card | Its kind, its name and where it runs, what it blocked since it was added with its checks and challenges under it, and whether it is armed. Press it to open the target's window. |
| Armed switch | On the card and at the top of the window. Turns origin-side enforcement on or off. Takes effect at the edge within 30 seconds. |
| Custom rules | In the card's menu and in the window. Opens the rules editor for that one target, or the plan gate if your plan has no custom rules. |
| Remove | In the card's menu and in the window. Deletes the protection profile and its keys, and discards any custom rules on it. Asks for confirmation first. |
| Past 24 targets | The cards become a table with search, filters, a choice of columns and Export. |
Plans And Limits
There is one plan per account, not one per protected thing, and there is no per-target and no per-challenge fee anywhere. The plans say it plainly: nothing here charges per protected target.
| Plan | Cost | Checks a month | AI calls a month | What It Adds |
|---|---|---|---|---|
| Free | No charge | 50,000 | 1,000 | The widget on your own forms and pages, and under-attack protection for anything you host with Xuda. |
| Starter | $9 a month | 250,000 | 5,000 | Your own brand on the widget instead of Xuda. |
| Pro | $29 a month | 1,000,000 | 20,000 | The external target and API capabilities. Read the honesty note below before buying it for those. |
| Business | $99 a month | 5,000,000 | 100,000 | The custom rules editor: geo, paths, times, allow and block lists, and per-target overrides. |
Above Business, talk to us.
What is free
- The "I'm not a robot" widget on your own forms and pages, on any domain.
- Server-side verification of passes from your own backend. This is available on Free and needs no paid tier.
- Under-attack protection for a Xuda VPS, deployment, datacenter or load balancer.
- Every escalation level, including the image challenge and the AI check.
- 50,000 checks and 1,000 AI calls a month.
- All of the operational limits below.
What is counted
Your plan counts two things each month, and the Bot Protection page shows where you stand, for example "12,400 of 50,000 checks this month".
- Checks. A check is counted once the browser's proof holds. The limit reads the checks on your own sites and forms. Anything hosted with Xuda is unlimited and does not count.
- AI calls. The level 2 AI check counts everywhere. AI usage is included in the plan and is never charged to your credits.
Going over
Going over never stops the check and no form breaks. Past the month's checks or AI calls, the AI step is skipped for your account and the rest of the check keeps running. The page says the AI step is off and offers the plans. Nothing is billed for going over. Above Business, talk to us.
Honest notes about the paid plans
These matter, so please read them before you spend anything.
- Pro ($29), external targets. The entitlement is real and the billing works, but the target picker lists Xuda-hosted targets only. The dialog says so out loud: protecting an IP announced to your own external server needs anycast scrubbing and is not available yet. There is nothing outside Xuda you can attach today.
- Pro ($29), API. There is no developer-API-key surface for Bot Protection today. Every Bot Protection method is a dashboard-session method and is not reachable with an account API key. The one integration point that works from your own code without a key is the server-side verification call, and that is available on Free.
- Business ($99). The editor, the storage and the plan gate all work. At the enforcement edge, the block list, allow list, geo, paths, hours, days, referer requirement, aggressiveness and clearance window are acted on. Rate, Fingerprint rules, challenge bad ASN and allow verified search bots are accepted, saved and shown in the editor but are not enforced at the edge today. Do not rely on them.
If you are on an earlier plan
The External, API and Custom Rules plans are no longer offered, and anyone on one keeps it at the same price. External has the limits of Starter, API those of Pro and Custom Rules those of Business. API and Custom Rules carry your own brand on the widget, External does not.
Changing or dropping the plan later
- Press Change plan in the Bot Protection page header. The four cards open over the page.
- A paid tier adds or reprices exactly one line on your existing monthly invoice under the bot protection category. Moving between paid tiers reprices that same line rather than adding a second charge.
- Moving to Free removes that line entirely. The confirm reads "The bot protection line is removed from your invoice. Your forms and anything you host with Xuda stay protected, everything the paid tiers add stops."
- Billing moves first and your plan is only recorded once the payment side agreed, so a failed charge can never leave you holding a tier you are not paying for.
- A downgrade that would strand something is refused with a sentence naming the blocker, for example "You have custom rules on 1 target and the Free plan does not include custom rules. Clear them first."
Your invoice and its lines are at https://xuda.ai/dashboard/settings/billing.
Operational limits and defaults
| Setting | Default |
|---|---|
| Proof-of-work difficulty | 16 leading zero bits, plus 1 on medium aggressiveness and plus 2 on high. Settable by hand between 8 and 24. |
| Widget session token life | 15 minutes |
| Pass token life | 2 minutes |
| Clearance cookie life | 30 minutes, settable between 1 minute and 24 hours |
| Fastest accepted pass | 800 milliseconds. A checkbox ticked faster than this is not accepted at level 0. |
| Image challenge | 9 tiles, at least 2 correct, good for 2 minutes |
| AI challenge | Good for 3 minutes |
| Verification attempts per visitor | 60 per minute per visitor IP and site key |
| Verification attempts per site | 600 per minute per site key |
| Custom rules caps | 100 path rules, 20 fingerprint rules, 200 entries per list, 80 characters per entry, rate window 1 to 3600 seconds |
| Armed target refresh | Every 30 seconds |
| Profiles listed per account | 500 |
Traffic counters are approximate. They are held in memory and merged into the record when something else writes it, such as a settings save, an attach, an arm or a rules save, so treat them as a good indication rather than an audited ledger.
Troubleshooting
| What You See | What It Means | What To Do |
|---|---|---|
| "Activate the Free plan to use this. It costs nothing." | Your account has never chosen a tier, so it is entitled to nothing at all. | Open Bot Protection and press Activate on Free. |
| "This needs the Business plan ($99/mo)." | You asked for something above your current tier. | Either move up with Change plan, or drop the part of the change that needs it. |
| "Custom rules come with the Business plan" in the rules dialog | The rules editor is gated. | Press See plans, or close the dialog and carry on with the Aggressiveness setting instead. |
| "Not available yet" on a plan card | That tier cannot be purchased right now. | Pick another tier, or come back later. |
| The page says the AI step is off | You are past the month's checks or AI calls. The check is still running. | Nothing is broken. Open the plans for a bigger one, or above Business talk to us. |
| A downgrade is refused naming a blocker | You hold something the lower tier cannot carry, such as custom rules or an external target. | Clear what the message names, then change the plan again. |
| The checkbox says "This website is not allowed to use this check." | The page's domain is not on the setup's allowed domains. | Open the setup and press Allow it beside that domain, or add it under Allowed domains. |
| You armed a target but the site still loads normally | The edge refreshes its armed list every 30 seconds. | Wait half a minute and reload. |
| Visitors are asked to check again after a while | The clearance window expired. It is 30 minutes by default. | Normal behavior. On the Business plan you can lengthen it with "A pass lasts". |
Your server check answers timeout-or-duplicate |
The pass token was already verified once, or it is older than 2 minutes. | Verify each token exactly once, immediately when the form arrives. |
Your server check answers invalid-input-secret |
The secret key is wrong, or it was rotated and your server still has the old one. | Copy the current secret from the setup's window and update your backend. |
Your server check answers invalid-input-response |
The token was missing or malformed in your request. | Confirm your form is actually sending the widget's token field through to your handler. |
Your server check answers missing-input |
Your request left out the secret or the response. | Send both fields. |
Visitors get not_enabled |
The setup was deleted, so the code on the page no longer works. | Create a setup and paste its new embed code. |
Visitors get rate_limited |
More than 60 attempts in a minute from one visitor IP on one site key. | Usually this is the protection working. If it is a real user in a loop, check that your page is not mounting the widget more than once. |
| A form submits and the check silently fails | A hidden decoy field on the widget was filled, which only automation does. | Nothing to fix. This is the honeypot doing its job, and it deliberately gives an uninformative reason. |
| The site key does not work after you rotate the secret | Rotating the secret does not change the site key. | The site key is unchanged. Update the secret on your server, not the snippet on your page. |
Extra Feature Tips
- Start on Medium aggressiveness and only move to High when you are actively being hit. High makes real visitors work harder too, because it raises the proof-of-work cost for everyone.
- Always add the server-side verification step. A checkbox that nobody verifies is decoration, and the verification call is free on every tier.
- Put the inline mount div directly above your submit button rather than relying on automatic placement. Visitors are far less likely to miss a check they can see next to the button they are about to press.
- Arm a target before you need it, not during the incident: an unarmed card can sit there until the moment traffic turns.
- Use the Always block and Always allow lists for anything permanent. They are evaluated before every other rule, so they are the fastest way to settle a repeat offender or to make sure your own monitoring is never challenged.
- Rotate the secret key and update your backend in the same sitting. The old secret dies instantly, so a rotation done on Friday afternoon and deployed on Monday means a weekend of failed form submissions.
- Watch the card after arming. A big gap between "served" and "challenged" is the good outcome: it means most visitors cleared the checkbox without ever seeing a picture grid.