OpenClaw Academy · درس

السماح بالمرسلين باستخدام allowFrom

استخدم channels. .allowFrom لتقييد الأشخاص المسموح لهم بمراسلة مساعدكم.

الدرس 2 من 413 خطوة

السماح بالمرسلين باستخدام allowFrom درس مجاني في OpenClaw Academy على CoddyKit. هذا هو الدرس 2 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في OpenClaw Academy، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة OpenClaw Academy 4 دروس في المجموع.

بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.

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. ✅

البدء مجانًا

تعلم Bash مع معلم ذكاء اصطناعي — مجانًا

اكتب وقم بتشغيل أكوادك الفعلية في المتصفح، واحصل على مساعدة فورية من معلم ذكاء اصطناعي متاح 24/7، واستمر من حيث توقفت على الويب أو في التطبيق.

الدورات
10
الدروس
40

الأسئلة الشائعة

هل درس «السماح بالمرسلين باستخدام allowFrom» مجاني؟

نعم — نص درس «السماح بالمرسلين باستخدام allowFrom» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة OpenClaw Academy، انتقل إلى CoddyKit PRO. تتضمن دورة OpenClaw Academy 4 دروس في المجموع.

ماذا ستتعلم في «السماح بالمرسلين باستخدام allowFrom»؟

استخدم channels. .allowFrom لتقييد الأشخاص المسموح لهم بمراسلة مساعدكم. تتمرن على OpenClaw Academy مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.

هل أحتاج إلى خبرة سابقة لأبدأ OpenClaw Academy؟

لا تُشترط خبرة سابقة. OpenClaw Academy على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 2 من أصل 4.

كم من الوقت يستغرق درس «السماح بالمرسلين باستخدام allowFrom»؟

معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.

هل يمكنني كتابة وتشغيل أكواد في درس OpenClaw Academy هذا؟

نعم. كل درس في OpenClaw Academy يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.

جميع الدروس في هذه الدورة

  1. ملف الإعداد openclaw.json
  2. السماح بالمرسلين باستخدام allowFrom
  3. قواعد المجموعات باستخدام requireMention وmentionPatterns
  4. الإعدادات الافتراضية عند عدم ضبط أي شيء
← العودة إلى OpenClaw Academy