# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.openli.com/docs/cookie-consent-management/blocking-cookies-with-openli.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
