allowlist

An allowlist names exactly what is permitted and a denylist names what is forbidden, with everything else allowed.

In more detail

A Content Security Policy is an allowlist of script and style sources. Allowlists are safer than blocklists, because anything new or unexpected is refused until someone adds it.

Examples

The course also uses them for writable fields in mass assignment, for hosts a server may fetch in SSRF, and for reviewed dependencies.
When extracting indicators from a report, your own domains and well-known harmless values, such as the hash of an empty file, belong in the allowlist so they never reach a blocklist or raise alerts.
Pick<UserEntity, "id" | "email"> works like an allowlist of keys: a newly added secret field is not exposed by default

Related terms

Taught in

References

Certification courses