# Create custom forbidden page

**URL:** <https://discourse.crowdsec.net/t/create-custom-forbidden-page/1345>\
**Category:** Uncategorized\
**Created:** [July 8, 2023, 7:48am UTC](https://discourse.crowdsec.net/t/create-custom-forbidden-page/1345 "2023-07-08T07:48:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnw](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@johnw](https://discourse.crowdsec.net/u/johnw)\
**Post date:** [July 8, 2023, 7:48am UTC](https://discourse.crowdsec.net/t/create-custom-forbidden-page/1345/1 "2023-07-08T07:48:32Z")

</div>

Is it possible to customise the forbidden page for crowdsec? I have it installed as a docker container on my server and it throws a blank white page on all my server pages whenever i get banned but i would prefer it showed information to indicate that the IP had been banned

---

<div class="post-metadata">

**Author:** ![smu44](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@smu44](https://discourse.crowdsec.net/u/smu44)\
**Post date:** [July 9, 2023, 6:04am UTC](https://discourse.crowdsec.net/t/create-custom-forbidden-page/1345/2 "2023-07-09T06:04:28Z")

</div>

What is the involved bouncer?  
If your bouncer is Nginx you can create a ban template: [Nginx Bouncer | CrowdSec](https://doc.crowdsec.net/docs/bouncers/nginx/#bouncer-configuration)

---

<div class="post-metadata">

**Author:** ![iiAmLoz](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/iiamloz/32/386_2.png) [@iiAmLoz](https://discourse.crowdsec.net/u/iiAmLoz)\
**Post date:** [July 9, 2023, 7:02pm UTC](https://discourse.crowdsec.net/t/create-custom-forbidden-page/1345/3 "2023-07-09T19:02:11Z")

</div>

Normally the bouncer should show a block page.

If you want to customise the template I created a little bash script tool for it

> **[GitHub - LaurenceJJones/lua-cs-template-gen: A repository to allow users to...](https://github.com/LaurenceJJones/lua-cs-template-gen)**
>
> A repository to allow users to generate templates for lua-cs - GitHub - LaurenceJJones/lua-cs-template-gen: A repository to allow users to generate templates for lua-cs

That me presuming your using nginx bouncer if your using traefik you need to consult the docs
