База знаний

Test a rule's conditions with a sample request

The built-in checker shows whether a sample matches the open rule's conditions. It does not request your application, perform the action, or evaluate the full rule list.

Open WebShield → example.com → Правила (Rules). Click Изменить (Edit) on your simple rule or Добавить правило (Add rule). Replace example.com with your domain. For this example, use Адрес → Начинается с → /admin/ (Path starts with) and IP → Не в списке → 198.51.100.27/32 (IP not in list) in the same group. Replace the trusted example IP with yours.

Check several cases

  1. Under Проверить на примере запроса (Check a sample request), fill the fields used in your conditions.
  2. Enter /admin/login in Адрес and 203.0.113.10 in IP as an example outside source. Click Проверить условия (Check conditions). Expect Условия совпадают (Conditions match).
  3. Change IP to 198.51.100.27. Expect Условия не совпадают (Conditions do not match).
  4. Restore the outside IP and change the path to /. It should not match either.

Адрес excludes the domain and query string. For https://example.com/admin/?tab=users, test /admin/. /admin without its trailing slash needs a separate condition.

Insufficient data

Fill missing values. The checker supports path, IPv4, method, country, host, TLS, attack mode, and Tor where available. IPv6 and several other conditions, including User-Agent and cookies, can produce an unknown result. Path regular expressions are checked by the server; an unavailable server check can also leave the result unknown.

Frequency and concurrency counters are not calculated. A match does not establish whether a request receives 403, 429, or a redirect: that also depends on the action, state, and rule order.

After Сохранить правило (Save rule), allow synchronization and test a live request separately. See the complete admin restriction example.

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