🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Blocklists are slower
  2. B.Allowlists work only for images
  3. C.Attackers can use .phtml, .php5, .PhP and other variants that a blocklist forgets
  4. 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 →