# 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](https://waap.docs.link11.com/console-walkthrough/security/global-filters).&#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="https://2966474948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcxktceFryDnM5HLHONr8%2Fuploads%2FVxTDvE5tDTelV4K31Qn1%2FAction%20-%20HTTPS%20redirect.png?alt=media&#x26;token=5133a614-6cf7-42a9-a4d6-2c4601bfeac7" 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="https://2966474948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcxktceFryDnM5HLHONr8%2Fuploads%2Ft2KVHlJaHWqMHX0bXdnz%2FRedirect%20HTTP%20GF.png?alt=media&#x26;token=8fe6f242-2f59-4dac-b05a-4afeaf57f619" 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](#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](https://waap.docs.link11.com/console-walkthrough/system/publish-changes).
