Write the PHP expression that only allows a redirect if the target path is in a predefined allowlist.
A previous open-redirect bug let attackers send victims to arbitrary external domains via a 'next' parameter.
Ready to try it?
Create a free account and subscribe to take "Write a Redirect Allowlist Check". Earn 90 XP and track your internship progress.
Already have an account? Sign in