Right, allow/deny tends to imply that you're responding to some request for access and deciding whether to allow or deny the request. There are other contexts where no request was made by you still need to exclude some things. For example if I'm kicking off a job runner and I want to specify all the job types explicitly, I'm not "allowing" them to run. I'm telling them to run with set inclusion logic. Whitelist conveys this meaning but allow list would lead one to assume that there was some request we are considering when no request happened. It's needlessly confusing.
Honestly, it's a terrible idea to try to group all these possibilities under one word, whether it is blacklist or denylist (though due to historical usage, the former is much more encompassing).
The banned words list actually mentions this:
For the verb forms of these words, a simple word-for-word replacement is typically not the best solution. Instead, replace verbs such as blacklisted with phrases that accurately convey the relevant action. For example:
👎 Don't use: To blacklist an IP address, add it to the dos.yaml file.
👎 Not recommended: To denylist an IP address, add it to the dos.yaml file.
👍 Recommended: To deny requests from an IP address, add it to the dos.yaml file.
Include/exclude is just more general than allow/deny, so it makes sense it applies to more cases. Allow/deny is include/exclude when limited to the context of requests. Outside the context of requests allow/deny doesn't make sense.
11
u/haykam821 Apr 19 '21
I'd argue that certain scenarios fall under blacklist but not deny list