Skip to content

Rate Limits and Politeness

Nuclei is built to be fast, and its defaults say so: a rate limit of 150 requests per second, up to 25 templates running in parallel (-c), and up to 25 hosts per template in parallel (-bulk-size). Against your own hardened server that is merely brisk. Against a small appliance, a shared host, or anything with a administrator who reads logs, 150 requests a second is not a scan; it is an event. This chapter is about deciding the pace before the tool decides for you — and it starts, as the guide does, with the rule: politeness begins with only scanning what is yours to scan. Rate limits govern how; the rule governs whether.

The measured cost of slowing down

The lab timed the same small run three ways — three fixture targets, three lab templates, nine findings each time — changing only the rate limit. Wall-clock times, engine startup included:

Flags Wall time
(defaults) 0.34 s
-rl 2 2.21 s
-rl 1 5.17 s

Two requests a second turned a third-of-a- second scan into two seconds; one a second, five. Extrapolate honestly: that shape — the request count divided by the rate — is the whole cost. A thousand requests at the default rate is seconds; at 10 per second it is under two minutes; at 1 per second it is a coffee break. Which of those a target can comfortably absorb is a property of the target, and the person who owns it is the authority. On your own machines the cost shows up as load and log volume; on anything shared, assume both are being watched by someone who did not agree to your scan.

The knobs, and what each one governs

  • -rl, -rate-limit — requests per second, globally (there is also -per-host-rate-limit, which makes the limit apply per target instead of across the run). The first knob to reach for.
  • -c, -concurrency — how many templates execute at once. Lowering it smooths bursts even at the same average rate.
  • -bulk-size — how many hosts one template works on simultaneously. The per-target view of the same courtesy.
  • -timeout — seconds to wait on a slow answer before giving up (default 10), and -retries — attempts after a failure (default 1). A struggling target deserves fewer retries, not more; retrying a drowning server is how a check becomes a denial of service with paperwork.

Two quieter courtesies are already built in. The engine clusters identical requests (chapter 3: two templates, one request sent), so a well-chosen template set costs fewer knocks than its size suggests. And the default ignore list (chapter 6) keeps the loudest categories — denial-of-service checks, fuzzing, brute force — out of runs nobody specifically asked for. Politeness in nuclei is partly configuration and partly these defaults not being overridden casually.

A working posture

For a machine you own and can watch: default rates are fine, and the scan finishes before it matters. For anything small, shared, old, or production: pick a rate in single digits, lower the concurrency with it, and run the narrow template set from chapter 6 instead of the collection — fewer requests is better manners than slower requests. For anything that is not yours: the rate limit is not the question, and this guide's answer is in chapter 1. However fast it knocks, it should only ever knock on your own doors.

Check: a polite scan is recognisable from its command line — an explicit rate, an explicit template set, and a target list the scanner can defend — and from the target's logs, where it reads as a methodical visitor rather than a weather event.