> For the complete documentation index, see [llms.txt](https://docs.ngsurvey.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ngsurvey.com/form-management/publish-deploy/website-intercepts/intercept-hosts.md).

# Intercept Hosts

The intercept host provides the essential code required to implement intercepts on your website or specific pages. It generates the full code needed to activate and display the intercepts associated with that host.&#x20;

Once deployed, the intercept host enables you to dynamically assign or update surveys without the need to redeploy the code. This flexibility allows you to easily manage and swap out intercepts to adapt to your needs, all while keeping your website code consistent and streamlined.

<figure><img src="/files/aLQB8U7u1lEfs5d8eGy6" alt=""><figcaption></figcaption></figure>

Copy and paste the code within your website page on which you want to display the intercept. The code should be pasted before the \</body> tag of the  page.

## 👥 Intercept Access

By default, each intercept host is accessible only to the owner and administrators, ensuring controlled access. However, if you need to share an intercept, you can grant access to specific users or groups. To provide access to intercepts without granting access to the hosts themselves, you can restrict user permissions, limiting their ability to manage intercept hosts.&#x20;

<figure><img src="/files/6wZiDSm1x3s7tvP8FtmH" alt=""><figcaption></figcaption></figure>

This setup allows the technical team to maintain oversight of the intercept hosts while enabling non-technical users to create, modify, and deploy intercepts independently. It ensures that non-technical users can manage intercepts effectively without relying on the technical team for deployment.

&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.ngsurvey.com/form-management/publish-deploy/website-intercepts/intercept-hosts.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
