Skip to main content
dlabacs
New Member
Jul 31, 2014 6:18 AM UTC
Question

Block Facebook and Youtube

Hi, Newbie Here. I really had a hard time in configuring our new Fortigate Device to block Facebook and Youtube during work hours. I went to URL filtering but it doesn' t work for me. My fortigate device/version is 200B. Please help. Thanks.

    11 replies

    lightmoon1992
    New Member
    Jul 31, 2014 2:13 PM UTC
    You need to define three profiles actually to tighten it the most: 1- SSL inspection profile enabling the HTTPS scanning 2- webfiltering profile with appropriate setting to bandwidth consuming and personal categories 3- application control controlling the social networking traffic (you can selectively define specific application signatures only) Mohammad
    Translate
    dlabacs
    dlabacsAuthor
    New Member
    Aug 5, 2014 12:53 AM UTC
    Thanks Sir.. I did the advice and it works:)
    Translate
    Phillyidol
    New Member
    Aug 27, 2014 3:53 PM UTC
    Just out of curiosity, do the above steps block the https URL with youtube, or just basic http? I started a post under Web Filtering on this because we can' t seem to block the https URL for youtube without blocking ALL other https URL' s.
    Translate
    Dave_Hall
    New Member
    Aug 27, 2014 5:26 PM UTC
    There are two general methods on the Fortigate to determining which URL is being visited on via HTTPS. One way is to enable deep (packet) inspection (profile) on the fw policy -- this is where the Fortigate will substitute it' s own security certificate so it is able to decrypt the traffic to see what URL is being visited. However, unless you install the Fortigate' s own security cert. on the workstation (in question), the web browser client will report a cert error when connecting (aka " Man-in-middle" attack) to the website. Of course you can always live with that error message (but it sets a bad precedent, IMHO). The other method deployed by the Fortigate is to check the domain name on the security cert of the web site -- this generally works well, providing the domain name listed in the security cert is not a wild-card...such as one deployed by Google (ie. Youtube). You could always try setting up an app sensor for blocking youtube (which I think is listed as google/media.) Considering most of our clients do not managed networks (e.g no AD servers, " open" workstations) installing fgt sec certs on workstations is out of the question, we have resorted to creating blocks of addresses, covering most of the youtube IP address space range, and setting up firewall blocks to them, either on the time-based and/or port base (any or HTTPS). A bit ugly and not perfect.
    Translate
    Fatih
    New Member
    Oct 9, 2014 9:44 AM UTC
    Hi, You can get help from the link below http://docs.fortinet.com/d/fortigate-configuring-fortios-v5.0-webfiltering-for-https-scanning-without-ssl-deep-scanning/download
    Translate
    mramon79
    New Member
    Oct 31, 2014 9:54 PM UTC
    Hi, First of all sorry for my english. If you want to block access to facebook and youtube without SSL inspection, create a policy with destination those domains(fqdn) and action--deny. Regards
    Translate
    Amiko
    New Member
    Nov 3, 2014 7:13 AM UTC

    hi all, how to block only facebook games and apps? 

     

    https://www.facebook.com/games/

     

    https://apps.facebook.com/

     

     

    Translate
    Centrocito
    New Member
    Nov 4, 2014 3:46 PM UTC

    dlabacs wrote:
    Hi, Newbie Here. I really had a hard time in configuring our new Fortigate Device to block Facebook and Youtube during work hours. I went to URL filtering but it doesn' t work for me. My fortigate device/version is 200B. Please help. Thanks.

    Remember that facebook use HTTPS not HTTP make sure to block the correct one

    Translate
    Adrian_Buckley_FTNT
    Staff
    Staff
    Nov 7, 2014 6:40 PM UTC

    Blocking Facebook games and apps with WF isn't going to work very well. Use the App control signature Facebook.app

    Translate
    VenkateshBoddula
    New Member
    Sep 25, 2016 8:02 AM UTC

    Hello,

     I have fortinet 60c device. I would like to configure a policy for Wi-Fi who are using through laptop to block facebook and twitter.

    Please help me in this.

     

     

    Translate
    suri
    New Member
    Nov 3, 2016 10:40 AM UTC

    sir,

    i have blocked youtube and facebook in our fortigate 80c. facebook blocked and youtube it is working for those who use laptops which is not in domain. how to resolve this issue. 

    Translate
    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024