Skip to main content
Question

Not Able to restrict the Source Code send on Gmail

  • January 2, 2026
  • 0 replies
  • 6 views

vinay.mishra-8b1ca983
Netskope Partner

Dear Team,
 

We have implemented a policy to block the sharing of source code when a user attempts to send it via file attachments (such as TXT, PDF, DOC, etc.) to personal email domains like @gmail.com.
 

The policy is working as expected when the source code is shared directly as plain text within the email or message body. However, when the same source code is included inside a file attachment and sent, the policy does not trigger.
 

We have already raised this concern with the Netskope Support team, and the response received was that this use case is not supported. However, we request you to please re-check and confirm if there is any possible way to achieve this requirement.
 

Note:
We are able to block uploads entirely, but our specific requirement is to block the transfer only when the to_user does not belong to the corporate domain.
 

We request you to please help us understand why this behaviour is occurring and assist in resolving the issue, as this use case is critical and needs to be implemented in our production environment.

Looking forward to your support.

Regards,
Vinay Mishra