How To Block Youtube 2
How To Block Youtube 2
Generally there are the following 3 solutions to block Youtube, you can select one of the
solutions, and maybe in some special scenario one solution can’t block all you want, if so, we
suggest deploy two or three of the solutions at the same time and test again to see the effect.
Note:
If Youtube was opened on the client PC earlier, please clear the browser cache and then test to see
the result. If reboot the client PC, partial cache will be expired, we can still see partial Youtube
page content if cache is not cleaned manually but Youtube can’t connect well.
address "youtube"
host "*.youtube.com" vr "trust-vr"
host "*.googlevideo.com" vr "trust-vr"
exit
//match the 2 typical domain names by wildcard, “*.googlevideo.com” is to match video traffic
rule id 4
action permit
src-zone "Any"
dst-zone "Any"
src-addr "Any"
dst-addr "Any"
service "DNS" //This policy is to allow DNS packet
exit
rule id 3
action deny
log policy-deny //enable logs function
log session-start
log session-end
src-zone "Any"
dst-zone "Any"
src-addr "Any"
dst-addr "youtube" // Deny destination IP of Youtube, which is translated by DNS function
service "Any"
exit
2. Make sure DNS server setting is working on Hillstone (can ping internet domain like
www.google.com from Hillstone).
3. Browse Youtube from the client, you will find Youtube is blocked.
4. Check translated IP of youtube by command <show ip dns-resp-snooping> or <show dns-
address>.
Note:
Only professional application signature supports Youtube.
If the signature is standard version, do command <exec app update professional> to change it as
professional version.
By default, the exported certificate name is “pki_export_cert”, then add suffix “.cer”, the complete
file name changes as “pki_export_cert.cer”.
3. Import the certificate “pki_export_cert.cer” into client PC’s web browser, here is Chrome for
example: SettingsAdvancedManage Certificates.
4. Make sure Hillstone SSL proxy “Trust Domain” is same with the domain from which you
export Hillstone certificate.
5. Do Hillstone policy.
rule id 2
action deny
log policy-deny //Enable logs function
log session-start
log session-end
src-zone "any"
dst-zone "Any"
src-addr "Any"
dst-addr "Any"
service "Any"
application "YouTube" //Deny Youtube application. For Google service, it is better add QUIC.
application "QUIC"
sslproxy "SSL"
exit
rule id 1
action permit
src-zone "Any"
dst-zone "Any"
src-addr "Any"
dst-addr "Any"
service "Any"
exit