Skip to main content

AD_4nXc-6ykUDfbZBeHaRlHgBzP3tJpEw8TpOrrnZPJ_CdDjxDKs-M55B-x9Nlagw67TFR67w0D9PitUB5pDmoWeU7YRaLZ1UhegsBtnDGMuTRnGAOO9OIClL4wZ1jjdXW-5w8zTm_B5?key=NnjaF0JqTq6gOCuOsvpEBDx-

Netskope Global Technical Success (GTS)

Google Gemini - Block Google Drive integration

 

Netskope Cloud Version - 124

 

Objective

Block Google Drive integration within Gemini

 

Prerequisite

Netskope SWG  license is required

 

Context

Google has integrated Google Gemini with various applications, including Gmail and Google Drive. Some organizations have granted access to the Google Gemini Chatbot (https://gemini.google.com/) for their end-users, but may wish to block Google Gemini integration with Google Drive where end users can upload files from their Google Drive instance.. This document outlines a solution for addressing this specific use case.

 

Do You Know

  • Google Gemini holds ~14% of the market share in the generative AI chatbot space. Reference - Link
  • The Drive integration feature on Google gemini, was introduced by google on Feb 20, 2025
  • This allows users to upload any files from Google Drive to Gemini.

AD_4nXcp96Ai7gY030tjntjBox_ZJMPmgwr-wv3vtj0qvWiMvBG-sAalsX5PJ1H_ct8wq7kmsQgsSLEHM4-fTbCUw-dtUlPq1dY-hreXyfdJB4Q9CdfIhM2WoRjRgRYBz4fF0bR4qovf?key=NnjaF0JqTq6gOCuOsvpEBDx-

 

AD_4nXeCz6oeM_7a7KTP6NExRmRNA4-1tbJ28LpWdg_Llg96kwkmIL3EA-ykhiZVdt8PkVJBvYpdv7tQ4lFp8emXCS4yo9JrrbgUqxpWEnN6r9XXSc17ZBH09mGLkMTIGMtLROebjrz8bg?key=NnjaF0JqTq6gOCuOsvpEBDx-

 

AD_4nXeZ1lwNqj3LBWpmcJ-bWmDhll0eXfJwTbiySrgGEd4bgoz2QElqa9A6lRER9uWsbn20fxCflAI8sPJnJ2RYg9NvYHZxNlJbvyScwLAYo4lwyAI0JJuWE9KFl9pAaPF4pSSnLuNlew?key=NnjaF0JqTq6gOCuOsvpEBDx-

 

  • So to block embedding files from Google Drive, a policy can be created to block the URLs with the referrer criteria.

 

Configuration

Step 1 - Create a custom URL category 

Path: Netskope Tenant UI >>> Policies >>> Profile - - - URL Lists

  AD_4nXcaBzd-2HJVaROLU1-XeNztSaYr_7IexCD0N4scE1-otJEjPh_WA53v2sV1CsqI_BUg-gIt-D23Lw2s1iWwtx0dZXqoluN-dgfuHGky6P9cIuiMfyqXMa4WX0OAfTVWrSo2x-TYgw?key=NnjaF0JqTq6gOCuOsvpEBDx-

 

Path: Netskope Tenant UI >>> Policies >>> Profile - - - Custom Categories

AD_4nXdOWTMw14OXEJZvnKK2z9Zu7-E4lhbFUZDB-lUr3xwDzIZmhvT_igf1Y8e614JPbR55RFRdxgmGS2LqUg_exf4pAiv06UpKGHs9L7fkD3e2VtGcMzYypOupHOdf91JyiB4PL1q1YA?key=NnjaF0JqTq6gOCuOsvpEBDx-

 

Step 2 - Create a HTTP Header profile

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

AD_4nXcRHGA1H7dc3PmRCg-6q4iG_cAStM9nJjRMkFoBzqTf1WI1DtUQs3-hFEHlTQZCsJZChGZD_js-Jh58PNAD75jhtOol_N85ti02uuwBMawOu8R7-5DZp4e92qWZkYzo26VvvT3F?key=NnjaF0JqTq6gOCuOsvpEBDx-

 

Step 3 - Real-time protection policy

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

AD_4nXex-MNDFopnLqe7RnhBJoK_t3paOUYQbG-wXI6hnQEQKQ1-o1pV9h63R6PZry4VnppYiLAR7cbMIv0Ao6_cswtNFssM72ufPfFxYagnViBUeCuV8lxKQSXGg4X3rHxldpRpzHO-3w?key=NnjaF0JqTq6gOCuOsvpEBDx-

 

Verification

When you try to embed the files from Google drive, you get the below block prompt

AD_4nXcekILN0sEZRbOWa27vC1NVR1N7E7AxdmYVVZ7oc7RcxEif25eQhOKkTeg8wX0Kqn-p6gDPH3bAHqf0_V8g8eqTGUWtXfK6n5Ae-WxtuM4B7QUOqgpVlk2CjyFaL2sovBTzJxy-vg?key=NnjaF0JqTq6gOCuOsvpEBDx-

Note - User Notification format used above Link

 

Skope IT Alerts 

Path: Netskope Tenant UI >>> Skope IT >>> Alerts

AD_4nXfo00gSX53bpBwGx2iFuCL4SNDl_oC4IGmKv6trQORJb2Gxltn6az37B-B46_GKCkmAL1NszXrHkp8E3YpKF_c6WwE-j3h2j70fTQwywktz9qyQDdZOPbYBViSyTLxGeIRiy2ET9g?key=NnjaF0JqTq6gOCuOsvpEBDx-

 

Author Notes

  • Always test the above policy on a subset of users before rolling out in production.

 

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

 

Be the first to reply!