Esta traducción ha sido generada por máquina y está pendiente de revisión.Cambiar a inglés
Presentación guiadaSolicitar una demostración guiada

Guide: CrawlX

Find the forms and endpoints to protect

A protected action runs a Noxtica check when a visitor uses a form or a step you name, and your backend redeems the result. Before you declare actions, you need a list of the forms and endpoints a site really has. This guide builds that list with CrawlX in observe-only mode, which reads pages and never submits anything.

Not a Noxtica product · Tool: CrawlX

Before you start

  • CrawlX built from source, and its pinned Chromium for the browser plane.
  • A staging or production site you own, reachable without signing in.
  • Admin access to Script & Consent in Backoffice to declare the actions you choose.

Written for sites you own. Commands come from each project's own documentation; check it before you rely on a flag.

Steps

  1. Fetch the browser CrawlX uses

    The browser plane runs the Chromium build that the project pins and verifies. Fetch it once with the browser install command.

  2. Crawl in observe-only mode

    Dynamic mode renders scripts, so forms that only exist after JavaScript runs are found. Form extraction is on by default and needs no flag. Add the XHR-extraction flag to also record the fetch and XHR requests the pages make. Observe-only mode navigates and observes. It does not click or submit. A fixed seed makes the run reproducible, and a URL limit keeps it small.

    Shell
    crawlx crawl https://staging.example.com/ \
      --mode dynamic --observe-only --xhr-extraction --jsonl \
      --seed 20261019 --limit-urls 100 --output ./out
  3. Read the forms and endpoints

    Open the output directory. Each page is written as a Markdown file, and the run also writes metadata.json, links.json and report.json, plus results.jsonl when you ask for JSON lines. Forms are listed in metadata.json under metadata.forms, with action, method and the input fields. Endpoints derived from forms are listed under discovered_endpoints, and XHR requests under xhr_requests. Look for login, sign-up, password reset, checkout and payment forms.

    Shell
    # forms: page, method, action
    jq -r '.[] | select((.metadata.forms|length)>0) | .url as $u | .metadata.forms[] | "\($u)  \(.method) \(.action)"' out/metadata.json
    # endpoints derived from forms
    jq -r '.[] | select((.metadata.discovered_endpoints|length)>0) | .url as $u | .metadata.discovered_endpoints[] | "\($u)  \(.method) \(.url)"' out/metadata.json
    # fetch and XHR requests (needs --xhr-extraction)
    jq -r '.[] | select(.metadata.xhr_requests) | .url as $u | .metadata.xhr_requests[] | "\($u)  \(.method) \(.url)"' out/metadata.json
  4. Choose and declare the actions

    For each form you want to protect, declare a protected action in Backoffice and put its name in the form's data-nox-protect attribute. Follow the naming rule on the protected-actions page. Each action has one trigger: a page path, a CSS selector or a page event name, so a path or an event can match a step that has no form.

  5. Crawl again after the change

    Run the same crawl and confirm the forms are still found. The form list does not carry the protected-action attribute. In a static crawl with JSON lines output, the raw response of each page in results.jsonl shows it. An attribute that a script sets is visible in neither mode, so check it in your own page source. Pair this with the coverage guide to see which pages deliver the collector.

What you get

A list of candidate forms and endpoints with the pages that contain them. The list is input to a decision. Which actions to protect, and how your backend treats a missing or low-confidence result, stays your choice.

Limits

  • Observe-only mode does not submit forms, so it cannot show what happens after a submit.
  • Pages behind a sign-in are outside this guide. The CrawlX project advises against using it with sensitive authenticated sessions while production qualification is in progress.
  • A form found is not a form that needs protection. Review the list against your own threat model.
  • A site on a loopback or private address needs an authorization record file and the allow-private-networks flag. A record is refused outside its validity window, so set its dates.

Four checks

All open-source test guides