<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Redirects for YouTube with Safe Search Enforcement in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/redirects-for-youtube-with-safe-search-enforcement/m-p/69216#M40206</link>
    <description>&lt;P&gt;I have been working to enable Safe Search Enforcement for all of our users, but was having issues due YouTube being blocked. Since I couldn't find a solution anywhere else, I created a bit of code to update the user's cookies to put YouTube into Restricted Mode and send them along their way - basically with the following code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;    var expiration = new Date();
    expiration.setTime(expiration.getTime()+(12*60*60*1000));
    document.cookie = "PREF=f2=8000000&amp;amp;f5=30&amp;amp;f4=4000000; expires=" + expiration.toGMTString() + "; path=/;";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's a bit hacked together (I'm sure there's some edge cases I'll have missed), but I figure it might come in handy for someone. A full writeup is at &lt;A href="http://www.eugenemdavis.net/forcing-youtube-restricted-mode-javascript.html" target="_blank"&gt;http://www.eugenemdavis.net/forcing-youtube-restricted-mode-javascript.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if there is a better solution floating around out there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Dec 2015 21:03:22 GMT</pubDate>
    <dc:creator>edavis33</dc:creator>
    <dc:date>2015-12-08T21:03:22Z</dc:date>
    <item>
      <title>Redirects for YouTube with Safe Search Enforcement</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/redirects-for-youtube-with-safe-search-enforcement/m-p/69216#M40206</link>
      <description>&lt;P&gt;I have been working to enable Safe Search Enforcement for all of our users, but was having issues due YouTube being blocked. Since I couldn't find a solution anywhere else, I created a bit of code to update the user's cookies to put YouTube into Restricted Mode and send them along their way - basically with the following code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;    var expiration = new Date();
    expiration.setTime(expiration.getTime()+(12*60*60*1000));
    document.cookie = "PREF=f2=8000000&amp;amp;f5=30&amp;amp;f4=4000000; expires=" + expiration.toGMTString() + "; path=/;";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's a bit hacked together (I'm sure there's some edge cases I'll have missed), but I figure it might come in handy for someone. A full writeup is at &lt;A href="http://www.eugenemdavis.net/forcing-youtube-restricted-mode-javascript.html" target="_blank"&gt;http://www.eugenemdavis.net/forcing-youtube-restricted-mode-javascript.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if there is a better solution floating around out there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2015 21:03:22 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/redirects-for-youtube-with-safe-search-enforcement/m-p/69216#M40206</guid>
      <dc:creator>edavis33</dc:creator>
      <dc:date>2015-12-08T21:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Redirects for YouTube with Safe Search Enforcement</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/redirects-for-youtube-with-safe-search-enforcement/m-p/69252#M40232</link>
      <description>&lt;P&gt;It should not be a Palo Alto settings but with dns you can solve it.&lt;/P&gt;
