База знаний

Create your first WebShield rule

Эта статья есть на вашем языке: Как создать первое правило WebShield

Create a rule for a dedicated test path to check AND, OR, and execution order.

Before you start

The site must be working and available for management, with rules enabled by its plan and spare rule capacity. Available fields and actions depend on the plan and protection server capabilities. Wait if the editor is not available yet. Replace example.com and choose an unused test path, /kb-test-block/.

The rules interface currently uses Russian labels, including in the English panel. English explanations below describe those controls.

Steps

  1. Open WebShield → example.com → Правила (Rules). Click Добавить правило (Add rule).
  2. Enter a name such as Block test. Under Что делать (What to do), select Блокировать (Block).
  3. In the first group, select Адрес (Path), Начинается с (starts with), and enter /kb-test-block/.
  4. Click + Добавить условие (Add condition) inside that group. Select Метод (Method), В списке (in list), and GET. Conditions within a group use И (AND): both must match.
  5. Click + Добавить группу ИЛИ (Add OR group) to cover the path without its trailing slash. Set Адрес Равно (equals) /kb-test-block and Метод В списке GET. ИЛИ (OR) means either complete group can match.
  6. Under Проверить на примере запроса (Check a sample request), enter /kb-test-block/page and method GET. Click Проверить условия (Check conditions). Expect Условия совпадают (Conditions match). / with GET should not match.
  7. Review Как работает правило (How the rule works), then click Сохранить правило (Save rule). Allow synchronization before testing live behavior.

First rule: two condition groups and the Block action

Check the result

Ordinary rules run from top to bottom, using the first match. An earlier, broader rule can intercept the request. Use Выше and Ниже (Up and Down) to change order. Ограничить (Limit) and Не ограничивать (Do not limit) operate separately from this chain and show Порядок не важен (Order does not matter).

The simulator checks this rule's conditions. It does not execute actions, evaluate the entire chain, or calculate limit counters. It may return Недостаточно данных для проверки (Insufficient data).

After synchronization, visit the test URL and homepage. The test request should be blocked while the homepage remains available. Сработало за 24 ч (Matches over 24 hours) provides additional evidence; counters may be incomplete.

Статья была полезна?