Whitelisting : form redirection to link in CMS item

Hi everyone,

I would like to have an “email whitelist checker”.
Basically, I would like someone on my website to enter their email address in a form and :

  • IF that email IS on one CMS item THEN redirect to the link on that CMS item
  • IF that email IS NOT on a CMS item, THEN redirect to a unique page saying the email is not whitelisted.

CMS items will have only one email and one link (all differents from each other of course).

Is this possible?
Do you think there’s other ways to do this?

Thank you su much for the help.