A single-page application builds its links with JavaScript, so a standard spider finds only the landing page. Which approach BEST maps the site's pages?
Show the answer
Correct answerB. Crawl with a JavaScript-capable spider that renders pages in a browser
AWhy not this: Guessing names is directory enumeration; it does not follow the application's links and depends on the wordlist.
BWhy this is right: Rendering the page runs the scripts, so the spider sees and follows the generated links.
CWhy not this: Depth only matters when links exist in the parsed HTML, and here there are none to follow.
DWhy not this: It checks for known paths and does not follow links the application generates.
The links exist only after scripts run, so the crawler must render the page and follow what the script creates, as an AJAX spider does. A greater depth limit fails because a plain parser sees no links to follow, however deep it goes.