Skip to main content

Instagram - Block DM ‘Text Messages & Media Files’

  • Nov 25, 2026 3:47 PM UTC
  • 0 replies
  • 2 views

msingh
Netskope Employee
Forum|alt.badge.img+16

Netskope Global Technical Success (GTS)

Instagram - Block DM ‘Text Messages & Media Files’

 

Netskope Cloud Version - 143

 

Objective

How to restrict access to text messages and media files via DM on Instagram.

 

Prerequisite

Netskope CASB Inline & SWG license is required

 

Context

Customers may have a specific use case where a business unit—such as marketing—requires access to Instagram for business purposes but in-parallel the customer wants to restrict Direct Message (DM) chats, including text messages and media file sharing.

 

Do You Know?

  • Netskope has a predefined cloud app connector for Instagram that provides granular controls for multiple activities.

  • The domains counted as Instagram traffic are listed below:
  • Instagram uses GraphQL, which is an open-source query language and server-side runtime for APIs.
  • For activities such as commenting, uploading images, and sending Direct Messages (DMs), Instagram invokes GraphQL API services using the POST method.
  • When a user sends a text or media message in a Direct Message (DM), a custom HTTP header (x-fb-friendly-name) is added to the HTTP request.
  • x-fb-friendly-name is a custom HTTP request header used across Meta's web and mobile applications (such as Instagram, Facebook, Threads, and Messenger) to identify the specific GraphQL query or mutation being executed.

Custom HTTP Header Name

Value

For

x-fb-friendly-name

igdirecttextsendmutation

For Text DM messages

x-fb-friendly-name

igdirectmediasendmutation

For Media DM messages

 

Configuration

Step 1 - Create a HTTP Header

Path: Netskope Tenant UI >>> Policies >>> Profile - - - HTTP Header

Step 2 - Create a Realtime Protection Policy

Path: Netskope Tenant UI >>> Policies >>> Real-time Protection >>> New Policy

 

Verification

  • There will be no End-User notification since we have blocked a backend transaction.

 

Terms and Conditions

  • All documented information undergoes testing and verification to ensure accuracy.
  • In the future, it is possible that the application's functionality may be altered by the vendor. If any such changes are brought to our attention, we will promptly update the documentation to reflect them.

 

Notes

  • This article is authored by Netskope Global Technical Success (GTS).
  • For any further inquiries related to this article, please contact Netskope GTS by submitting a support case with 'Case Type – How To Questions'.
This topic has been closed for replies.