bot
Enable or disable malicious-bot blocking for one domain or for all domains
- Command:
/go/bot - Category: Security
- Required option: Domain (or
all) and an action - Output: None (updates the database and rebuilds the web server configuration)
- Last updated: 2026-11-20
On this page: Overview · Quick start · Syntax · Options · Output · Examples · Troubleshooting · Details · See also
Overview
/go/bot turns the malicious-bot block on or off in the Apache or Nginx configuration of a GoAdmio domain. It:
- sets the domain's
Botflag in the GoAdmio database - rebuilds the web server configuration so the change takes effect
- can apply the change to every hosted domain in one run
The same setting can be chosen when an account is created (see create, --bot).
Quick start
# Enable bot blocking for one domain
/go/bot example.com Enable
# Disable it for all domains
/go/bot all 0
Syntax
/go/bot <domain|all> <action>
| Argument | Description |
|---|---|
<domain> |
A hosted domain, or all for every domain. |
<action> |
1 or Enable turns the block on. Any other value turns it off. |
[!WARNING] Only
1andEnableenable the block.Enableis case-sensitive, and a missing or misspelled action (for exampleenable,on, or nothing) disables it.
Options
This command has no -- options, only the two positional arguments above.
| Action value | Result |
|---|---|
1 |
Enable bot blocking |
Enable |
Enable bot blocking |
0 |
Disable bot blocking |
| Anything else, or empty | Disable bot blocking |
Output
The command prints nothing. To check the result, read the flag from the database:
sqlite3 /var/lib/sqlite/site.db "select Domain,Bot from Site"
Bot is 1 when blocking is enabled and 0 when it is disabled.
Each run also adds a line to /var/log/go/bot.log, for example:
[Nov 20 00:10:01]# bot example.com Enable
Examples
# Enable for one domain
/go/bot example.com Enable
# Disable for one domain
/go/bot example.com 0
# Enable for every hosted domain
/go/bot all 1
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| Nothing happens for a domain | /home/<domain>/www does not exist. The command exits silently. |
Check the domain name and that the account exists. |
| Bot blocking turned off unexpectedly | The action was missing or not exactly 1 or Enable. |
Run again with 1 or Enable. |
| Change not visible in the site's behavior | The web server did not reload. | Run reload, or conf to rebuild all configuration. |
Bot flag is set but the block does not work |
The configuration was not rebuilt. | Run apache and nginx for the domain, or conf. |
Details
Single domain
When a domain name is given, the command:
- Checks that
/home/<domain>/wwwexists. If not, it exits without doing anything. - Sets
Bot=1orBot=0for that domain in theSitetable of/var/lib/sqlite/site.db. - Rebuilds the domain's virtual host with
apacheandnginx. - Reloads the web server with
reload, with the note| Executed by bot.
All domains
When the domain is all, the command:
- Sets
Bot=1orBot=0for every row in theSitetable. - Rebuilds the Apache/Nginx configuration with
conf.
The /home/<domain>/www check is not applied in this mode.
Known issues
- A wrong or missing action disables the block instead of showing an error.
- The domain is used in the SQL query as typed, without escaping. Pass only real domain names.
- A domain that does not exist produces no message.
See also
| Command | Description |
|---|---|
bots |
Track all bot visits to your server (good and bad bots) |
bottop |
Block bad bots from visiting your server |
blacklist |
Block blacklisted IPs (bad bots and SSH brute-force attacks) |
conf |
Rebuild the Apache/Nginx configuration in GoAdmio |
reload |
Reload PHP-FPM and the active web server |
create |
Create a GoAdmio account from the command line |