# Block Pages

**dope.swg** always aims to simplify things for you. It comes with ready-made block and warning pages, and you can fully customize these pages for your organization.

When a user visits a restricted web category (block or warning), **dope.swg** displays the appropriate selected block page.

The default block and warning pages can be assigned to any category or custom category with the restriction levels of (block or warning). You can also create custom pages for these categories.

### Default Pages

To edit the default block and warning pages, go to Setting -> Block Pages:

![Default Block Pages (Block, Warning, Security Risk, and Cloud Application)](/files/7vZBEOdiVR8KUUm9Gu2K)

{% hint style="success" %}
Security Risk is a block page used with Malicious Categories (Block)
{% endhint %}

#### Edit Block Page Text

To edit the Title or Message on a default block page, select the page (Block, Warning, Security Risk, or Cloud Application):

<figure><img src="/files/aXlJgmEDG7jc4lR2w81q" alt="" width="375"><figcaption><p>Only Title &#x26; Message can be edited on default block pages.</p></figcaption></figure>

### Custom Block Pages

You can create fully customized block pages using HTML too!

Select the **custom** tab, and click the<img src="/files/7kMVdjzh04WbtIkpF2la" alt="" data-size="line">button next to Block Page Configuration:

![Create a Custom Page](/files/1N4D1BmltrzZOnaYdeV2)

{% hint style="success" %}
It is possible to create a custom page from the Default block page
{% endhint %}

![Enter the name of the page, and hit enter.](/files/gog7owTKidt4qklOYkqu)

This creates the custom page will open on the right-hand side view:

![](/files/kVdS5YxVQpJQTBv0OyIb)

Next, select what type of page it is going to be — Block, Warning, Security Risk, or Cloud Application. This is done from the drop-down at the top:

<img src="/files/pv0QPi5RqeQJTj5Vto87" alt="" data-size="original">

There is also a text area where you can paste in HTML code. Once you have pasted the HTML code into the text area you can view the page by selecting the Preview Page button.\ <br>

<figure><img src="/files/PSnIdWDwaMAesFRk3Vuw" alt="" width="375"><figcaption><p>The %destination% and %category% are used to display the related data when a page is blocked</p></figcaption></figure>

If you are happy with the custom page, save it by selecting Save .

#### For information on how to assign block pages to categories see [Assigning a Block Page](/dope.console/dope.swg-policy/assigning-a-block-page.md)


---

# 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://inflight.dope.security/dope.console/settings/block-pages.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.
