0Pricing
OpenClaw Academy · Lezione

Inserire i mittenti nella allowlist con allowFrom

Utilizzi channels. .allowFrom per limitare chi può inviare messaggi al Suo assistente.

Inserire i mittenti nella allowlist con allowFrom è una lezione OpenClaw Academy gratuita su CoddyKit. Questa è la lezione 2 di 4. Puoi leggere la lezione completa qui gratuitamente — poi esercitati direttamente nel browser con un editor di codice integrato e un tutor IA disponibile 24/7. Fa parte del percorso di apprendimento OpenClaw Academy, e i tuoi progressi si sincronizzano tra il web e l'app CoddyKit. Il corso OpenClaw Academy include 4 lezioni in totale.

Parti di questa lezione non sono ancora state tradotte e vengono mostrate in inglese.

Who Can Reach You

OpenClaw has full system access, so you decide who may message it. The allowlist is your front door, and only listed people get in. 🔐

Meet allowFrom

The key for this is allowFrom. It lives inside a channel block and holds the senders you trust to talk to your assistant.

channels: {
  whatsapp: {
    allowFrom: []
  }
}

Where It Sits

The full path is channels.platform.allowFrom. Swap platform for whatsapp, telegram, or any channel you have connected.

It Is a List

allowFrom takes a list of senders. For WhatsApp that means phone numbers, so each entry is one trusted contact.

allowFrom: ["+15555550123"]

Adding More Senders

Need more people? Just add more entries to the list. Every number you include can message and command your assistant.

allowFrom: [
  "+15555550123",
  "+15555550199"
]

A Full WhatsApp Block

Here is allowFrom inside a real whatsapp block. This is the shape you edit in openclaw.json to gate the channel.

channels: {
  whatsapp: {
    allowFrom: ["+15555550123"]
  }
}

Why Allowlisting First

Allowlisting is the simplest guardrail. Before any clever rules, deciding who is on the list keeps strangers from driving your machine.

Per Channel

Each channel keeps its own allowFrom. Your WhatsApp list and your Telegram list are separate, so you tune access per platform.

Use the Right Format

Match the sender format the platform expects. For WhatsApp use full international numbers, including the country code, so they match correctly.

Apply Your Changes

After editing allowFrom, save the file and restart OpenClaw. The new list takes effect once the assistant reloads its config.

Trust by Design

Keep the list tight. Add only people you truly trust, because everyone on it can ask your assistant to act on your system.

Quick Check

Test your grip on the allowlist key.

Recap

You set the guest list: allowFrom names the senders allowed per channel. Tight lists keep you safe. Next, group mention rules. ✅

Domande Frequenti

La lezione «Inserire i mittenti nella allowlist con allowFrom» è gratuita?

Sì — il testo completo di «Inserire i mittenti nella allowlist con allowFrom» è gratuito qui sul web. Per esercitarvi in modo interattivo (un editor di codice integrato e un tutor IA 24/7) e sbloccare il resto del corso OpenClaw Academy, passa a CoddyKit PRO. Il corso OpenClaw Academy include 4 lezioni in totale.

Cosa imparerò in «Inserire i mittenti nella allowlist con allowFrom»?

Utilizzi channels. .allowFrom per limitare chi può inviare messaggi al Suo assistente. Eserciti OpenClaw Academy con codice pratico che esegui direttamente nel browser, e un tutor IA 24/7 risponde alle tue domande mentre lavori sulla lezione.

Ho bisogno di esperienza per iniziare OpenClaw Academy?

Non è richiesta alcuna esperienza precedente. OpenClaw Academy su CoddyKit è strutturato per principianti e studenti avanzati, quindi puoi iniziare da qui o dall'inizio e procedere al tuo ritmo. Questa è la lezione 2 di 4.

Quanto tempo richiede la lezione «Inserire i mittenti nella allowlist con allowFrom»?

La maggior parte delle lezioni CoddyKit richiede circa 5–10 minuti. Ogni lezione è breve e interattiva, quindi fai progressi costanti e riprendi esattamente da dove hai lasciato su web e app.

Posso scrivere ed eseguire codice in questa lezione OpenClaw Academy?

Sì. Ogni lezione OpenClaw Academy include un editor di codice integrato, quindi scrivi ed esegui codice reale direttamente nel tuo browser e ricevi feedback istantaneo dall'IA — nessuna configurazione locale necessaria.

Tutte le lezioni di questo corso

  1. Il file di configurazione openclaw.json
  2. Inserire i mittenti nella allowlist con allowFrom
  3. Regole dei gruppi con requireMention e mentionPatterns
  4. Impostazioni predefinite senza configurazione
← Torna a OpenClaw Academy