Skip to content

Server security

iHorizon has a dozen security features: Protection, night mode, AntiSpam, AutoMod, the honeypot, the captcha, the bot blocker… Each one has its own command page. This section explains how they fit together: which shield stops which attack, in which order they act, and above all who each one lets through. That last point is where most configuration mistakes come from: an Administrator is ignored by the AntiSpam but not by Protection, the allowlist matters to Protection and to nothing else, night mode strips Administrator but leaves Ban Members alone.

Page What it covers
Protection in depth What Protection watches, who it lets through, the "one sanction per burst" rule, what it can't see, allowlist or owner list
Night mode & derogation Removing Administrator at night, bots, how roles are given back, and the derogation role
Message shields AutoMod, AntiSpam, PunishPub, the anti-executable guard and the honeypot
Join gates Blacklists, the bot blocker, too-new accounts and the captcha
Example: a stolen moderator account at 3 a.m. Every layer at work on the same night

The layers

Think of your server as a building with several doors. Each layer answers a different question, and none of them replaces another.

Join gates: who gets in. Blacklisted accounts are banned on arrival, bots added by anyone but the server owner or its `/owner` list are banned, accounts that are too young are kicked, and humans answer a captcha.

Join gates

Message shields: what members post. Discord's AutoMod blocks links and mass mentions before they appear; iHorizon catches floods, ads that get through, executable files and anyone who writes in the trap channel.

Message shields

Command rules: what staff can do through iHorizon. /perm and /commandlimit decide who can run /mod ban or /backup load, and how often.

Permissions & limits

Protection: what anyone does directly in Discord. Deleted channels and roles, bans, kicks, server edits, Administrator grants made by hand or by another bot are undone, and their author is sanctioned.

Protection in depth

Night mode: how much power exists while you sleep. Every role loses Administrator during the hours you choose, and gets it back in the morning.

Night mode & derogation

The split to remember

Command rules watch what is done through iHorizon. Protection watches what is done directly in Discord. Protection never sees an action iHorizon performs itself (a /mod ban, a /backup load, night mode): that's what the command rules and limits are for. A server that only sets up one of the two leaves the other door open.

Who each shield lets through

Shield iHorizon itself Discord server owner /owner list Allowlist Administrator Bypass roles Staff permissions
Protection ignored ignored ignored per rule checked none checked
Night mode keeps keeps loses loses loses trusted bots untouched
AntiSpam ignored ignored checked checked ignored ignored checked
AutoMod n/a ignored checked checked ignored ignored Manage Server
PunishPub ignored ignored checked checked ignored Links & advertising rule's Manage Server
Anti-executable ignored ignored checked checked ignored none Timeout Members
Honeypot ignored ignored checked checked ignored none Manage Server, Ban, Kick
Bot blocker n/a may add bots may add bots checked checked none checked

How to read it:

  • Protection trusts lists, never permissions: the Discord owner, the server's iHorizon owners (/owner) and, when a rule says so, the allowlist. An Administrator who isn't on those lists is reverted and sanctioned like anyone else.
  • The message shields trust Discord permissions: Administrator, plus a staff permission that depends on the shield. The allowlist and the /owner list mean nothing to them.
  • Night mode doesn't block anyone: it removes the Administrator permission from roles. "Keeps" means the person or bot still has Administrator at night. Every other permission is left as it is.
  • Bots: the honeypot, PunishPub and the anti-executable guard never look at messages from bots or webhooks. The AntiSpam checks other bots unless Ignore Bots is on. Protection treats another bot like a member: allowlist it if you trust it.
  • Join gates apply to whoever joins: see who each gate skips.

The allowlist is not a VIP pass

Being on the allowlist only lets a member through the Protection rules set to Member(s) of allowlist. It doesn't exempt them from the AntiSpam, the honeypot, night mode or anything else. The difference between the allowlist and the /owner list is explained in Protection in depth and in the trust lists guide.

Who is always exempt

  • The Discord server owner. Protection skips them, the message shields see them as having every permission, and night mode can't take anything from them: Discord always gives the owner full power. It also makes a stolen owner account the worst case of all: keep 2FA on it.
  • iHorizon itself. Protection ignores what iHorizon does, which is how it can undo an attack without fighting itself.

Nobody else is exempt everywhere. Administrators are trusted by the message shields only.

Quick start

  1. Give iHorizon the Administrator permission and put its role at the very top of your role list. Protection can only sanction members below it, the AntiSpam and the bot blocker only run with Administrator, and night mode refuses to start unless iHorizon's own role is the highest one.
  2. Turn on Protection: the server owner runs /protect, picks Cancel + Derank as the global sanction and enables at least Channel deletion, Role deletion, Admin role grants, Ban members, Kick members and Webhooks. See which rules to pick.
  3. Fill the allowlist with the one or two people you would trust with the server itself: /allowlist add member:@Aya.
  4. Set up night mode: the server owner runs /nightmode, sets a time range and the timezone, and enables it.
  5. Add the message shields: /automod, /antispam manage and a trap channel with /honeypot config.
  6. Close the doors: /guildconfig block bot action:Power On, /guildconfig block too-new-account action:Power On minimum-date:7d, and a captcha with /security if raids are a real threat.
  7. Keep a trace: /setlogs type:Setup all channels, and a logs channel for the honeypot.
  8. Lock the settings: put command rules on antispam, honeypot, automod and security so a compromised admin account can't switch them off (/protect and /nightmode are already reserved to the server owner).

Next