Essentially, exactly what the title states. I’ve never whitelisted before and don’t know where to start. Do I need a gem? Help Please
Essentially, exactly what the title states. I’ve never whitelisted before and don’t know where
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Whitelisting is a basic programming notion regarding how input to a program is regarded as valid & good or bad.
Whitelist: checks against input looking for valid conditions and proceeding if all good; aborts action by default unless all is well.
Blacklist: checks against input looking for bad input and rejecting if so; aborting the action with an error if so, otherwise proceeding with action.
The realm of possible bad inputs is infinite, the realm of possible good inputs is finite therefore:
Whitelists check input like this
Blacklists: (Dont do this)
Always apply a whitelist logic where possible above blacklist.