Loading documentation...
The document will appear here shortly.
The document will appear here shortly.
BotStopper has an HTTP redirect in the middle of its check validation logic. This redirect allows BotStopper to set a cookie on validated requests so that users don't need to pass challenges on every page load.
This flow looks something like this:
Loading diagram...
However, in some cases a sufficiently dedicated attacker could trick a user into clicking on a validation link with a solution pre-filled out. For example:
Loading diagram...
If the requested destination is outside the configured allowlist, BotStopper returns this error:
Redirect domain not allowedBy default, BotStopper may redirect to any domain which could cause security issues in the unlikely case that an attacker passes a challenge for your browser and then tricks you into clicking a link to your domain.
One can restrict the domains that BotStopper can redirect to when passing a challenge by setting up REDIRECT_DOMAINS environment variable.
If you need to set more than one domain, fill the environment variable with a comma-separated list of domain names.
There is also glob matching support. You can pass *.bugs.techaro.lol to allow redirecting to anything ending with .bugs.techaro.lol. There is a limit of 4 wildcards.
Note. If you are hosting BotStopper on a non-standard port (
https://example.com:8443,http://www.example.net:8080, etc.), you must also include the port number here.
# anubis.env
REDIRECT_DOMAINS="example.org,secretplans.example.org,*.test.example.org"
# ...services:
anubis-nginx:
image: ghcr.io/techarohq/botstopper/anubis:latest
environment:
REDIRECT_DOMAINS: "example.org,secretplans.example.org,*.test.example.org"
# ...Inside your Deployment, StatefulSet, or Pod:
- name: anubis
image: ghcr.io/techarohq/botstopper/anubis:latest
env:
- name: REDIRECT_DOMAINS
value: "example.org,secretplans.example.org,*.test.example.org"
# ...See configuration for deployment configuration.