LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   squid configuration for block facebook videos (https://www.linuxquestions.org/questions/linux-newbie-8/squid-configuration-for-block-facebook-videos-4175567834/)

leejohnli 01-25-2016 03:33 AM

squid configuration for block facebook videos
 
hi, guys, is it possible to block embedded videos on facebook? I want the users be able to access facebook but not to view videos on it.

Thanks advance.

TB0ne 01-25-2016 10:12 AM

Quote:

Originally Posted by leejohnli (Post 5486996)
hi, guys, is it possible to block embedded videos on facebook? I want the users be able to access facebook but not to view videos on it.

Thanks advance.

You can block certain types of content based on the MIME type (such as flash video), but if the link goes to different sites (Vimeo, Vine, YouTube, etc.), those types may be different, and you'll only block SOME of the data. Squid doesn't/can't do content inspection.

For example, to block flash video:
  • Create an ACL for the MIME type in question:
    Code:

    acl deny_rep_mime_flashvideo rep_mime_type video/x-flv
  • Create an HTTP Reply ACL which denies access to that MIME type:
    Code:

    http_reply_access deny deny_rep_mime_flashvideo


All times are GMT -5. The time now is 06:02 AM.