Hi. I have read docs regarding Cloudfare Turnstile integration with Nextjs and Supabase where we have to create an edge function and then verify the cloudfare token from Nextjs app. But I couldn’t find a guide on implementing this in Directus. I thought of using auth filter type Flows then validating the token by using the cloudfare URL. But I have a few other collections that allows authenticated roles to create items there where I am thinking of adding it as well.
Given that the project only allows Authenticated roles to submit forms which means they need to verify emails to access the app and rate limit is enabled to a certain number of requests per second, should this setup be fine in terms of security or its a good idea to add Turnstile? Thanks in advance.
Hi Alex. Thanks for your response. My current setup is client side forms in Nextjs that submit data by Directus API. So I wanted to add Turnstile in the form itself where the widget shows before submission. But this requires server side validation in Directus for the Turnstile token which is what I am unable to figure out. If we show the form content after turnstile check, this would work but only on the UI side as someone can use the API to submit the form using tools like Postman.
– Sadman_Yasar_Sayem