403 to each request from an agent that you block. Your site does not get the request. The rules of one website do not change the rules of your other websites.
Set the rules for a group
Open the website, go to Traffic and select the Agents tab. The card Who may read your hostname has one row for each group of agents:
Each row has Allow and Block. When you select Block, a dialog shows the agents in the group. Click the block button in the dialog to confirm. An agent with its own rule keeps that rule.
The relay cannot find search engines and link previews by name. Thus, for this group, Block is not available.
The row Not identified has no rule. These are requests from names that are not in the agent list.
You can set the rules before the relay records traffic. The relay applies them from its first request.
Set a rule for one agent
An agent rule is more important than the group rule. You can set it in two places:- In the Who may read card, open a group. For each agent, select Group rule, Allow or Block.
- Open the agent. In the Access card, turn on Block on this website.
User-Agent header. If other agents have this token in their name, the Access card tells you which agents the block also stops.
What the agent gets
HEAD request gets no body.
- The block applies to
GETandHEADrequests on the paths where the relay runs. With Every page, the relay does not run on/api/, on/_next/or on files such as/logo.png. - The relay checks only the requests that it finds as agent requests. See Which requests are agent requests.
- The relay records the request before it sends the
403. Thus, blocked requests stay in your agent traffic. - Blocking works when agent pages are off.
What the relay needs
When you block an agent, the setup screen gives you the code with this call. See the pages for Vercel, Cloudflare, AWS CloudFront, self-hosted Next.js and ASP.NET on IIS. If your code does not have the call, the Relay code row in Settings shows Needs a change. See Relay status.
Rules that the relay does not apply yet
- Probing for secrets: this row shows when agents asked for files such as
/.env. You can set its rule, but the relay does not apply it yet. - Impersonators: agents that use the name of a known agent with no proof. Flag and Block have no effect until Waniwani verifies signatures.