> This page is for Applications Protection.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.humansecurity.com/llms.txt.

# Returning A Custom Block Page

[](/applications/fastly-custom-block-page#returning-a-custom-block-page)It is possible to return a customized block page instead of PX default one.\
The block page returned by Fastly Enforcer is defined in the subroutine `px_custom_create_block_page` in `px_custom.vcl` file.\
To set your own block page, set the `req.http.X-PX-block-page` header to a string containing the html of the desired block page.\
For example:

```javascript
sub px_custom_create_block_page {
  set req.http.X-PX-block-page = {“<!DOCTYPE html> <html> <body> block page </body> </html>”};
}
```