---
title: Block a URL (Page Rules)
description: "If you want to block access to a certain URL or set of URLs, you can utilize our page rules feature to do so. Click on the \"CDN & Caching\" section and navigate to Page Rules: ![](https://know.cynderhost.com/wp-content/uploads/2020/12/image-40.png) Give your page…"
url: "https://know.cynderhost.com/docs/block-a-url-page-rules/"
updated: "2021-11-14"
category: Plesk
---

# Block a URL (Page Rules)

If you want to block access to a certain URL or set of URLs, you can utilize our page rules feature to do so.

Click on the "CDN & Caching" section and navigate to Page Rules:

![](https://know.cynderhost.com/wp-content/uploads/2020/12/image-40.png)

Give your page rule a name to identify it by:

![](https://know.cynderhost.com/wp-content/uploads/2020/12/image-41.png)

Choose "Block Request" as the action and leave the redirect/header field blank:

![](https://know.cynderhost.com/wp-content/uploads/2020/12/image-42.png)

Choose a condition to filter by:

![](https://know.cynderhost.com/wp-content/uploads/2020/12/image-43.png)

Enter the pattern to filter by below:

![](https://know.cynderhost.com/wp-content/uploads/2020/12/image-44.png)

**The use of wildcard (\*) or multiple filters (,) are supported.**

For example, blocking requests to https://domain.com/api/\* will block https://domain.com/api/page1, https://domain.com/api/page2, and https://domain.com/api/page3. It will not block requests to http://domain.com/api/page1.

Or, blocking requests to https://domain.com/api/page1,https://domain.com/api/page2 will block requests to https://domain.com/api/page1 and https://domain.com/api/page2

**To apply a block to both https and http, simply put \*:// instead of the protocol.**

**The filter must match fully to be applied.**

Using the filter "api" won't work for https://domain.com/api/page1, but using the filter "\*api\*" will.

**The supported HTTP Method are**: GET, POST, DELETE, HEAD, PUT, PATCH, and OPTIONS (case sensitive).
