# Blocking Cookies with Openli

There are two ways to block cookies with Openli: Manually and with Google Tag Manager.\
\
If your scripts are set using Google tag Manager, you need to follow this guide:

{% content-ref url="../legacy-integrations/how-to-use-google-tag-manager-with-legal-monster/block-cookies-with-gtm" %}
[block-cookies-with-gtm](https://docs.openli.com/docs/legacy-integrations/how-to-use-google-tag-manager-with-legal-monster/block-cookies-with-gtm)
{% endcontent-ref %}

If not, you need to block them manually following this guide:

{% content-ref url="../documentation/legaljs-widget/collecting-cookie-consent/blocking-cookies" %}
[blocking-cookies](https://docs.openli.com/docs/documentation/legaljs-widget/collecting-cookie-consent/blocking-cookies)
{% endcontent-ref %}
