← Quiz: Secure File Uploads: all 10 questions
Quiz: Secure File Uploads · Question 10 of 10
Why is an extension allowlist better than blocking .php?
Why is an extension allowlist better than blocking .php?
- A.Blocklists are slower
- B.Allowlists work only for images
- C.Attackers can use .phtml, .php5, .PhP and other variants that a blocklist forgets
- D.PHP files are always safe
Answer & explanation
Correct answer: Attackers can use .phtml, .php5, .PhP and other variants that a blocklist forgets
An allowlist names the few types you accept and rejects everything else.
Can you get the rest right without peeking?
Take the timed Quiz: Secure File Uploads quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →