What is whitelist and blacklist data?

前端 未结 5 807
离开以前
离开以前 2021-02-18 13:31

I was reading about development of XPCOM component. I came across these terms called whitelist data and blacklist data, I tried to find out on google but couldn\'t .. I do not

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-18 13:52

    White lists and black lists are two ways of filtering data. If you have a white list then you will filter in only data on the white list; if you have a black list you will filter out only data on that list.

    For example, consider automatically rejecting incoming phone calls. You could have a black list of marketing companies, so everyone but them would be able to call you. Or you could have white list containing your friends' numbers, so only they would be able to call you.

    TL;DR:

    • Whitelist - only these things.
    • Blacklist - everything but these things.

提交回复
热议问题