Enforce Youtube Safety Mode

Solutions ID:    KB3333
Version:    6.0
Status:    Published
Published date:    05/26/2011
Updated:    10/27/2011

Problem Description

Enable\enforce YouTube Safety mode using policy.

Enable\enforce YouTube Safesearch using policy.


NOTE:  For the latest Safe Search policy, see the ZIP file attached to KB4352.

To use policy to enable youtube Safety Mode, complete the following procedure.

  1. Navigate to the ProxySG Management Console: https://proxySG_IP:8082
  2. Go to Configuration -> Policy -> Policy Files
  3. In the Install Local File from  pulldown, select Text Editor.
  4. Click InstallEdit and Install the Local File window displays.
  5. Copy the following policy:
    ; === Safety Mode for YouTube ===
        <proxy BC_SafeSearch_YouTube_cookies>
        request.header.cookie="PREF=" action.BC_SafeSearch_YouTube_Cookie_Rewrite(yes) 
              define action BC_SafeSearch_YouTube_Cookie_Rewrite
              rewrite( request.header.Cookie, "(PREF=[^,]+)", "$(1)&f2=8000000" )
              define action BC_SafeSearch_YouTube_Cookie_append
              append( request.header.Cookie, "PREF=f2=8000000" )
    ; === End of Safety Mode for YouTube ===
  6. Paste the policy into the Edit and Install the Local File window.
  7. Click Install.

** This KB article was updated on 5.26.2011 as the previous policy has been rendered invalid by changes made to the Youtube Safety Mode process.


Rate this Page

Please take a moment to complete this form to help us better serve you.

Did this document help answer your question?
If you are finished providing feedback, please click the RATE CONTENT button. Otherwise, please add more detail in the following text box and then click RATE CONTENT.

Your response will be used to improve our document content.

Ask a Question