# 4.8 URL Path Blocking

#### 📘 Overview

The **Block URL Path** module allows you to block access to specific URL paths on your site.\
Any incoming HTTP request that matches the defined path will be instantly blocked — regardless of its headers, parameters, or IP address.

***

#### 🛠️ How It Works

You provide a **full or partial URL path**, such as:

* `/admin`
* `/private/data.json`
* `https://yourdomain.com/debug`

Once saved, all requests to that exact path will be blocked **before reaching your backend**.

***

#### ⚙️ How to Add a Blocking Rule

1. Go to **Security Rules > URL Path Blocking**
2. Click **Block URL Path**
3. Enter the full or partial path to be blocked
4. Click **Block**
5. The rule is instantly enforced

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

***

#### 📋 Example Use Cases

* Block access to `/admin` or `/debug` pages
* Block file downloads from `/backup.zip`
* Block access to hidden or deprecated directories

***

#### 🔐 Why It Matters

Blocking unused or sensitive paths helps protect:

* Admin panels
* Development environments
* Exposed data files
* Misconfigured routes

This is a quick and effective way to reduce your visible attack surface.

***

🎯 **Block URL Path offers an easy way to disable public access to risky paths without needing to change application code or server configurations.**


---

# 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://docs.shieldsguard.com/getting-started/4.-security-rules/4.8-url-path-blocking.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.
