LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-25-2016, 04:33 AM   #1
leejohnli
Member
 
Registered: Sep 2010
Posts: 66

Rep: Reputation: 2
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.
 
Old 01-25-2016, 11:12 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,915

Rep: Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689
Quote:
Originally Posted by leejohnli View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Facebook To Switch to HTML5 as Default for Videos frankbell General 3 12-27-2015 10:28 PM
Cache facebook, videos, dowloads, or just all files using squid on qnap Prello23 Linux - Networking 0 03-16-2014 12:44 AM
Most YouTube videos and Facebook games won't play. LinuxLiker Linux - Software 13 04-19-2012 09:54 AM
How to block facebook?.. Winanjaya Linux - Security 3 11-30-2009 10:04 AM
Block online videos using squid ssilayaraja Linux - Security 1 06-16-2008 11:55 PM


All times are GMT -5. The time now is 03:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration