> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pxxl.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Project networking

> Everything in a project's Networking tab: domains, port, WebSockets, static cache, and the edge rules for HTTPS, access, rate limits, headers, search engines and maintenance.

A project's **Networking** tab controls how people reach it. Rules here run at the Pxxl edge, before a request reaches your app, and apply to **every domain of the project**, including domains you add later. Set them once instead of per domain.

Open a project, then **Networking**. The sections are listed on the left; search them with `/`.

![The project Networking tab with the Security section open: Force HTTPS on, Security headers off, blocked methods and a max request size field.](https://mintcdn.com/pxxl/hPMZlEjpo8tX12E4/images/projects/project-networking-security.jpeg?fit=max\&auto=format\&n=hPMZlEjpo8tX12E4\&q=85\&s=e5c025d82395248f4aa1a7624fd2d345)

| Section | What it does | Guide |
| - | - | - |
| **Domains** | The project's addresses and the port each routes to. | [Below](#domains) |
| **Static cache** | Purge the edge cache of a static project. | [Below](#static-cache) |
| **Private networking** | A private `<name>.pxxl.internal` address for your other projects. | [Private networking](https://docs.pxxl.app/networking/private-networking.md) |
| **Microfrontends** | Serve other projects under paths of this project's domains. | [Microfrontends](https://docs.pxxl.app/deploy/microfrontends.md) |
| **Port** | The port your app listens on. | [Below](#port) |
| **WebSockets** | Allow live connections. | [Below](#websockets) |
| **Persistent connections** | WebSockets that stay open through deploys, on the Europe or Lagos edge. | [Persistent connections](https://docs.pxxl.app/domains/persistent-connections.md) |
| **Static outbound IP** | Send your app's outbound requests from one fixed IP. | [Static outbound IP](https://docs.pxxl.app/networking/static-outbound-ip.md) |
| **Tunnels** | Reach a port from a hostname on your Cloudflare account. | [Cloudflare Tunnels](https://docs.pxxl.app/networking/cloudflare-tunnels.md) |
| **Public access** | Take every domain off the internet. | [Public access](https://docs.pxxl.app/networking/cloudflare-tunnels.md#public-access) |
| **Security** | Force HTTPS, security headers, blocked methods, max request size. | [Below](#security) |
| **Access** | Block or allow IPs and countries; redirect `www`. | [Below](#access) |
| **Rate limiting** | Cap requests per minute. | [Below](#rate-limiting) |
| **Search engines** | Keep the project out of search results. | [Below](#search-engines) |
| **Headers** | Custom response headers. | [Below](#headers) |
| **Maintenance** | Show a maintenance page. | [Below](#maintenance) |

Edge rules are saved with **Save** at the bottom of each section and reach every domain within a minute. No redeploy is needed, except for **Port**.

## Domains

**Public domains** lists every address of the project, its status and the port it routes to.

* **Generate Domain** adds another free Pxxl address.
* **Custom Domain** connects your own domain. See [Connect a domain](https://docs.pxxl.app/domains/connect.md).
* Each domain's **⋮** menu has **Refresh SSL** and other actions.

## Static cache

Shown for projects the edge caches, such as static sites. The edge keeps copies of your files close to visitors. Each deployment has its own copies, so a new deploy is live right away. Choose **Purge cache** only if visitors still see old files.

## Port

**Target port** is the port your app listens on, from 1 to 65535. Pxxl detects it from your app. Domains without their own port route here. The change applies on the next deployment.

Your app must listen on `0.0.0.0` (all interfaces), not only `127.0.0.1`:

```js theme={null}
app.listen(process.env.PORT || 3000, "0.0.0.0");
```

## WebSockets

**Allow WebSockets** lets browsers keep a live connection to your app for chat, live updates and multiplayer. It applies to every domain of the project.

* New projects on the Free plan start with it off.
* Static sites can't use it.
* Connections close when you deploy. Clients should reconnect. For connections that must stay open through deploys, use [Persistent connections](https://docs.pxxl.app/domains/persistent-connections.md).

## Security

| Setting | What it does |
| - | - |
| **Force HTTPS** | Sends visitors on `http://` to `https://`. |
| **Security headers** | Adds `X-Content-Type-Options: nosniff`, frame protection and a strict referrer policy to every response. |
| **Blocked methods** | The edge refuses these methods: `POST`, `PUT`, `PATCH`, `DELETE`, `OPTIONS`, `TRACE` (and `CONNECT`). `GET` and `HEAD` always stay open. |
| **Max request size (MB)** | Larger requests get `413` at the edge. Up to 1024 MB. Empty means no limit. |

A read-only site, such as a marketing page, can block `POST`, `PUT`, `PATCH` and `DELETE`. An app that takes uploads should set a max request size a little above its largest upload.

## Access

| Setting | What it does |
| - | - |
| **Blocked IPs** | One IP or CIDR range per line. These visitors get `403`. |
| **Allowed IPs only** | When set, everyone else gets `403`. Useful for internal tools. |
| **Countries** | **Everyone**, allow only some countries, or block some countries. Not both at once. |
| **Redirect www to the bare domain** | `www.example.com` sends visitors to `example.com` with a permanent redirect. |

Example: an admin app only your office and VPN can reach:

```text theme={null}
203.0.113.0/24
198.51.100.7
```

## Rate limiting

**Limit requests** caps requests per minute at the edge, from 10 to 100,000, counted **per IP** or **per domain**. Visitors over the limit get `429`, so floods never reach your app. Blocked requests show in **Web Analytics** as **Blocked**.

Start generous, then tighten: a typical web app is fine with 600 per minute per IP.

## Search engines

**Hide from search engines** adds `X-Robots-Tag: noindex, nofollow` to every response, so Google and other crawlers don't index the project. Use it for staging and internal tools. Don't turn it on for your production site.

## Headers

Add up to 20 custom headers to every response from every domain of the project: caching, CORS or your own markers.

```text theme={null}
Cache-Control: public, max-age=600
Access-Control-Allow-Origin: https://app.example.com
X-Robots-Tag: noindex
```

## Maintenance

**Maintenance mode** shows visitors a maintenance page with status `503` while your app keeps running. Use it during a migration, then turn it off. The project header's **Enter Maintenance Mode** does the same.

## Where to go next

> [card] [Domain settings](https://docs.pxxl.app/domains/proxy.md)
>
> Rules for a single domain.

> [card] [Proxy and security issues](https://docs.pxxl.app/troubleshooting/proxy-security.md)
>
> Fix 403, 413 and 429 responses.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.