Loading...

CDN.com.tr Help

Read WAF logs

Use WAF logs to explain blocked or challenged traffic without exposing internal log systems.

Read WAF logs

Use WAF logs to explain blocked or challenged traffic without exposing internal log systems.

Panel path

  1. Management Panel
  2. CDN Accounts
  3. Security Events
  4. WAF exceptions

Prerequisites

  • WAF log query must be limited by selected account and time range.
  • IP, domain, and request details are treated as data fields in screenshots.
  • If no log is found, filter/range checks are shown to the user.

Step-by-step guide

1

Filter WAF logs

Blocked/challenged traffic is explained from customer-facing screens without internal log-system access.

  • Open Security Events in the account menu.
  • Choose a time range, or paste the Reference ID from the block page and press Enter (searches the last 30 days).

Expected result: Only selected-account security events are listed.

cdnctl equivalent
cdnctl waf logs --account $ACCOUNT_UUID --range 1d
cdnctl waf show $REFERENCE_ID --account $ACCOUNT_UUID
2

See what keeps being blocked

The Repeated blocks card on the WAF page groups the last 7 days' blocks by rule, path and the field the rule matched, the most frequent first. It shows counts, not IP addresses, query strings or the data the rules matched.

  • Read the Repeated blocks card on the WAF page: rule, path (without the query string), field, number of blocks, number of different IP addresses, first and last block.
  • Many different IP addresses in one field on one path of your own site often means a legitimate feature of the site is being blocked; scanners usually try many different paths, or files the site does not have.
  • Exempt on a row fills in the exception form with that rule, that exact path and that field. Exception exists means one of your exceptions already covers the row; blocks from before it was added stay in the log.

Expected result: You see which rule blocks which path and field without opening the blocks one by one.

cdnctl equivalent
cdnctl waf insights --account $ACCOUNT_UUID
# REF is the newest block of each row: pass it to waf show or waf exempt.
# The same from the API: GET /api/accounts/$ACCOUNT_UUID/waf/insights
3

Choose the action

For a false positive, exempt that rule on that path; for real attack traffic, keep the WAF on.

  • Read action and rule name.
  • If the rule is the HTTP method check, add the method under Allowed HTTP methods on the same page.
  • For a false positive, press Exempt next to the rule, check the path and field under WAF exceptions and press Add exception; the edges apply it within 1-2 minutes. Export the report (CSV/XLSX) if you need the full list.

Expected result: The customer safely understands why a request was blocked.

cdnctl equivalent
cdnctl waf logs --account $ACCOUNT_UUID --range 1d --format json
# The rule name and client IP are what decide whether a block was correct.
# A false positive: exempt the rule that blocked it, as Exempt does on the WAF page.
cdnctl waf exempt $REFERENCE_ID --account $ACCOUNT_UUID
4

Check what an exception covers before adding it

The exception form counts how many of the account's blocks of the last 7 and 30 days the exception would apply to, and from how many IP addresses. Nothing is saved until you press Add exception.

  • Press Exempt, or enter the rule, path and field yourself: the count appears below the Add exception button.
  • Without a field, an attack rule (for example SQL injection, XSS or command injection) stops checking every field on the path: query and form parameters, cookies, headers and the request body. The form warns about it; if the block names a field, enter it under Field.
  • The path / with "This path and everything under it" and no field switches the rule off for the whole site; that exception is added only after you tick the confirmation.

Expected result: You add the exception knowing how many past blocks it applies to. Other rules that matched in the same requests still apply.

cdnctl equivalent
cdnctl waf exempt $REFERENCE_ID --account $ACCOUNT_UUID --dry-run
# Prints the rule, path, match, field and the 7- and 30-day counts with the same warnings; adds nothing.
# The same from the API: POST /api/accounts/$ACCOUNT_UUID/waf/exclusions/preview
5

Response rules: blocks of the page your origin returned

A response rule (950xxx-954xxx) checks the page your origin returned, not the request: it blocks a page that looks like it shows an error message or source code, such as a database error, and the visitor gets the WAF's 403 page with a Reference ID instead (for pages up to 512 KB; a larger page is cut off). Ordinary page text can match by chance (for example "Oracle Red Bull Racing driver" in a news story); then visitors and search engine bots get the 403 page instead of a legitimate page.

  • Find these blocks in the WAF logs on the panel, or in the Repeated blocks card, where the rule's type shows as Response.
  • If the page is legitimate, press Exempt: a response rule is exempted whole for the path, and no field can be chosen. If the page shows a real error, fix the error on your origin instead.

