EC-Council
312-92 · Question #15
What will the following script accomplish? for (int i=0; i<blacklist.length; i++) if (HttpCookie.domainMatches(blacklist[i], host)) return false;
The correct answer is B. Check domains against a blacklist. See the full explanation below for the reasoning.
Question
What will the following script accomplish? for (int i=0; i<blacklist.length; i++) if (HttpCookie.domainMatches(blacklist[i], host)) return false;
Options
- ACreate a list of blacklist domains
- BCheck domains against a blacklist
- CPrevent site from being blacklisted
- DDelete entries in a blacklist file
How the community answered
(40 responses)- A5% (2)
- B83% (33)
- C3% (1)
- D10% (4)
Community Discussion
No community discussion yet for this question.