# Redirect or block HTTP traffic

* Redirecting them to HTTPS
* Or simply blocking them.

Admins must also choose whether to refuse HTTP traffic:

* Globally, throughout the entire planet, or
* Selectively, to certain paths within the planet.

This can all be done with a single [Global Filter](/console-walkthrough/security/global-filters.md).&#x20;

## Initial Configuration

Create a Global Filter with these parameters:

* *Name* and *Description*: as desired
* *Active mode*: enabled
* *Source*: `self-managed`
* *Tags*: as desired, perhaps something descriptive such as `http-received`

## Configuring the Action

The  Global Filter's *Action* setting determines what will happen to the request.

To block the request completely, choose a blocking Action (perhaps the default `Global filter block` Action).

To redirect the HTTP request to HTTPS, you can select the default `https redirect` Action (shown below). If you choose to edit this Action or use a different one, ensure that the selected Action has the same *Status code,* and the same setting for the `location` header.

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

## Configuring the Rule list&#x20;

Within the *Rule* list, select **+New Entry**. Populate the new entry with:

* *Category* set to`Tag`
* *Match* set to `scheme:http`
* Whatever *Annotation* you wish.

At this point, the Global Filter should look something like this:

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

## Configuring the Scope

By following the steps above, you have a Global Filter that will block or redirect HTTP traffic globally, throughout the entire planet.

If this was your goal, skip down to the [Saving and Publishing](/using-the-product/how-do-i.../redirect-or-block-http-traffic.md#saving-and-publishing) steps below.

If instead you only want to apply this Global Filter to certain paths within the planet, you must create one or more additional entries in the *Rule* list. Each should have:

* *Category* set to`Path`
* *Match* set to a regex describing the path
* Whatever *Annotation* you wish.

Create as many entries as necessary to include all the desired paths.

Note that these entries should all be within the same section as the first `Tag` entry. (If instead you selected +**New section**, and the entries are now in separate sections, ensure that the relation between them is set to **Relation: AND**.)

## Saving and Publishing

When you have completed the steps above, the Global Filter has been created.

Select **Save**, and then [publish the changes](/console-walkthrough/system/publish-changes.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://waap.docs.link11.com/using-the-product/how-do-i.../redirect-or-block-http-traffic.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.