Expected result: The edges apply the exception within 1-2 minutes; the rule still applies on every other path.

cdnctl equivalent
cdnctl waf insights --account $ACCOUNT_UUID
# Take the REF of the row with the 95xxxx rule; a response rule is exempted without --field.
cdnctl waf exempt $REFERENCE_ID --account $ACCOUNT_UUID --dry-run
cdnctl waf exempt $REFERENCE_ID --account $ACCOUNT_UUID
6

WordPress example: a theme or page builder cannot save

Themes and page builders save through admin-ajax.php or the WordPress REST API (/wp-json/...). When the WAF blocks such a save, the editor shows a generic error or keeps waiting; the request itself was answered with 403.

  • Open the browser developer tools (F12), go to the Network tab and save again. Select the request with status 403 and copy its X-MT-Request-Id response header: that is the Reference ID.
  • Paste it into the Reference ID box on the WAF page and press Enter. The block details show the path (for example /wp-admin/admin-ajax.php) and the rules that matched.
  • Press Exempt next to the rule. Under WAF exceptions the path is filled in with "Only this exact path" and, when the rule matched one request field, that field too (for example ARGS:content). Press Add exception.
  • If the path ends in a numeric ID (for example /wp-json/wp/v2/pages/123), change it to the parent path (/wp-json/wp/v2/pages) and choose "This path and everything under it" before adding the exception, so the other pages save too.
  • Wait 1-2 minutes and save again.

Expected result: The save goes through. The rule still applies on every other path and, when the exception names a field, to the other fields of this path.

cdnctl equivalent
cdnctl waf show $REFERENCE_ID --account $ACCOUNT_UUID
cdnctl waf exempt $REFERENCE_ID --account $ACCOUNT_UUID
# Adds what Exempt prepares: that rule, only that exact path and, if the rule matched one field, only that field. For a path that ends in an ID, cover the parent path and everything under it:
cdnctl waf exempt $REFERENCE_ID --account $ACCOUNT_UUID --path /wp-json/wp/v2/pages --prefix

Verification

  • Log response does not include another account event.
  • IP/path data is redacted in docs.
  • Internal log host or service name does not appear in customer guides.

Use cases

A customer reports a request that is blocked by security rules.

Quick workflow

  1. Open Security Events in the account menu.
  2. Choose a time range, or look up the Reference ID from the block page.
  3. Inspect action and rule.
  4. For a legitimate request, press Exempt next to the rule to add a WAF exception for that path (and field).

Checks

  • Selected account has a WAF route.
  • Log query does not leak another account.
  • Support guidance includes timestamp and request details.

Related pages

Block traffic by ASN and by country

Two account-wide blacklists on the same panel: block whole countries by country code, or block whole networks by autonomous system number. A blocked visitor gets the branded 403 page with a Reference ID.

Turn on HSTS for your hostnames

The Always HTTPS (HSTS) switch makes the edge send Strict-Transport-Security: max-age=31536000 on HTTPS responses, so a browser that has seen your site once refuses to open it over plain HTTP for a year.

Write a rule for a domain and path

On the Rules tab of Domains & Rules, a rule picks requests by domain, protocol and path, then sets how they are cached, which headers are added or removed, where they are fetched from and who may open them.

Purge cached content

Purge a path, saved path, or the whole account and separate CDN cache from browser cache.

Signed URLs: links that expire

Protect a file so it can only be fetched with a signature you generate, valid until a moment you choose. Unsigned requests get 403, expired ones get 410.

Image optimization: AVIF and WebP at the edge

Switch on image optimization for the account or for one delivery rule and choose WebP or WebP + AVIF: the edge converts JPEG and PNG images and sends each browser a format it accepts, while your pages keep the same image URLs.

Redirect a domain to another domain (301)

Send requests for a domain to another domain with a permanent (301) redirect from the Redirects tab of Domains & Rules. The path and query string are kept, and Auto SSL certificate checks under /.well-known keep working.

Brotli and gzip compression

The edge compresses text responses automatically: Brotli for browsers that support it, gzip for the others. See which method each domain uses on the Compression card and confirm it with curl.

HTTP/3 (QUIC): turn it off for a hostname

HTTP/3 is on for every HTTPS hostname by default. Turn it off for one hostname in its details on the Domains tab of Domains & Rules when its visitors, or a network they use, have trouble with QUIC; those visitors then use HTTP/2.

CORS headers at the edge

Add Access-Control-Allow-Origin and the other CORS headers to a delivery rule's responses, let your origin answer preflight OPTIONS requests, and allow the methods your API uses in the WAF.