# Card tokenization restrictions using publishable keys

To enhance transaction security and protect your customers, Stripe has implemented restrictions on card tokenization using publishable keys on client-side surfaces. These measures help reduce the risk of fraudulent activity.
By default, tokenizing a card with publishable keys is only allowed for the following Stripe-provided integrations: Stripe [Web Elements](https://docs.stripe.com/payments/elements), [Checkout](https://docs.stripe.com/payments/checkout), and [Mobile Elements](https://docs.stripe.com/payments/mobile).
If you’ve built your own custom front-end which collects card details and passes them to the Stripe API using your publishable key, you need to go to the dashboard’s [integration settings page](https://dashboard.stripe.com/settings/integration). Change the settings to **Enable card data collection with a publishable key without using Stripe's pre-built UI elements**.