Skip to main content
Version: Beta 🚧

DM Lock

Zallom enabled the DM Lock.
ChaussetteToday at 3:12 AM
🎁 Tu as gagné un Nitro ! Réclame-le ici : nitro-gift.click
sent as a DM to every member of the server…
Your message could not be delivered.
Mass DM · 1/5 received
Arthur
Dawoox
Ichiifriend
Zallom
user28471

RaidProtect's DM Lock feature allows you to permanently close access to direct messages (DMs) sent from the server, surpassing Discord's native limitation which only allows this blocking for 24 hours via the "Pause DMs" security action.

🚦 Use cases and recommendations

  • Servers exposed to spam or harassment: DM Lock is particularly recommended for public or large-audience communities, where the risk of DM abuse is higher.
  • Temporary events or sensitive periods: During launches, important announcements, or periods of high traffic (e.g., contests, promotions), enabling DM Lock helps prevent phishing or scam attempts.
  • Communities with a young audience: For servers with a large number of minors, restricting DMs can strengthen security and prevent inappropriate behavior.
  • Continuous protection: Thanks to automation, there is no vulnerability window caused by forgetting the manual renewal.

❓ How DM Lock works

The RaidProtect bot regularly checks the status of the server DM blocking setting and, if necessary, automatically re-enables it to avoid any vulnerability period between two manual renewals. This task runs transparently for administrators and server members.

info

It remains possible to send and receive messages with:

  • friends
  • bots
  • staff
warning

Discord's community features are essential for DM Lock to work properly. Follow our guide to verify that community is enabled on your server.

🚩 DM Lock configuration

  1. Run the /settings command.
  2. Click the "DM Lock" button.
  3. Enable or disable the automatic closure of direct messages.
DM Lock configuration
Configure direct messages closing to prevent phishing or scam attempts.
RaidProtect will permanently disable direct messages until you disable this protection. We use the "Discord Security Actions" feature (limited to 24h by Discord, extended to always by RaidProtect).


⚠️ Only bots, members who have already exchanged or are friends and staff will be able to receive DMs with this mode.
DM Lock state
Enabled
RaidProtect v3.4.0 • Configuration > Fermeture des MP

ℹ️ /dmlock-info command

The /dmlock-info command lets you inform members about the current status of DM Lock on the server. It displays a clear message indicating whether the restriction is enabled or disabled, along with an educational explanation of its purpose.

Objective:

  • Explain why DMs are restricted (fighting spam, scams, phishing).
  • Reduce confusion and recurring questions from new members.
  • Remind members of the conditions for continuing to chat via DMs (friends, staff, bots, previous contacts).

Display example

dmlock-info command screenshot enabled

⚙️ Best practices

  • Encourage active members to use /dmlock-info to answer new members' questions.
  • Post it regularly or pin it in your welcome channels.
  • Combine it with your rules or announcements to remind members of the server's anti-spam policy.