How to enforce YouTube restricted mode

From Secure Web Gateway
Jump to: navigation, search


YouTube has countless hours of entertainment, videos, and TV shows to keep you and your network users entertained, but there is some content on YouTube that you may prefer not to see or don't want others in your network. YouTube offers what is basically a parental control feature called Restricted Mode, which effectively avoids most inappropriate and offensive video content on the YouTube service by filtering it out.

When implemented by YouTube, you can enforce content restriction features only for individual browsers or users. In large organizations, it is not possible to enable restrict mode manually for each user and there is a possibility that the user himself may disable the restricted mode. 

SafeSquid provides an option to enable restrict mode on your gateway directly, and enforces the restricted mode on YouTube so that users not allowed to disable it. As YouTube supports HTTPS protocol, you need to enable HTTPS inspection on SafeSquid.

you can also define restrictions to particular users or for all users based on your network architecture.

When request comes to SafeSquid, for YouTube search then SafeSquid will add YouTube-Restrict : Strict header option in client headers. Then the server give the filtered response.


HTTPS inspection ,must be enabled on SafeSquid if not see our document - How to configure HTTPS inspection 

Here each entry explained comes with default configuration, if any of the default entries were not found then create the new entry.

Access the SafeSquid interface

Define entry for YouTube restrict mode

Go to configure page

Google Safe search1.png



Youtube Restrict mode3.png

Enable YouTube Restrict Mode entry in Policies and profiles


Youtube Restrict mode4.png


This entry is applicable for all users, if you want to give exception to any users then add that user group with negation 

example  !ADMINS 


Youtube Restrict mode5.png



Youtube Restrict mode6.png

Adding Strict header to client headers

Go to Restriction Policies


Youtube Restrict mode7.png

Go to Privacy control


Youtube Restrict mode8.png

Go to Header filter


Youtube Restrict mode9.png

Turn on header filter


Youtube Restrict mode10.png



Youtube Restrict mode11.png



Youtube Restrict mode12.png

Go to insert sub section


Youtube Restrict mode13.png

Enable restricted mode entry to add strict header 


Youtube Restrict mode14.png



Youtube Restrict mode15.png



Youtube Restrict mode16.png



Youtube Restrict mode17.png


Youtube Restrict Mode18.png

Save Configuration 

Trouble shoot:

YouTube Restrict Mode is not working?

Save config final.png
When you click on Save config, it will give a prompt for asking the confirmation to store your configuration  into the cloud. 
Select Yes only in below cases:
  • if you want to use this same       configuration in other SafeSquid instances.
  • if your total configuration in all sections is completed and validated. 

Otherwise select No and click on submit.