Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is whitelist and blacklist data?

Tags:

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 know how its related to programming so forgive me if I placed the question at wrong place..

like image 467
Xinus Avatar asked Sep 21 '09 07:09

Xinus


2 Answers

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.
like image 151
Dave Webb Avatar answered Nov 01 '22 05:11

Dave Webb


I don't know how it pertains to your XPCOM component, but in general terms:

  • A whitelist is a list of things that you know are good
  • A blacklist is a list of things you know are bad.

A spam filter would be a good example - you have a whitelist of people you're willing to receive email from without checking for spam, and a blacklist of known spammers whose emails get automatically deleted. Emails from anyone not on either list might be examined using a Bayesian filter (or similar) to determine whether they look like spam or not.

like image 32
RichieHindle Avatar answered Nov 01 '22 06:11

RichieHindle