Validate Data use advice

So I generate unique URLs like http://website.com?key={{uuid}} and save the uuid value in the database.

I’m trying to use Validate Data on server action to prevent the API from completing if the key does not exist in the DB.

It does not seem to work with a GET parameter. Is it supposed to?

Else shall I control the display on client side by checking if query.key param matches the result of a uuid query in the database?

A server connect on the client webpage that takes a GET parameter and does the lookup against the DB. If it’s not there, raise an error (e.g. 404) and handle that in the client webpage with a browser redirect or toast…

1 Like

Right.
For our readers, the DB query returns one of the saved uuid if the GET param matches.
On the client side, the redirect to an error page happens when no uuid is returned by the DB:
image