OK. I think in that case I recommend using gform_field_validation. You can read that file (either CSV or JSON) using PHP and this filter:
Then you can return a validation error (message if they are on the No list) or let them pass to the next page if they are on the Yes list. There is a possibility they are not on either list, and I am not sure what you want to return to them in that case.
We covered doing something like that here:
and
Take a look at those topics and let us know if you need a nudge in the right direction.