---
title: "Deploy Anubis"
description: "Anubis 1.27 proof-of-work proxy that keeps AI scrapers off your site."
category: "Other"
url: https://railway.com/deploy/anubis-1
---

# Deploy Anubis

Anubis 1.27 proof-of-work proxy that keeps AI scrapers off your site.

**[Deploy Anubis on Railway](https://railway.com/template/anubis-1)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/anubis-1/manifest.json

- **Creator:** Agaz Self-Host
- **Category:** Other

## Template content

### app https://github.com/traefik.png

- **Image:** traefik/whoami:v1.11.0

### anubis https://raw.githubusercontent.com/TecharoHQ/anubis/v1.27.0/docs/static/img/logo.svg

- **Image:** ghcr.io/techarohq/anubis:v1.27.0
- **Public domain:** Yes

## Documentation

# Deploy and Host Anubis on Railway

Anubis is a web application firewall that protects sites from aggressive AI crawlers and scrapers. It sits in front of your app as a reverse proxy, gives browsers a small proof-of-work challenge, blocks known bad bots by rule, and lets real visitors and well-behaved tools through, reducing load caused by scraping.

## About Hosting Anubis

This template deploys Anubis v1.27.0 from the official image in front of a small `whoami` placeholder app, so it works right after deploying. Replace the placeholder by pointing `TARGET` at your own service's private address, then delete the `app` service. The signing key is generated once, so visitors keep their pass across redeploys. Anubis also serves a `robots.txt` that disallows known AI crawlers. Railway's edge supplies the client IP header Anubis needs. It is very light and fits the Hobby plan. Tune the challenge difficulty and bot rules with environment variables or a policy file.

## Common Use Cases

- Protecting docs sites, wikis, forges and blogs from AI scrapers
- Reducing bandwidth and CPU spent on crawler traffic
- Putting a challenge in front of any HTTP service on Railway

## Dependencies for Anubis Hosting

- `ghcr.io/techarohq/anubis:v1.27.0` (official image)
- `traefik/whoami:v1.11.0` as a placeholder upstream

### Deployment Dependencies

- [Anubis documentation](https://anubis.techaro.lol/docs/)
- [Anubis v1.27.0 release](https://github.com/TecharoHQ/anubis/releases/tag/v1.27.0)
- [Bot policies](https://anubis.techaro.lol/docs/admin/policies)
- [Railway private networking](https://docs.railway.com/reference/private-networking)

### Implementation Details

| Service | Image | Networking | Storage |
| --- | --- | --- | --- |
| anubis | `ghcr.io/techarohq/anubis:v1.27.0` | public domain on 8923 | none |
| app | `traefik/whoami:v1.11.0` (placeholder) | private only, port 80 | none |

Protect your own service:

```env
TARGET=http://${{your-service.RAILWAY_PRIVATE_DOMAIN}}:${{your-service.PORT}}
```

| Variable | Default | Purpose |
| --- | --- | --- |
| `TARGET` | placeholder app | Upstream that passing requests go to |
| `DIFFICULTY` | `4` | Leading zeroes required in the challenge |
| `ED25519_PRIVATE_KEY_HEX` | generated | Signs pass cookies; keeps them valid across deploys |
| `SERVE_ROBOTS_TXT` | `true` | Serve a robots.txt that blocks AI crawlers |

Notes:

- Anubis has no HTTP health check, because Railway's health check carries no client IP header; the restart policy covers crashes.
- Move your custom domain to the `anubis` service so all traffic passes through it.

This is a community-maintained deployment package and does not imply affiliation with or endorsement by the Anubis project or its maintainers.

## Why Deploy Anubis on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Anubis on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/anubis-1
