# alibabacloud-waf-checkresponse-intercept-query

alibabacloud-waf-checkresponse-intercept-query diagnoses Alibaba Cloud WAF blocks: retrieves the rule that blocked a request, shows logs, and disables problematic rules.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 167 installs · ★ 300 repo stars
- Author: aliyun
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/aliyun/alibabacloud-aiops-skills/tree/HEAD/skills/security/waf/alibabacloud-waf-checkresponse-intercept-query/SKILL.md
- Updated: 2026-10-23
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/alibabacloud-waf-checkresponse-intercept-query

## What it does

The skill queries SLS logs for block causes using the Request ID from a 405 error page. It identifies which rule triggered, and can disable it. Before querying logs, it checks whether WAF log collection is enabled in SLS, and turns it on after user confirmation if needed.

Requires Aliyun CLI 3.3.3 or later. It auto-discovers WAF instances in both regions (mainland China and overseas), fetches SLS configuration, and searches block logs. Without the correct CLI version, the skill will not run.

Request ID comes from the WAF response HTML body or the 405 page in the browser. SLS logs may reside in a different region than the WAF instance — the skill accounts for this when querying.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-waf-checkresponse-intercept-query -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/alibabacloud-waf-checkresponse-intercept-query/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/alibabacloud-waf-checkresponse-intercept-query/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-waf-checkresponse-intercept-query -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/alibabacloud-waf-checkresponse-intercept-query/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-waf-checkresponse-intercept-query -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/alibabacloud-waf-checkresponse-intercept-query/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install aliyun/alibabacloud-aiops-skills skills/security/waf/alibabacloud-waf-checkresponse-intercept-query
```

2. **Manually: put the files in place**
- File: `.github/skills/alibabacloud-waf-checkresponse-intercept-query/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-waf-checkresponse-intercept-query -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/aliyun/alibabacloud-aiops-skills --path skills/security/waf/alibabacloud-waf-checkresponse-intercept-query
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/alibabacloud-waf-checkresponse-intercept-query/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-waf-checkresponse-intercept-query -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/aliyun/alibabacloud-aiops-skills/tree/HEAD/skills/security/waf/alibabacloud-waf-checkresponse-intercept-query/SKILL.md

## When to use it
- find out why WAF blocked a user request
- identify the WAF rule that triggered for a given Request ID
- disable a protection rule after diagnosing the block
- enable WAF log collection in SLS for further analysis

## Example prompts
- Why did WAF block my request? Request ID is `a1b2c3d4e5f67890`
- Find the WAF rule that caused a 405 error for traceid `f8e7d6c5b4a39281`
- Enable WAF logs for the instance in `cn-hangzhou` and locate the block

## Similar
- [waf](https://affpapa.org/en/nevibecode/skills/waf.md) — skill · 5200 installs
- [waf-setup](https://affpapa.org/en/nevibecode/skills/waf-setup.md) — skill · 416 installs
- [google-cloud-waf-security](https://affpapa.org/en/nevibecode/skills/google-cloud-waf-security.md) — skill · 14620 installs
- [waf-bypass-techniques](https://affpapa.org/en/nevibecode/skills/waf-bypass-techniques.md) — skill · 4200 installs
- [waf-bypass-and-payload-obfuscation](https://affpapa.org/en/nevibecode/skills/waf-bypass-and-payload-obfuscation.md) — skill · ★ 73 repo stars
- [waf-bypass-and-payload-obfuscation-encoding-layers](https://affpapa.org/en/nevibecode/skills/waf-bypass-and-payload-obfuscation-encoding-layers.md) — skill · ★ 73 repo stars

From the same set: [aliyun/alibabacloud-aiops-skills](https://affpapa.org/en/nevibecode/by/aliyun/alibabacloud-aiops-skills.md) — 66 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
