Customize the Anubis Graphics

This tutorial will demonstrate how to customize the loading, allowed, and blocked graphics in the Anubis anti-AI-bot web firewall. Watch the video version here.

Prerequisites: This tutorial assumes you've got a website protected by Anubis. You can watch the video or read the tutorial if you don't have Anubis set up yet.


Step 1: Make sure your server is entirely up-to-date, then install Git and the necessary build dependencies for Anubis:

apt update apt full-upgrade apt install git golang-go npm esbuild brotli

Step 2: Clone the Anubis source code, enter its directory, and check out the desired version tag:

git clone https://github.com/TecharoHQ/anubis.git cd anubis git checkout v1.27.0

Step 3: Replace the webp images in the web/static/img directory.

Step 4: Build the Anubis binary:

npm install make all

Step 5: (Optional/Alternative) Customize the packaging formats you want to build by commenting out the rest from the yeetfile (also remove the tarball build sections from the bottom):

nano yeetfile.js

Then, build the selected Anubis packages:

npm install go tool yeet

Step 6: Replace the Anubis binary file (at e.g. /usr/bin/anubis), or install the custom-built Anubis package, then restart Anubis:

systemctl restart anubis@apache.service

There are no pages beneath this page

Expand: Discussion Discussion (0 posts)