> For the complete documentation index, see [llms.txt](https://docs.openli.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.openli.com/docs/cookie-consent-management/blocking-cookies-with-openli.md).

# 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="/pages/-MT\_3fy3FYHASMN-w\_qr" %}
[Block cookies with GTM](/docs/legacy-integrations/how-to-use-google-tag-manager-with-legal-monster/block-cookies-with-gtm.md)
{% endcontent-ref %}

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

{% content-ref url="/pages/-MG3l3FsNnDUXmu\_I24e" %}
[Blocking cookies](/docs/documentation/legaljs-widget/collecting-cookie-consent/blocking-cookies.md)
{% endcontent-ref %}
