Price scraping
You can use the templates below for a demo application in Workers where product details are shown, but pricing information is not revealed until the Turnstile widget is solved.
The script below is applied on the root path <YOUR-HOSTNAME-HERE>/ }}
and serves a page where the Turnstile widget will be embedded.
The script below is applied on the route <YOUR-HOSTNAME-HERE>/pricing.js
and returns a client script which embeds the Turnstile widget.
The script below is applied on the route <YOUR-HOSTNAME-HERE>/get-price
, and verifies the Turnstile token and returns an API or JSON pricing response.