0Pricing
OpenClaw Academy · บทเรียน

อนุญาตผู้ส่งด้วย allowFrom

ใช้ channels. .allowFrom เพื่อจำกัดว่าใครบ้างที่ส่งข้อความถึงผู้ช่วยของคุณได้

อนุญาตผู้ส่งด้วย allowFrom เป็นบทเรียน OpenClaw Academy ฟรีบน CoddyKit นี่คือบทเรียนที่ 2 จากทั้งหมด 4 บทเรียน คุณสามารถอ่านบทเรียนทั้งหมดด้านล่างฟรี — จากนั้นลองปฏิบัติด้วยตัวคุณเองในเบราว์เซอร์พร้อมตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 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. ✅

คำถามที่พบบ่อย

บทเรียน “อนุญาตผู้ส่งด้วย allowFrom” ฟรีหรือไม่

ใช่ — ข้อความเต็มของ “อนุญาตผู้ส่งด้วย allowFrom” ฟรีให้อ่านที่นี่บนเว็บ เพื่อปฏิบัติแบบโต้ตอบ (ตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7) และปลดล็อคส่วนที่เหลือของคอร์ส OpenClaw Academy ให้อัปเกรดเป็น CoddyKit PRO คอร์ส OpenClaw Academy มีบทเรียนทั้งหมด 4 บทเรียน

คุณจะเรียนรู้อะไรในบทเรียน “อนุญาตผู้ส่งด้วย allowFrom”

ใช้ channels. .allowFrom เพื่อจำกัดว่าใครบ้างที่ส่งข้อความถึงผู้ช่วยของคุณได้ คุณปฏิบัติ OpenClaw Academy ด้วยโค้ดที่ใช้งานได้จริงที่คุณเรียกใช้โดยตรงในเบราว์เซอร์ และติวเตอร์ AI ตลอด 24/7 ตอบคำถามของคุณขณะที่คุณไปผ่านบทเรียน

คุณต้องมีประสบการณ์ก่อนที่จะเริ่มเรียน OpenClaw Academy หรือไม่

ไม่จำเป็นต้องมีประสบการณ์มาก่อน OpenClaw Academy บน CoddyKit ออกแบบมาสำหรับผู้เริ่มต้นไปจนถึงผู้เรียนขั้นสูง คุณสามารถเริ่มต้นที่นี่หรือเริ่มจากตัวแรกและเรียนด้วยความเร็วของคุณเอง นี่คือบทเรียนที่ 2 จากทั้งหมด 4 บทเรียน

บทเรียน “อนุญาตผู้ส่งด้วย allowFrom” ใช้เวลานานแค่ไหน

บทเรียน CoddyKit ส่วนใหญ่ใช้เวลาประมาณ 5–10 นาที แต่ละบทเรียนจึงสั้นและเป็นแบบโต้ตอบ คุณสามารถก้าวหน้าอย่างต่อเนื่องและกลับมาเรียนต่อจากตรงที่เพิ่งหยุดบนเว็บและแอปได้เลย

ฉันเขียนและรันโค้ดในบทเรียน OpenClaw Academy นี้ได้ไหม

ได้ บทเรียน OpenClaw Academy ทุกบทมีตัวแก้ไขโค้ดในตัว คุณจึงเขียนและรันโค้ดจริงได้เลยในเบราว์เซอร์ และได้รับข้อเสนอแนะจาก AI ในทันที — ไม่ต้องติดตั้งในเครื่องของคุณ

บทเรียนทั้งหมดในหลักสูตรนี้

  1. ไฟล์การกำหนดค่า openclaw.json
  2. อนุญาตผู้ส่งด้วย allowFrom
  3. กฎกลุ่มด้วย requireMention และ mentionPatterns
  4. ค่าเริ่มต้นเมื่อไม่ได้ตั้งค่าใด ๆ
← กลับไปที่ OpenClaw Academy