&lt;P&gt;More info here: &lt;A href="https://support.google.com/websearch/answer/186669?hl=en" target="_blank"&gt;https://support.google.com/websearch/answer/186669?hl=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I expect the same solution from bing and yahoo too. It is the simpliest one and does not require any java-script and in case of https ssl decription...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you use dns-proxy in your firewall you can create static dns entries for google domains like &lt;A href="http://www.google.com" target="_blank"&gt;www.google.com&lt;/A&gt; or &lt;A href="http://www.google.co.uk" target="_blank"&gt;www.google.co.uk&lt;/A&gt; ect.. that give the IP back in dns reply from forcesafesearch.google.com.&lt;/P&gt;
&lt;P&gt;searching through this IP will give only filtered search result for google and for youtube (for youtube it is maybe to strong filtered...).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example from CLI:&lt;/P&gt;
&lt;P&gt;set network dns-proxy yourdnsproxy static-entries google.com address 216.239.38.120&lt;BR /&gt;set network dns-proxy yourdnsproxy static-entries google.com domain &lt;A href="http://www.google.com" target="_blank"&gt;www.google.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;set network dns-proxy yourdnsproxy static-entries google.com address 216.239.38.120&lt;BR /&gt;set network dns-proxy yourdnsproxy static-entries google.com domain &lt;A href="http://www.google.co.uk" target="_blank"&gt;www.google.co.uk&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;full list of google domains:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.google.com/supported_domains" target="_blank"&gt;https://www.google.com/supported_domains&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The next steps that are required is to block public DNS access since they give other IPs for google domains through DNS.&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;set rulebase security rules "Block Public DNS" from SourceZone&lt;BR /&gt;set rulebase security rules "Block Public DNS" to UntrustedZone&lt;BR /&gt;set rulebase security rules "Block Public DNS" source YourSource-Net&lt;BR /&gt;set rulebase security rules "Block Public DNS" destination any&lt;BR /&gt;set rulebase security rules "Block Public DNS" category any&lt;BR /&gt;set rulebase security rules "Block Public DNS" application dns&lt;BR /&gt;set rulebase security rules "Block Public DNS" service application-default&lt;BR /&gt;set rulebase security rules "Block Public DNS" action deny&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and block every other google IPs if the url containst &lt;A href="http://www.google.com" target="_blank"&gt;www.google.com&lt;/A&gt; or other &lt;A href="http://www.google.xx" target="_blank"&gt;www.google.xx&lt;/A&gt; domains but not the 216.239.38.120 destination IP:&lt;/P&gt;
&lt;P&gt;Example from CLI:&lt;/P&gt;
&lt;P&gt;set profiles custom-url-category GoogleSearchURLs list [ &lt;A href="http://www.google.com" target="_blank"&gt;www.google.com&lt;/A&gt; &lt;A href="http://www.google.com.tr" target="_blank"&gt;www.google.com.tr&lt;/A&gt; &lt;A href="http://www.google.at" target="_blank"&gt;www.google.at&lt;/A&gt; ...]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;set address forcesafesearch.google.com ip-netmask 216.239.38.120&lt;BR /&gt;set address forcesafesearch.google.com description forcesafesearch.google.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;set rulebase security rules Google-Allow from SourceZone&lt;BR /&gt;set rulebase security rules Google-Allow to UntrustedZone&lt;BR /&gt;set rulebase security rules Google-Allow source YourSource-Net&lt;BR /&gt;set rulebase security rules Google-Allow destination forcesafesearch.google.com&lt;BR /&gt;set rulebase security rules Google-Allow category any&lt;BR /&gt;set rulebase security rules Google-Allow application any&lt;BR /&gt;set rulebase security rules Google-Allow service [ service-http service-https ]&lt;BR /&gt;set rulebase security rules Google-Allow action allow&lt;BR /&gt;set rulebase security rules Google-Allow description "forcesafesearch.google.com access"&lt;BR /&gt;&lt;BR /&gt;set rulebase security rules GoogleDomain-Block from SourceZone&lt;BR /&gt;set rulebase security rules GoogleDomain-Block to UntrustedZone&lt;BR /&gt;set rulebase security rules GoogleDomain-Block source YourSource-Net&lt;BR /&gt;set rulebase security rules GoogleDomain-Block destination any&lt;BR /&gt;set rulebase security rules GoogleDomain-Block category GoogleSearchURLs&lt;BR /&gt;set rulebase security rules GoogleDomain-Block application any&lt;BR /&gt;set rulebase security rules GoogleDomain-Block service [ service-http service-https ]&lt;BR /&gt;set rulebase security rules GoogleDomain-Block action deny&lt;BR /&gt;set rulebase security rules GoogleDomain-Block description "block google domains"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tested it and worked. but for youtube as I see it is too hard, whatever you search in the result you will see only fairy tales &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; from Walt Disney..?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 10:28:36 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/redirects-for-youtube-with-safe-search-enforcement/m-p/69252#M40232</guid>
      <dc:creator>AkosD</dc:creator>
      <dc:date>2015-12-09T10:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Redirects for YouTube with Safe Search Enforcement</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/redirects-for-youtube-with-safe-search-enforcement/m-p/69444#M40302</link>
      <description>&lt;P&gt;Unfortuately neither Yahoo nor Bing appear to support this approach (i.e. having a safe search only domain/IP) - and using it for Google doesn't stop Palo Alto from rewriting the URL (it seems Palo Alto's Safe Search detection isn't compatiable).&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2015 14:57:39 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/redirects-for-youtube-with-safe-search-enforcement/m-p/69444#M40302</guid>
      <dc:creator>edavis33</dc:creator>
      <dc:date>2015-12-14T14:57:39Z</dc:date>
    </item>
  </channel>
</rss>

